Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Topic started by: andrea on October 01, 2004, 07:06:31 AM

Title: HowTo activate team badges
Post by: andrea on October 01, 2004, 07:06:31 AM
With SMF it is very easy to create badges for your forum staff.

These are the steps to create badges for administrators and global moderators:

1st: create the badge graphics, for example "badge_admin.gif" and "badge_gmod.gif" (in classical style attached to this post)  (https://www.simplemachines.org/community/index.php?action=dlattach;topic=17427.0;id=2590;image)  (https://www.simplemachines.org/community/index.php?action=dlattach;topic=17427.0;id=2591;image)

2nd: upload the badge images created in the 1st step into your forum theme "images" folder.

3rd: browse to your forum admin menu, select the menu option "edit member groups"

4th: edit the member group "Administrator", modify the number of stars from "5" to "1" and alter the image name from "staradmin.gif" to "badge_admin.gif"

5th: edit the member group "Global Moderator", modify the number of stars from "5" to "1" and alter the image name from "staradmin.gif" to "badge_gmod.gif"


Variation: language dependent badges

You could even activate language dependent badges. For that you have to create the language dependent badge graphic and upload that into your images/xxx folder (where xxx is your langauge). Then in the 4th and 5th step set the image name to "$language/badge_admin.gif" (resp. "$language/badge_admin.gif"  ).

Sample Badges attached to this post

The sample badges which are attached to this post are created with CAE's wonderful button generator (http://www.buttongenerator.org/YaBB_SE_style/yabb_se_style.html).
Title: Re: HowTo activate team badges
Post by: Anguz on October 04, 2004, 02:05:50 AM
Nice tip! Many will love it :)
Title: Re: HowTo activate team badges
Post by: Prone on October 08, 2004, 06:01:39 AM
Will work on it, thanks for the idea!

Edit: Works! Very easy and looking good. Thanks again Andrea.
Title: Re: HowTo activate team badges
Post by: erzon on December 22, 2004, 12:54:12 PM
why is that im an admin but i see the mod star? i change it to image but i see the moderator image. i dont know why?
Title: Re: HowTo activate team badges
Post by: [Unknown] on December 23, 2004, 04:44:47 AM
Quote from: erzon on December 22, 2004, 12:54:12 PM
why is that im an admin but i see the mod star? i change it to image but i see the moderator image. i dont know why?

You've listed yourself as a moderator of that board, and so SMF dutifully says you are one.

-[Unknown]
Title: Re: HowTo activate team badges
Post by: erzon on December 23, 2004, 05:11:24 AM
oh ic now i know thanks
Title: Re: HowTo activate team badges
Post by: mytreo on December 28, 2004, 08:12:31 AM
I understand this, but is there a way that I can have somebody be a moderator on a board and still display their Membergroup badge (not the moderator one)? This is quite important to us.
Title: Re: HowTo activate team badges
Post by: erzon on December 28, 2004, 09:16:38 PM
i think theres no other way.

but i have a suggestion if you still want that they are moderator in the forum but still show their grouped the same not as moderator you can create another group and change it to the name you want. if you have a badge then use the badge instead of the moderator badge.
Title: Re: HowTo activate team badges
Post by: mytreo on December 29, 2004, 06:05:22 AM
Thanks, unfortunately that doesn't work. Moderators always show as moderators and that is really no use to us at all. I wish SMF would reconsider this.
Title: Re: HowTo activate team badges
Post by: A.M.A on December 29, 2004, 06:17:21 AM
If all your moderators belong to the same sub-group .. then you can edit the Moderators group so it shows the sub-group's badge.
Title: Re: HowTo activate team badges
Post by: mytreo on December 29, 2004, 06:31:49 AM
I realise that but that wouldn't work either as I have lots of sub-groups and not all moderators belong to the same one. I know from searching these boards that I am not the first to raise this issue... I think SMF should consider this area carefully as I believe this is a real limitation.

