module content display row

Open to all! Ask other shopowners for help.
Fiber
Contributor
Posts: 173
Joined: Mon Oct 26, 2020 12:16 pm
Phoenix Version: v1.1.0.6
Has thanked: 17 times
Been thanked: 27 times

Re: module content display row

Post by Fiber »

Looked at it again and also made alert type in module and text insert in the module... it's in admin/modules_content.php there is a <br> if you remove the <br> then you get this..

Image

Image

Image

Code: Select all

 $keys .= tep_break_string($value['value'], 40, '<br>');

Code: Select all

  $keys .= tep_break_string($value['value'], 40, ' ');
Doesn't take away that I think it's overkill, but was curious what it could be :-)
Turn up the Max

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
Omar_one
Senior Contributor
Posts: 677
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

Re: module content display row

Post by Omar_one »

I just edit the Holiday Message module and now you can edit Holiday Message header via info_page(admin)
Capture1111.JPG

and here is the info_page(admin)
Capture2121222.JPG
You do not have the required permissions to view the files attached to this post.
ce7
Member
Posts: 26
Joined: Tue Apr 06, 2021 12:26 am
Phoenix Version:
Has thanked: 18 times

Re: module content display row

Post by ce7 »

Hi,
thanks again, kids with medical issue and see 3 medical specialists during weekday, I can only find little time whenever I can try to install different addons and learn from it bit by bit. Just now I installed Raiwa (@raiwa ) promotional message, learned how to put long text area, it is great. The result however is the same each row show only 1 word... don't know how to make it show whole sentence without break into different rows.

long text area
Image
https://ibb.co/4KNdPSL

still each row only 1 word
Image
https://ibb.co/mhq8Swc
Last edited by ce7 on Sat Mar 12, 2022 12:03 am, edited 2 times in total.
ce7
Member
Posts: 26
Joined: Tue Apr 06, 2021 12:26 am
Phoenix Version:
Has thanked: 18 times

Re: module content display row

Post by ce7 »

Hi @Omar_one ,

Thank you very much, I will give it a try now.
ce7
Member
Posts: 26
Joined: Tue Apr 06, 2021 12:26 am
Phoenix Version:
Has thanked: 18 times

Re: module content display row

Post by ce7 »

Fiber wrote: Wed Mar 09, 2022 12:08 pm

Code: Select all

 $keys .= tep_break_string($value['value'], 40, '<br>');

Code: Select all

  $keys .= tep_break_string($value['value'], 40, ' ');
Doesn't take away that I think it's overkill, but was curious what it could be :-)
hi @Fiber ,

Thank you so much, this is the file path and code I want to know and learn from. (Also thanks for the img site, the one I used (ibb.co) did not show up, so I sign up new one at imgur :lol: ...)

For others who also want to know what I did:
open file path: admin/modules_content.php,
find this:

Code: Select all

 
            } else {
              $keys .= tep_break_string($value['value'], 40, '&nbsp');
            }

and replace this

Code: Select all

 
            } else {
           // $keys .= tep_break_string($value['value'], 40, '<br>'); //&nbsp;
              $keys .= tep_break_string($value['value'], 40, '&nbsp');
            }


And now it looks like this: (please ignore the number, it is just for myself to organize and manage how many addons I put ;) )

https://ibb.co/y8d4Njs


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply