News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Colored Nicknames

Started by EvilNab, March 20, 2015, 07:20:18 AM

Previous topic - Next topic

EvilNab

Hello,
I want to make colored nicknames in my forum,
the color is basically should depend on group color , nothing special
But the problem is that i can't find the code for getting group color( don't really know SMF inner codes to call specific lines , tried to look for it all over the net but no success so far).

For better understanding , here's where i want to use colored nicknames:




Mods did not help / didnt work, plus i use a different theme,
So please explain me how do i call the group color in the theme.

Code example:

<strong style="color: ',$message['member']['post_group_color'], '; font-weight: bold;">', $board['last_post']['member']['link'] , '</strong>

$message['member']['post_group_color'] doesn't work ;(

Antes

I used this mod for very long time: http://custom.simplemachines.org/mods/index.php?mod=3067 - I'll keep using after I ensure it has no background problems with SMF 2.1.
(Edit: Since that mod only using Output buffer it should work with every theme).

karlbenson

It works on 2.1 apart from on profile area.

Antes

Quote from: karlbenson on March 20, 2015, 03:15:11 PM
It works on 2.1 apart from on profile area.

Its normal to not work with profile area mod using "a" element to add color.

Thanks :)

Suki

Got a working version for 2.1 that fixes the profile bug, just need to actually find some time to do a proper release :(
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Antes

I gladly test it if you send me or attach here :)

Advertisement: