In functions_forumdisplay.php I have added
Code:
$thread['trimnamezz'] = fetch_trimmed_title($thread['lastposter'], 15);
just above this:
Code:
$thread['lastpostdate'] = vbdate($vbulletin->options['dateformat'], $thread['lastpost'], true);
$thread['lastposttime'] = vbdate($vbulletin->options['timeformat'], $thread['lastpost']);
Then in the threadbit template, I use this:
Code:
<phrase 1="member.php?find=lastposter&t=$thread[threadid]" 2="$thread[trimnamezz]">$vbphrase[by_x]</phrase> <a href="showthread.php?$session[sessionurl]goto=lastpost&t=$thread[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
I forget what the original had, but your default one should be the same minus the variable "trimnamezz" (i forget what the default variable name is).
That will get the forum display user name trimmed.
Now for the forums index, in functions_forumlist.php:
Find:
Code:
$lastpostinfo['lastpostdate'] = vbdate($vbulletin->options['dateformat'], $lastpostinfo['lastpost'], 1);
$lastpostinfo['lastposttime'] = vbdate($vbulletin->options['timeformat'], $lastpostinfo['lastpost']);
$lastpostinfo['trimthread'] = fetch_trimmed_title($lastpostinfo['lastthread']);
and add this below:
Code:
$lastpostinfo['trimnamez'] = fetch_trimmed_title($lastpostinfo['lastposter']);
Then open up the particular template for the forum index and use the variable trimnamez in place of the default one.