2008-04-16, 03:07 PM
Hi.
I want to colorize last poster's names on threadlist page according to the group color.
I'm using such modification on forumlist but it doesn't work on threadlist page.
That's what I tried in showthread.php:
replaced:
with:
But it doesn't do anything. Is this the right file to change or just the code modification only works on forumlist?
I want to colorize last poster's names on threadlist page according to the group color.
I'm using such modification on forumlist but it doesn't work on threadlist page.
That's what I tried in showthread.php:
replaced:
$lastposterlink = build_profile_link($lastposter, $lastposteruid);
with:
global $db;
$lastposter_query = $db->query("SELECT username, usergroup, displaygroup FROM ".TABLE_PREFIX."users WHERE uid='".$lastpost_data['lastposteruid']."'");
$lastposter_format = $db->fetch_array($lastposter_query);
$lastposter = format_name($lastposter_format['username'], $lastposter_format['usergroup'], $lastposter_format['displaygroup']);
$lastpost_profilelink = build_profile_link($lastposter, $lastpost_data['lastposteruid']);
But it doesn't do anything. Is this the right file to change or just the code modification only works on forumlist?