fix : long words bug in comments and walls

hello ..

we all know that when you write a comment to a profile or a wall post and you put a long word the rest wont show (when you post it , it will only show lets say 50 out of 100 and the rest will be hidden somewhere) *see before.png

there is a ticket about this subject and as we all know it will take dolphin years to fix this huge and complicated problem ..duhUndecided.

any ways to fix this you have to open "BxBaseCmtsView.php" file ( you will fined it under "templates\base\scripts" )

now search for this (line 282)

<div class="cmt-body">' . $a['cmt_text'] . '</div>

and replace it with

<div class="cmt-body">' . wordwrap($a['cmt_text'], 75, "<br />", true) . '</div>

save and exit..

now to fix this in the wall posts
open the "BxWallModule.php" file which you can fined it under "modules\boonex\wall\classes"

and search for (line 520)
                $aVariables = array_merge($aVariables, array('post_wrote' => _t("_wall_wrote"), 'post_content' => $aVariables['post_content']));

and replace it with
                $aVariables = array_merge($aVariables, array('post_wrote' => _t("_wall_wrote"), 'post_content' => wordwrap($aVariables['post_content'], 70, "<br />", true)));
 

see before.png and after.png to see the difference

save and good luck
if you fined this anywhere else please post it in reply
>> if you liked this then take a look at my signature



before.png · 52.7K · 343 views
after.png · 57.8K · 330 views
if i did help you .. it wont hurt to go to my profile and add a recommendation for me ;)
Quote · 30 Jun 2011

Thank you, this is a good fix, Not the best but still better than nothing

Quote · 30 Jun 2011

 

Thank you, this is a good fix, Not the best but still better than nothing

 why not the best ?? ..

please advice so it can be the best

if i did help you .. it wont hurt to go to my profile and add a recommendation for me ;)
Quote · 30 Jun 2011

<div class="cmt-body">' . wordwrap($a['cmt_text'], 75, "<br />", true) . '</div>

now if you change the layout on profile  "colum width"    it'll still wrap after (75)caracters.  in other words you would have to adujst it again to fit the layout..
p.s this happens on all comments site wide

photos..videos..profiles.etcc...

Quote · 30 Jun 2011

 

<div class="cmt-body">' . wordwrap($a['cmt_text'], 75, "<br />", true) . '</div>

now if you change the layout on profile  "colum width"    it'll still wrap after (75)caracters.  in other words you would have to adujst it again to fit the layout..
p.s this happens on all comments site wide

photos..videos..profiles.etcc...

 yeah i know but you can change the number to what ever you like ..

any ways .. as you said better than nothing ..

good luck

if i did help you .. it wont hurt to go to my profile and add a recommendation for me ;)
Quote · 30 Jun 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.