Customizing SMF > Modifications and Packages

Membergroup Colors In Posts

<< < (3/6) > >>

mennou:
i ain't  see nothing .....i uploaded the mod on my forum but i don't see nothing.. it's not working ....

Javis:

--- Quote from: ****** on February 20, 2005, 04:12:38 AM ---Open it: Display.template.php

Find it:

--- Code: --- // Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';
--- End code ---

Replace with:

--- Code: --- // Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '<span style="font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-weight: normal;', !empty($message['member']['group_color']) ? ' color: ' . $message['member']['group_color'] : '', '">', $message['member']['group'], '</span><br />';
--- End code ---

--- End quote ---

Thanks ******, that worked perfectly.

trenchteam:
******, how I get this working on your MidBlue theme? ???

Midgard:
in the same way

edi67:

--- Quote from: ****** on February 20, 2005, 04:12:38 AM ---Open it: Display.template.php

Find it:

--- Code: --- // Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';
--- End code ---

Replace with:

--- Code: --- // Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '<span style="font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-weight: normal;', !empty($message['member']['group_color']) ? ' color: ' . $message['member']['group_color'] : '', '">', $message['member']['group'], '</span><br />';
--- End code ---

--- End quote ---

strange for me nothing change ...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version