[6.2] Location Display Fix - 01/11/2003 5:41 AM
Just in case you have a practical joker or two that like to place extremely long words into their locations to distort your showflat/showthreaded layouts you can do the following:
In your showflat/showthreaded php scripts find this:
to this:
Current working example:
https://ubbdev.com/threads/php/...ew=collapsed&sb=5&o=&fpart=1
(mouse over the location display to see the full text)
In your showflat/showthreaded php scripts find this:
Code
<br /> if ($Location) {<br /> $postrow[$i]['Location'] = "{$ubbt_lang['USER_LOC']} $Location";<br /> }<br />
to this:
Code
<br /> if ($Location) {<br /> if (strlen($Location) > 30) {<br /> $TitleText = $Location;<br /> $Location = substr($Location,0,30);<br /> $Location = "<span title=\"$TitleText\">$Location... </span>";<br /> }<br /> $postrow[$i]['Location'] = "{$ubbt_lang['USER_LOC']} $Location";<br /> }<br />
Current working example:
https://ubbdev.com/threads/php/...
(mouse over the location display to see the full text)