News:

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

Main Menu

postgroup and stars

Started by Fjclip99, July 18, 2015, 07:32:03 AM

Previous topic - Next topic

Fjclip99

Hello!
I need a little help here :D
// 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 '
<li class="postgroup">', $message['member']['post_group'], '</li>';
echo '
<li class="stars">', $message['member']['group_stars'], '</li>';

So this is the code for displaying postgroup and stars... If member is not in any group then it displays his postgroup star (newbie...) . How can i make so it would show his postgroup and star at the same time?

Illori

you mean the group name and the star? this is the default behavior. if you check your mini-profile in the post above, it shows your post count group name, semi-newbie and the star below.

Fjclip99

Quote from: Illori on July 18, 2015, 07:36:54 AM
you mean the group name and the star? this is the default behavior. if you check your mini-profile in the post above, it shows your post count group name, semi-newbie and the star below.
No, not the group name...
See here: http://prntscr.com/7u3mhn -> this member isn't in any membergroup and the star "newbie" is shown to him...
and here: http://prntscr.com/7u3mdn -> this member has the primary membergroup "Administrator" but I want so that there will be primary membergroup and postcount group ("newbie", ...)

khamseen

I think by default it only shows one group of stars (to cut down on clutter). There is a mod though which appears to do what you're looking for.
http://custom.simplemachines.org/mods/index.php?mod=1530
"In hope we find despair and in despair we find truth." - Myself

Advertisement: