Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: Lugial on June 19, 2009, 02:38:05 PM

Title: Ranks NEED to be bolded and Colored on the user's profile *SCREEN SHOT*
Post by: Lugial on June 19, 2009, 02:38:05 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi464.photobucket.com%2Falbums%2Frr4%2FR00308543%2Fluguis.jpg&hash=c9983eb5bc825f71c6c69b4b6e97dc897b908979)

If you look at the screen shot, I'm the admin.. below that is "Butnie's Charm" which is a rank. Is it anyway to have that part bolded and a specific color??
Title: Re: Ranks NEED to be bolded and Colored on the user's profile *SCREEN SHOT*
Post by: Gary on June 19, 2009, 03:05:32 PM
If you want it be bolded and not bolded for different membergroups, it'd be a little harder, but if not:

in Display.template.php find:

// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
', $message['member']['post_group'], '<br />';


and replace:

// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
<div style="font-weight: bold; color: red;">', $message['member']['post_group'], '</div>';

Title: Re: Ranks NEED to be bolded and Colored on the user's profile *SCREEN SHOT*
Post by: Lugial on June 21, 2009, 01:13:16 PM
Well, does anyone know how to do what I asked?
Title: Re: Ranks NEED to be bolded and Colored on the user's profile *SCREEN SHOT*
Post by: Gary on June 21, 2009, 02:25:22 PM
I just did. But you never specified if it's for specific membergroups or everybody.
Title: Re: Ranks NEED to be bolded and Colored on the user's profile *SCREEN SHOT*
Post by: TheDisturbedOne on June 22, 2009, 08:56:37 AM
I think this is what you need.
As an administrator, can I hide my "newbie" status? (http://docs.simplemachines.org/index.php?topic=452)
Title: Re: Ranks NEED to be bolded and Colored on the user's profile *SCREEN SHOT*
Post by: Lugial on June 25, 2009, 01:35:23 AM
Quote from: Gazmanafc on June 21, 2009, 02:25:22 PM
I just did. But you never specified if it's for specific membergroups or everybody.

READ my request carefully! Iam not asking for user names to be colored, but the ACTUAL RANK TITLE itself to be colored on the User's profile.
Title: Re: Ranks NEED to be bolded and Colored on the user's profile *SCREEN SHOT*
Post by: Antechinus on June 25, 2009, 01:38:14 AM
Read his answer carefully. The code given does not apply to usernames.