The confusing thing is that I cannot find the code where it populates the [group] with "Moderator" instead of the main sub-group. But I also have a horrible feeling that even if I did change it to the main sub-group then the  moderator would lose their moderator permissions. Can anybody confirm this?
Title: Re: HowTo activate team badges
Post by: theantidote on December 29, 2004, 02:07:27 PM
By the way Bloc's button designer does a good job at making badges for this. The url is: http://www.vennekroken.net/bloc/helios.php
Title: Re: HowTo activate team badges
Post by: [Unknown] on December 29, 2004, 10:22:41 PM
Quote from: mytreo on December 29, 2004, 06:31:49 AM
The confusing thing is that I cannot find the code where it populates the [group] with "Moderator" instead of the main sub-group. But I also have a horrible feeling that even if I did change it to the main sub-group then the  moderator would lose their moderator permissions. Can anybody confirm this?

Don't worry, it's not that hard ^_^.  I posted code for you in the other topic about this (but posting here so people will know to look.)

-[Unknown]
Title: Re: HowTo activate team badges
Post by: mytreo on December 30, 2004, 08:00:06 AM
Quote from: [Unknown] on December 29, 2004, 10:22:41 PM

Don't worry, it's not that hard ^_^. I posted code for you in the other topic about this (but posting here so people will know to look.)

-[Unknown]

Brilliant stuff! Thanks again. Here's the link to the "fix"  (http://www.simplemachines.org/community/index.php?topic=7261.msg180162#msg180162) for anyone else that needs it

Title: Re: HowTo activate team badges
Post by: User Deleted on January 23, 2012, 12:23:18 AM
Are there any good websites that help you generate a badge?
Title: Re: HowTo activate team badges
Post by: Kevin1 on February 23, 2012, 02:53:53 AM
nice bro, create some more badges
Title: Re: HowTo activate team badges
Post by: CISS_ee on March 13, 2012, 11:36:03 PM
hi..i know this is a old post but im just seing it..im wondering how i change the name in the button..is there a program used just for this...thanks
Title: Re: HowTo activate team badges
Post by: Cheshire-Cat on March 17, 2012, 10:03:07 PM
Quote from: CISS_ee on March 13, 2012, 11:36:03 PM
hi..i know this is a old post but im just seing it..im wondering how i change the name in the button..is there a program used just for this...thanks
There are loads more rank sets you can use. Take a look at http://forumranks.net/ they only cost under $1 and there are quality rank sets on that site.
Title: Re: HowTo activate team badges
Post by: Masterd on March 18, 2012, 04:47:24 PM
Nice one. Didn't knew about it. Thanks.
Title: Re: HowTo activate team badges
Post by: Chalky on March 27, 2012, 04:08:50 PM
If I install an "administrator" badge, then this will subsitute only the stars right?  So how do I stop it from showing "Administrator" in words as well?  I won't want both.  I just tried leaving the membergroup name blank for administrators but all that did was substitute it with the word "Member".
Title: Re: HowTo activate team badges
Post by: Bigguy on March 27, 2012, 09:52:41 PM
It has been awhile since I did this but I think you would have to edit the Display.template.php file.
Title: Re: HowTo activate team badges
Post by: Chalky on March 28, 2012, 02:47:36 PM
Thanks Bigguy, that seemed to do the trick  :D  I just removed this bit:

// 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>';
Title: Re: HowTo activate team badges
Post by: Bigguy on March 28, 2012, 04:25:32 PM
Yup that was the part I meant, good job. ;)
Title: Re: HowTo activate team badges
Post by: blanqui on December 14, 2013, 06:31:35 PM
O.k., so some slight necro here but this thread speaks exactly to the issue I have.  I want to add a team badge to a group while also retaining stars for post count membership.  I am really not competent to mess with the code. Any ideas?
Title: Re: HowTo activate team badges
Post by: Bigguy on December 21, 2013, 05:55:07 PM
There is a mod I think that shows multiple badges for members. Have you checked the mod site. ??
Title: Re: HowTo activate team badges
Post by: blanqui on December 22, 2013, 08:29:52 AM
Quote from: Bigguy on December 21, 2013, 05:55:07 PM
There is a mod I think that shows multiple badges for members. Have you checked the mod site. ??

Yes there's one or two.  I don't think any are fully compatible with 2.0.6 and I also use a theme but perhaps I'll be able to manually parse the mod. 
Title: Re: HowTo activate team badges
Post by: Bigguy on December 22, 2013, 09:39:31 AM
Do the mods work with the advanced option in Package manager. ??