Hide member group name

Started by ACAMS, March 15, 2013, 02:25:47 PM

Previous topic - Next topic

ACAMS

SMF 2.0.4

I have looked till my eyes crossed ..... where do I click to hide user group name ..... like when I make a badge that says Moderator, how do I hide where it says Moderator in text.
I know there was a way to do it in the older versions


THANKS



Sir Osis of Liver


Admin -> Current Theme -> Hide post group titles for grouped members

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Kindred

#2
krash, that only hides the post-count based groups

if you assign a group to a user as a SECONDARY group, it will not be listed

However, moderator is different, because moderator is not a "real" group.
Moderators are only in that group when they enter the board they are set to moderate and you can not hide that without code edits.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sir Osis of Liver


Should have tried it, but it says this -

"Enabling this will not display a member's post group title on the message view if they are assigned to a non-post based group."

Moderators are not post-based group, so assumed it would hide it.  So you'd have to edit Display.template.php to remove it.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Sir Osis of Liver


In Display.template.php -



// Show the member's primary group (like 'Administrator') if they have one.
// if (!empty($message['member']['group']))
// echo '
// <li class="membergroup">', $message['member']['group'], '</li>';




Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

ACAMS

Well no wonder I can't find it .... I get this error when I click Current Theme

  An Error Has Occurred!    Unable to load the 'settings' template.

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

ACAMS


Sir Osis of Liver


See if it works in default Curve.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

ACAMS

Well, I see it and Current Theme loads the page, but we still have the problem




Trovaner is gonna have to take over ..... I am retired, I linked him here.

Sir Osis of Liver


I believe that option does not remove Admin or Mod labels.  You have to edit Display.template.php as posted above.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

ACAMS


Trovaner

Quote from: Krash. on March 15, 2013, 02:51:13 PM
In Display.template.php -


// Show the member's primary group (like 'Administrator') if they have one.
// if (!empty($message['member']['group']))
// echo '
// <li class="membergroup">', $message['member']['group'], '</li>';

This worked like a charm. Thanks for the assistance.

As for the other issue, it was caused by a file being accidentally wiped.

Advertisement: