Customizing SMF > Modifications and Packages

Membergroup Colors In Posts

<< < (2/6) > >>

trenchteam:
Im getting the same error. ???

Midgard:
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 ---

Kris:
Hmm..

Anyone got any idea what I've done wrong in the mod?
I let Anguz and Unknown check first...

[Unknown]:
Hmm, strange, is this the same one you posted?

else (if(isset($message['member']['post_group_color'] && $message['member']['post_group'] != '' && !$message['member']['is_guest'])

Should be:

elseif (isset($message['member']['post_group_color'] && $message['member']['post_group'] != '' && !$message['member']['is_guest'])

-[Unknown]

Kris:
Was the same.

Just updated that line + version #

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version