Advertisement:

Author Topic: Stars and Badges  (Read 288449 times)

Offline Bulakbol

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,220
  • Gender: Male
  • JohnyB
Stars and Badges
« on: February 29, 2008, 11:59:19 PM »
Link to Mod

Author:JohnyB   Mod Name:StarsAndBadges   Version:1.0   Tested:Freshly installed SMF 1.1.4

StarsAndBadges 1.0
 - This mod will display additional group stars and or badges
     or whatever you use as stars in membergroup settings.
 - In post - display additional stars and or badges.
 - In Profile - display group names and additional group names as well as stars and badges.
 - In Personal Message - display stars and or badges of additonal groups.

Supported Themes
 - Aa_New_Damage
 - Babylon
 - Classic
 - Cs-dk114v1
 - Default
 - dilbermc
 - helios_multi11
 - Wowdk_114v1
 
If your Theme is not supported, in {yourtheme}/Display.template.php, look for
Code: [Select]
', $message['member']['group_stars'], '<br />';
and replace with
Code: [Select]
', $message['member']['group_stars'], '<br />';

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 />';

February 18, 2009
Released update for SMF version 2.0 RC1.
« Last Edit: February 18, 2009, 11:56:49 PM by Bulakbol »
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Offline ApplianceJunk

  • SMF Hero
  • ******
  • Posts: 3,491
    • ApplianceJunk.com
Re: Stars and Badges
« Reply #1 on: March 01, 2008, 12:33:14 AM »
Hi,

This works great!

Thanks,
 

Offline jdvarner

  • Jr. Member
  • **
  • Posts: 251
Re: Stars and Badges
« Reply #2 on: March 01, 2008, 10:36:33 AM »
i got an error, but suspect its due to other mods installed...

Type Action Description
1. Execute Modification ./Sources/Load.php Test failed
2. Execute Modification ./Themes/default/Display.template.php Test successful
3. Execute Modification ./Themes/default/Profile.template.php Test successful
4. Execute Modification ./Themes/default/PersonalMessage.template.php Test successful
5. Execute Modification ./Themes/babylon/Display.template.php Test successful
6. Execute Modification ./Themes/classic/Display.template.php Test successful
7. Execute Modification ./Themes/helios_multi11/Display.template.php Skipping file
8. Execute Modification ./Themes/wowdk_114v1/Display.template.php Skipping file
9. Execute Modification ./Themes/Aa_New_Damage/Display.template.php Skipping file
10. Execute Modification ./Themes/cs-dk114v1/Display.template.php Skipping file

Offline Bulakbol

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,220
  • Gender: Male
  • JohnyB
Re: Stars and Badges
« Reply #3 on: March 01, 2008, 11:44:28 AM »
@jdvarner.
  Yes, another mod edited your Load.php that's why. You can install it manually though. Go ahead with the installation and edit your Sources/Load.php.  If you have hard time doing it yourself, attach your Load.php here and I'll help you.


@ApplianceJunk.
  Thanks for the compliment. Thanks too for trying this mod.

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

Offline edi67

  • SMF Hero
  • ******
  • Posts: 1,532
  • Gender: Male
  • Italian Supporter
    • CrazyZone
Re: Stars and Badges
« Reply #4 on: March 02, 2008, 01:59:11 AM »
intersting
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Offline perpetuallove

  • Jr. Member
  • **
  • Posts: 103
  • Gender: Female
Re: Stars and Badges
« Reply #5 on: March 02, 2008, 07:56:07 AM »
I got that same error listed above but installed anyways after making a backup. The question i have is where do i add those codes if my theme doesnt have a display.template or whatever file? I am using TP january theme :)

I tried modifying the default theme but that didnt do it either....... am i gonna have to do it all manually?
Thanks!
« Last Edit: March 02, 2008, 07:58:40 AM by perpetuallove »

Offline runvs

  • Semi-Newbie
  • *
  • Posts: 29
Re: Stars and Badges
« Reply #6 on: March 02, 2008, 01:20:30 PM »
I have the mod installed but how do you use it?  I can not find any option to use it.
Help me I'm a noob

Offline Shortrnd

  • Semi-Newbie
  • *
  • Posts: 27
Re: Stars and Badges
« Reply #7 on: March 02, 2008, 01:52:52 PM »
I have the mod installed but how do you use it?  I can not find any option to use it.

I'm in the same boat.  This is my first attempt at using a mod.  I changed my default theme to Babylon just to see how this works.  So far I can't tell that it's done anything.  This will be great for me if I can figure out what I'm doing wrong. 

I'll post whatever info you need.  Just let me know what you need.  TIA

Offline Bulakbol

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,220
  • Gender: Male
  • JohnyB
Re: Stars and Badges
« Reply #8 on: March 02, 2008, 03:19:36 PM »
I got that same error listed above but installed anyways after making a backup. The question i have is where do i add those codes if my theme doesnt have a display.template or whatever file? I am using TP january theme :)

