PDA

View Full Version : Forum Home Enhancements - Scr - Truncate Long Username On Forumhome


YeşiLMeN
01-15-2007, 10:00 PM
WwW.ULTRavB.CoM

ScReaM_

It hack will shorten any username that is longer than XX characters on the forumhome.

Find On "includes/functions_forumlist.php" ;

$show['lastpostinfo'] = (!$lastpostforum['password'] OR verify_forum_password($lastpostforum['forumid'], $lastpostforum['password'], false));

Add Under & Change The Number 18 in The Above Code To Shorten or Lengthen Possible Names ;

// Begin Username Truncate Hack - ULTRavB - ScReaM_
if(strlen($lastpostinfo['lastposter']) > 18)
{
$lastpostinfo['lastposter'] = substr($lastpostinfo['lastposter'],0,18) . "...";
}
// End Username Truncate Hack - ULTRavB - ScReaM_

That's It ! :)

Please Click Install !

Snake
01-16-2007, 06:27 PM
Thanks. First install! :D

YeşiLMeN
01-16-2007, 06:46 PM
Status: Not Installed :P

?? Install Please :)

Robru
01-16-2007, 06:49 PM
Works perfect, thanks :)

Doctor Who
01-16-2007, 08:11 PM
Can this not be added as a plugin, as opposed to an actual file edit? I really want to install it, but hate manually editing files unless I absolutely have to.

maxicep
02-18-2007, 01:22 PM
thanks nice hack.

YeşiLMeN
06-22-2007, 07:46 AM
You're welcome ..

&

please click install ;)