Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Thema gestartet von: andrea in Oktober 01, 2004, 07:06:31 VORMITTAG

Titel: HowTo activate team badges
Beitrag von: andrea in Oktober 01, 2004, 07:06:31 VORMITTAG
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)   

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).
Titel: Re: HowTo activate team badges
Beitrag von: Anguz in Oktober 04, 2004, 02:05:50 VORMITTAG
Nice tip! Many will love it :)
Titel: Re: HowTo activate team badges
Beitrag von: Prone in Oktober 08, 2004, 06:01:39 VORMITTAG
Will work on it, thanks for the idea!

Edit: Works! Very easy and looking good. Thanks again Andrea.
Titel: Re: HowTo activate team badges
Beitrag von: erzon in Dezember 22, 2004, 12:54:12 NACHMITTAGS
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?
Titel: Re: HowTo activate team badges
Beitrag von: [Unknown] in Dezember 23, 2004, 04:44:47 VORMITTAG
Zitat von: erzon in Dezember 22, 2004, 12:54:12 NACHMITTAGS
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]
Titel: Re: HowTo activate team badges
Beitrag von: erzon in Dezember 23, 2004, 05:11:24 VORMITTAG
oh ic now i know thanks
Titel: Re: HowTo activate team badges
Beitrag von: mytreo in Dezember 28, 2004, 08:12:31 VORMITTAG
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.
Titel: Re: HowTo activate team badges
Beitrag von: erzon in Dezember 28, 2004, 09:16:38 NACHMITTAGS
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.
Titel: Re: HowTo activate team badges
Beitrag von: mytreo in Dezember 29, 2004, 06:05:22 VORMITTAG
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.
Titel: Re: HowTo activate team badges
Beitrag von: A.M.A in Dezember 29, 2004, 06:17:21 VORMITTAG
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.
Titel: Re: HowTo activate team badges
Beitrag von: mytreo in Dezember 29, 2004, 06:31:49 VORMITTAG
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?
Titel: Re: HowTo activate team badges
Beitrag von: theantidote in Dezember 29, 2004, 02:07:27 NACHMITTAGS
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
Titel: Re: HowTo activate team badges
Beitrag von: [Unknown] in Dezember 29, 2004, 10:22:41 NACHMITTAGS
Zitat von: mytreo in Dezember 29, 2004, 06:31:49 VORMITTAG
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]
Titel: Re: HowTo activate team badges
Beitrag von: mytreo in Dezember 30, 2004, 08:00:06 VORMITTAG
Zitat von: [Unknown] in Dezember 29, 2004, 10:22:41 NACHMITTAGS

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

Titel: Re: HowTo activate team badges
Beitrag von: User Deleted in Januar 23, 2012, 12:23:18 VORMITTAG
Are there any good websites that help you generate a badge?
Titel: Re: HowTo activate team badges
Beitrag von: Kevin1 in Februar 23, 2012, 02:53:53 VORMITTAG
nice bro, create some more badges
Titel: Re: HowTo activate team badges
Beitrag von: CISS_ee in März 13, 2012, 11:36:03 NACHMITTAGS
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
Titel: Re: HowTo activate team badges
Beitrag von: Cheshire-Cat in März 17, 2012, 10:03:07 NACHMITTAGS
Zitat von: CISS_ee in März 13, 2012, 11:36:03 NACHMITTAGS
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.
Titel: Re: HowTo activate team badges
Beitrag von: Masterd in März 18, 2012, 04:47:24 NACHMITTAGS
Nice one. Didn't knew about it. Thanks.
Titel: Re: HowTo activate team badges
Beitrag von: Chalky in März 27, 2012, 04:08:50 NACHMITTAGS
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".
Titel: Re: HowTo activate team badges
Beitrag von: Bigguy in März 27, 2012, 09:52:41 NACHMITTAGS
It has been awhile since I did this but I think you would have to edit the Display.template.php file.
Titel: Re: HowTo activate team badges
Beitrag von: Chalky in März 28, 2012, 02:47:36 NACHMITTAGS
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>';
Titel: Re: HowTo activate team badges
Beitrag von: Bigguy in März 28, 2012, 04:25:32 NACHMITTAGS
Yup that was the part I meant, good job. ;)
Titel: Re: HowTo activate team badges
Beitrag von: blanqui in Dezember 14, 2013, 06:31:35 NACHMITTAGS
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?
Titel: Re: HowTo activate team badges
Beitrag von: Bigguy in Dezember 21, 2013, 05:55:07 NACHMITTAGS
There is a mod I think that shows multiple badges for members. Have you checked the mod site. ??
Titel: Re: HowTo activate team badges
Beitrag von: blanqui in Dezember 22, 2013, 08:29:52 VORMITTAG
Zitat von: Bigguy in Dezember 21, 2013, 05:55:07 NACHMITTAGS
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. 
Titel: Re: HowTo activate team badges
Beitrag von: Bigguy in Dezember 22, 2013, 09:39:31 VORMITTAG
Do the mods work with the advanced option in Package manager. ??