Stars and Badges

Started by Bulakbol, February 29, 2008, 11:59:19 PM

Previous topic - Next topic

diegolyanky

@diegolyanky.
   Create an additional primary_group and assign stars on it. Then use additional_group to assign your members to that new group.  Do not touch your members assigned post_group. Click the [Additional Group] to add the new primary_group. If you are confused, let me know and I'll show you a screenshot.
[/quote]

I did it ... And I have aditional member group ( not based on messages ) and didn't worked.

Thanks !
SMF ... SimpleMachines ... Simple, but complete if you want it ;)

Bulakbol

Hi diegolyanky. If you did it and didn't work, then you prpbably did it wrong.  :P If you require my help, I need a kink to your site and if possible, give me temporary admin access so I can find out what is wrong.

Did you install the mod manually? If not, did you get any error during installation?
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Bulakbol

#82
If you want to display the names of additional groups on top of the additional stars/badge, in Display.template.php, look for
echo $message['member']['additional_groups']['stars'][$i], '<br />';

and replace with
echo $message['member']['additional_groups']['name'][$i], '<br />', $message['member']['additional_groups']['stars'][$i], '<br />';


Nosey admin?. Aren't they all?  :D If you want to display Buddies of your members in their posts, in Display.template.php, look for

// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />';


and under it, add these codes.

// show buddies of poster
if ($context['user']['is_admin'])
echo '<acronym style="cursor: hand;" title="'. implode(', ', $message['member']['buddies']) .'">
Buddies: <b>', !empty($message['member']['buddies']) ? count($message['member']['buddies']) : 'none', '</b></acronym><br />';


Only admin can see. Hover your mouse over the number of buddies and the id's will pop up.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

D.S

Hey Johny

I need some help plz
see this result
./Themes/default/Display.template.php     Test failed
I tried to upload the mod manually but unfortunately I failed
so I'd be very pleased If you helped me

I attach u my Display.template.php ,plz I Like ur mod ;)
note: I use Dilber theme  8)

Best Regards Dude

Bulakbol

#84
Got it D.S. I'll take a look at it now. I'll get back to you later if not sooner.  :)


EDIT:
  Ok dude. here's your Display.template.php. Upoad this then install the mod. I didn't put the codes in. I just fixed the line that failed the installation text.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

D.S

Done>>thank u very much 

really I like ur effort

Best Regards

Bulakbol

Quote from: D.S on March 12, 2008, 08:07:00 PM
Done>>thank u very much 

really I like ur effort

Best Regards

That's great. It's my pleasure. If you still encounter a problem, just post and I'll try the best I could to help. Thanks for using this mod.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

byone

I'm now getting double images of the membergroup stars.  It does look correct in the profile summary however.

i'm the same problem with "Shortrnd"

hope u can help me.......

this is my display.template.php

tq
hxxp:www.gilaforum.com [nonactive]

Bulakbol

Hi Byone. Thanks for using this mod. Here's your edited Display.template.php. The mod was installed twice. It should work properly now.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

byone

very nice.....
quick response.....

thanks
hxxp:www.gilaforum.com [nonactive]

Bulakbol

My pleasure. Thanks again for using this mod.  8)
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Jade Elizabeth

YAAAAAAAAAAAAAAAAY!!!!!!!!!

Sorry, I have the need to display multiple badges, so I'm really excited about this!

Thanks JB!!
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Bulakbol

Quote from: Zygomaticus on March 25, 2008, 08:22:22 PM
YAAAAAAAAAAAAAAAAY!!!!!!!!!

Sorry, I have the need to display multiple badges, so I'm really excited about this!

Thanks JB!!

Thanks Al.  8) If you need assistance let me know.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Craw

Hi. I like this mod. Is there a way to toggle certain/specific membergroups' badges?
4x4 Philippines | www.4xph.com

But He (Jesus Christ) said to me, "My grace is sufficient for you,
for my power is made perfect in weakness."
Therefore
I will boast all the more gladly about my weaknesses,
so that Christ's power may rest on me. -- 2 Corinthians 12:9

Shortrnd

JohnyB,

I just wanted to let you know that this mod has been great for us.  We've had a ton of positive comments about the mod and how it's made our site stand out from the others.

Here's how it looks for us

One thing that I wanted to ask you is if you had any plans to allow us to arrange the awards differently.  As you can see, the awards line up top to bottom and I'd like to be able to arrange them in lines of 3.  Any thoughts about doing this?

Regardless, the mod is great and really appreciate the work you've done and the help you've given me.

Shortrnd


Bulakbol

@Craw. Toggle on or off or arrange like what Shortrnd is asking?


@Shortrnd. It is possible to arrange the display but I think we have to use additional group id. I'll see what I can do. I'll keep you posted.

Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Green Death

My problem with this mod is that I use many "additional groups", but do not want images displayed for all of them. Those "additional groups" that lack images still produce "gaps" on the post.

Bulakbol

#97
Quote from: Green Death on April 04, 2008, 01:15:59 PM
My problem with this mod is that I use many "additional groups", but do not want images displayed for all of them. Those "additional groups" that lack images still produce "gaps" on the post.

Hi GreenDeath. I thought I fixed it so it won't load empty stars. You can try this so it won't display additional groups that does not have stars or badge.

Display.template.php, look for
if (!empty($message['member']['additional_groups']['id']))
for ($i = 0; $i < count($message['member']['additional_groups']['id']); $i++)
echo $message['member']['additional_groups']['stars'][$i], '<br />';


and replace with
if (!empty($message['member']['additional_groups']['id']))
for ($i = 0; $i < count($message['member']['additional_groups']['id']); $i++)
if ($message['member']['additional_groups']['stars'] != '')
echo $message['member']['additional_groups']['stars'][$i], '<br />';


If you still have problem, let me know. Thanks for trying this mod. If there's a gap between the last badge and the avatar, remove the <br /> from this line
', $message['member']['group_stars'], '<br />';
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Jade Elizabeth

JB, are you planning to put the option to choose which badges are able to show an icon if they are secondary groups? Like the previous group?

Can you make it so we can choose the order the badges are displayed in, so that if the user has badges 1, 3 and 4, they display like we ordered them?
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Bulakbol

Quote from: Alundra on April 04, 2008, 05:48:54 PM
JB, are you planning to put the option to choose which badges are able to show an icon if they are secondary groups? Like the previous group?

Can you make it so we can choose the order the badges are displayed in, so that if the user has badges 1, 3 and 4, they display like we ordered them?

Hi Alundra. Would you like to be like the Group Color legend? The next version will have that option. I'll work on it then.  ;)
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Advertisement: