Status
Not open for further replies.

darkfelon

Active Member
203
2009
20
0
How do i go about changing the username color in the latest post on my forum? I want the username to reflect the colors i have selected for usergroups on my forum. Please help me it will be greatly appreciated
 
1 comment
What vb version are you running?

For 3.8 use this:
Code:
1) Edit file functions_forumlist.php (file that is in folder "includes")

- Find:


$lastpostinfo = (empty($lastpostarray[$forumid]) ? array() : $vbulletin->forumcache["$lastpostarray[$forumid]"]);


- After Add: 


if($lastpostinfo[lastposter])
{                
    $temp=$vbulletin->db->query_first("
        SELECT userid, username, IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid
        FROM " . TABLE_PREFIX . "user
        WHERE username = '".addslashes(htmlspecialchars_uni($lastpostinfo[lastposter]))."'");                
    if ($temp[userid])
    {
        $lastpostinfo[lastposter]= fetch_musername($temp);
    }
}
 
Status
Not open for further replies.
Back
Top