Star display for non-post groups

Started by ms_ukyankee, April 21, 2004, 04:53:35 AM

Previous topic - Next topic

ms_ukyankee

If it's there and I'm missing it, apologies, but it seems as though when a user is assigned a non-post based group, their group based stars no longer display. If that's the case, I'm sure there's a way to change this in the Display theme so that the post group stars display as well, and am hoping someone who's already changed this or knows how to change this could post the code and save me some time please? TIA. :)
SMF since 2004 <3

Acf

#1
http://www.awebsite.nl/forum/index.php?action=membergroups
yourgroup modify
and then you can set there stars
Number of star images:   5....   
Star image filename: where you got the image...
(starting off theme URL/images, you can use $language for the language of the user.)
Sigh...

ms_ukyankee

I understand that you can set stars for the non-post group, but I don't want to do that, I want to display the post group stars, for instance, I'm in the Charter Member group, but my Jr Member star rank is displayed. Currently on my forum, my special group has no stars displayed at all. :-\
SMF since 2004 <3

Acf

You mean you wand the post group stars to overrule the group stars?
Sigh...

Owdy

Put post group as primary, other secondary ?
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

ms_ukyankee

But then it won't display the special group, as in "Charter Member" here, I need that too. ::)
SMF since 2004 <3

Owdy

#6
Quote from: ms_ukyankee on April 21, 2004, 10:45:56 AM
But then it won't display the special group, as in "Charter Member" here, I need that too. ::)
You are right. I tested this, if secondary group hasnt stars, then post group star are showing. It should work. Just set 0 to non-post group and set that as primary group.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

ms_ukyankee

My special group doesn't have any stars, I need the post group stars, lol. Sorry if it's confusing.

What you suggest, is what I already have.  "Charter Members" as primary group, no stars display at all like they do on this site. ???

Looking at the Display template, I can't see the way around it, but I don't know what the variables might be.

echo '
', $message['member']['group'], '<br />';

// Don't show these things for guests.
if (!$message['member']['is_guest'])
{
echo '
', $message['member']['post_group'], '<br />
', $message['member']['group_stars'], '<br />';


Looks as though the group stars are from the primary group only.
SMF since 2004 <3

[Unknown]

I'm not sure, it should work as long as you have the number of stars and star image set to nothing.

-[Unknown]

ms_ukyankee

Okay, maybe this is a bug, or if not, it's a weird random feature. :P

[Unknown], you said "set to nothing", I know the Primary Group stars was defaulted at "0", I went and cleared the box, then saved. Magically the stars then appeared, but if you go back and look at the Primary (non-post) Group settings, it says "0" for the number of stars.

At least that worked, but it's still weird. ;) Thank you.
SMF since 2004 <3

[Unknown]

Oh, that was a bug... and one I think I've fixed in Beta 5.

-[Unknown]

Advertisement: