Change username link colors

Started by roach6390, August 24, 2006, 07:04:17 PM

Previous topic - Next topic

eliteghost

aww lame, thats not what i wanted lol Dam!

this only colors the members by group, its not user selectable. How can i mod this mod so that users select a color from thier profile, and it applies it thoughout the entire forum?

H

Do you know php? If not I suggest you post in Mod Requests.
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

esttecb

Ok, this is pretty old... but this topic is a friend of google...
So, here we go...

Open Source/Load.php
find:
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '">' . $profile['realName'] . '</a>',

replace with:
'link' => '<a style="color: ' . $profile['member_group_color'] . ';" href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '">' . $profile['realName'] . '</a>',


all done. I know it's by member group, but it doesn't need any mod.

Arantor

That assumes everyone has a member_group_color; Regular Member does not, neither do the post count groups by default.

Advertisement: