[Request] Username color in Forumdisplay the same as Showthread
#4
open ./inc/functions_forumlist.php

search
$lastpost_profilelink = build_profile_link($lastpost_data['lastposter'], $lastpost_data['lastposteruid']);

replace 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']); 

mod by Lex-
Reply


Messages In This Thread
RE: [Request] Username color in Forumdisplay the same as Showthread - by mister_don - 2008-08-12, 12:57 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)