Help - Search - Members - Calendar
Full Version: Colored usernames in topicview
Invision Power Services > Community Forums > Community General Chat
sjaakie
When I had installed IPB 2.1 I also installed a hack which colored the usernames in the topicview, but after upgrading to 2.1.1 I have lost this hack and can't find the mod on my harddisk and could not find it here or on invisionize. Who knows what I mean and can find this thing? original.gif
Tim Dorr
This isn't updated for 2.1, but this is what we have on Neowin:

CODE
        //-----------------------------------------
        // Fix up the membername so it links to the members profile
        //-----------------------------------------
        
        if ($poster['id'])
        {
            // Neowin - Color member names in topics
            $after  = $ibforums->cache['group_cache'][ $poster['mgroup'] ]['suffix'];
            $before = $ibforums->cache['group_cache'][ $poster['mgroup'] ]['prefix'];

            $poster['name'] = "<a href='{$this->base_url}showuser={$poster['id']}'>$before{$poster['name']}$after</a>";
        }
.Kris
Actually for 2.1 it would be this.

CODE
//-----------------------------------------
// Fix up the membername so it links to the members profile
//-----------------------------------------

if ($poster['id'])
{
// Neowin - Color member names in topics
$after = $this->ipsclass->cache['group_cache'][ $poster['mgroup'] ]['suffix'];
$before = $this->ipsclass->cache['group_cache'][ $poster['mgroup'] ]['prefix'];

$poster['name'] = "<a href='{$this->base_url}showuser={$poster['id']}'>$before{$poster['name']}$after</a>";
}
sjaakie
QUOTE(.Kris @ Sep 26 2005, 05:58 PM) *
Actually for 2.1 it would be this.

CODE
//-----------------------------------------
// Fix up the membername so it links to the members profile
//-----------------------------------------

if ($poster['id'])
{
// Neowin - Color member names in topics
$after = $this->ipsclass->cache['group_cache'][ $poster['mgroup'] ]['suffix'];
$before = $this->ipsclass->cache['group_cache'][ $poster['mgroup'] ]['prefix'];

$poster['name'] = "<a href='{$this->base_url}showuser={$poster['id']}'>$before{$poster['name']}$after</a>";
}


Doesn't seem to be working. But great that you tried to help me. Maybe another idea?

It was indeed a change in the topics.php file and something within this section.


Yeah, found with that phrase the topic I was searching for.

http://forums.invisionpower.com/index.php?...members+profile
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.