MyBB Community Forums

Full Version: [I] Long subjects.........
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can you make it so that if we hover topics that end in ........ cause it was too long, we can see it in a tool tip??

Matt Light once gave this code for RC3. (i am yet to test it on RC4)

1. Open index.php in a text editor, go to around line 256, and find:
$lastpostsubject = stripslashes($forum['lastpostsubject']);
Replace that line with
$lastpostsubjectlong = $lastpostsubject = stripslashes($forum['lastpostsubject']);
2. Open the MyBB admin. center in your browser and go to the template editor.
3. Edit 'forumbit_depth1_forum_lastpost.' Replace the template with
<span class="smalltext">
<a href="showthread.php?tid=$lastposttid&action=lastpost" title="$lastpostsubjectlong"><b>$lastpostsubject</b></a>
<br />$lastpostdate $lastposttime<br />by <a href="member.php?action=profile&uid=lastposter&fid=$forum[fid]">$lastposter</a></span>
4. Edit 'forumbit_depth2_forum_lastpost.' Replace the template with
<span class="smalltext">
<a href="showthread.php?tid=$lastposttid&action=lastpost" title="$lastpostsubjectlong"><b>$lastpostsubject</b></a>
<br />$lastpostdate $lastposttime<br />by <a href="member.php?action=profile&uid=lastposter&fid=$forum[fid]">$lastposter</a></span>