MyBB Community Forums
set less lenght topic name - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: set less lenght topic name (/thread-167290.html)



set less lenght topic name - overnixs - 2015-02-17

Hello, i need help. How can i set less lenght topic name in index page last post. Where raicha post, there is to much width. Correct width is - Test and Viena ola.

Code in template [forumbit_depth1_cat]

<td class="tcat" width="100" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>


Picture:
http://www.bildites.lv/images/rrgew3eeok77s6sqvg9.png


RE: set less lenght topic name - ThemeFreaknet - 2015-02-18

You could try playing with text-overflow.


RE: set less lenght topic name - overnixs - 2015-02-18

Seems found solution. Smile

inc/functions_forumlist.php find
if(my_strlen($lastpost_subject) > 25) - Change to 15
$lastpost_subject = my_substr($lastpost_subject, 0, 25)."..."; - Change to 15.

Then width is correct when is to long text in index page "Last Post".