I tried modifying the default theme but that didnt do it either....... am i gonna have to do it all manually?
Thanks!

Hi Perpetuallove. Sorry for the delay. If your theme does not have Display.template.php, it must be using the one from the default theme.  You have to edit only the file that failed the test.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Offline Bulakbol

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,220
  • Gender: Male
  • JohnyB
Re: Stars and Badges
« Reply #9 on: March 02, 2008, 03:28:04 PM »
I have the mod installed but how do you use it?  I can not find any option to use it.

<br />
<br />I have the mod installed but how do you use it?  I can not find any option to use it.<br />
<br /><br />I'm in the same boat.  This is my first attempt at using a mod.  I changed my default theme to Babylon just to see how this works.  So far I can't tell that it's done anything.  This will be great for me if I can figure out what I'm doing wrong.  <br /><br />I'll post whatever info you need.  Just let me know what you need.  TIA<br />

Hi Runvs and Shortrnd.  The mod will display additional groups that you assign to your members. You have to create a special primary group that you could call it "Donator" and use badge instead of stars. Then go to your members profile, click  Account Related Settings, and click the [show additional groups] and tick the checkbox of the Donator. After that, this mod will display the additional groups badge in their post, personal messages and profile. If still not clear, I'll include images next time.

Thanks guys for trying this mod.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Offline Shortrnd

  • Semi-Newbie
  • *
  • Posts: 27
Re: Stars and Badges
« Reply #10 on: March 02, 2008, 04:28:29 PM »
Ok I see that now.  It's showing that badge but it won't show the post count membergroup image.  I'm sure I'm missing something fairly obvious. 

Thanks a ton for the replay and support.

Offline Bulakbol

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,220
  • Gender: Male
  • JohnyB
Re: Stars and Badges
« Reply #11 on: March 02, 2008, 04:35:19 PM »
Ok I see that now.  It's showing that badge but it won't show the post count membergroup image.  I'm sure I'm missing something fairly obvious. 

Thanks a ton for the replay and support.

oww ok. The mod didn't touch anything else. Just added the extra stars/badge. Did you install the mod manually? If you need help, I will do the best of my ability.  ;)
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Offline Shortrnd

  • Semi-Newbie
  • *
  • Posts: 27
Re: Stars and Badges
« Reply #12 on: March 02, 2008, 04:47:35 PM »
Then I'll try to follow your instructions to the best of my ability ;D

Here's what I did.  I uninstalled your mod, changed my default theme to Babylon, installed the mod, then checked my test post.  Nothing.  I then changed my default theme back to a custom theme and made the changes to the alienation(my theme)/Display.template.php file that you posted.  Still nothing. 

Good so far or did I already make a mistake?

Offline Bulakbol

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,220
  • Gender: Male
  • JohnyB
Re: Stars and Badges
« Reply #13 on: March 02, 2008, 05:04:53 PM »
@Shrtrnd. Did you create additional groups? Try my instruction first. Maybe there's no extra groups stars to display. If you can't figure out, give me temporary admin access to your site and I'll help you.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Offline Shortrnd

  • Semi-Newbie
  • *
  • Posts: 27
Re: Stars and Badges
« Reply #14 on: March 02, 2008, 05:07:30 PM »
Then again I think I just solved my problem.  I forgot that I installed another mod when I could figure out what I was doing wrong to yours.  It was the mod to select a membergroup at registration.  I think if I make this select a secondary membergroup rather than a primary it will work.

I'll keep you up to speed on it if you'd like.


Offline Bulakbol

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,220
  • Gender: Male
  • JohnyB
Re: Stars and Badges
« Reply #15 on: March 02, 2008, 05:14:49 PM »
That's good if you figured out yourself.  That's the way I learned, by doing it myself.  :D But if you really need my help, I am around.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Offline Shortrnd

  • Semi-Newbie
  • *
  • Posts: 27
Re: Stars and Badges
« Reply #16 on: March 02, 2008, 05:16:49 PM »
Wow.  Much better support around here than I thought I would get.  Thanks a ton......... and I'm sure I'll need your at some point with this. 

Offline Bulakbol

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,220
  • Gender: Male
  • JohnyB
Re: Stars and Badges
« Reply #17 on: March 02, 2008, 05:27:23 PM »
Thanks. Just attach the file that you want me to check so I can edit it and give it back to you if that's the way you prefer. I want to know the custom theme's name that you are using.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Offline Shortrnd

  • Semi-Newbie
  • *
  • Posts: 27
Re: Stars and Badges
« Reply #18 on: March 02, 2008, 05:49:17 PM »
I'm using alienation as my default.  I think I made the correct changes.  I'm still trying to set everything up so it will all work correctly.  So far I'm doing ok.  I'll holler if I run into anything.

Offline Bulakbol

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,220
  • Gender: Male
  • JohnyB
Re: Stars and Badges
« Reply #19 on: March 02, 2008, 05:54:30 PM »
Ok Shortrnd. If I am not around, I'll be around.  :P Good luck!
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines