Advertisement:

Author Topic: Awards Mod  (Read 80086 times)

Offline winrules

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,085
  • Gender: Male
Awards Mod
« on: March 21, 2006, 11:28:03 PM »
Link to Mod

This mod will add a "Profile Awards" and "Post Awards" field to the profile. Only admins can change it. The "Profile Awards" will be displayed in the profile, and the "Post Awards" will be displayed next to the user's posts. You can use BBC in both of them.

These settings:

will result in this in the profile screen:

and this in the user's posts:


How to make post awards work in custom themes

Thanks to [Unknown]'s tutorial.
« Last Edit: April 07, 2006, 01:02:57 PM by winrules »
winrules
SMF Developer
               My Mods
Please do not PM me for support.


Offline trenchteam

  • Sr. Member
  • ****
  • Posts: 901
  • Gender: Male
    • NO WALLS STANDING
Re: Awards Mod
« Reply #1 on: March 22, 2006, 04:27:14 AM »
whoo hoo! NICE MOD! Thanks.

Offline eriktm

  • Sr. Member
  • ****
  • Posts: 727
  • Gender: Male
  • The world as you know it, will soon be changed...
Re: Awards Mod
« Reply #2 on: March 22, 2006, 06:25:49 AM »
Nice mod, but can`t get it work.

Some CHMOD-problems...

Offline hel8itch

  • Semi-Newbie
  • *
  • Posts: 65
Re: Awards Mod
« Reply #3 on: March 22, 2006, 07:33:54 AM »
i have it installed and can see the box on the profiles to add the info to.but nothing shows up on the forums under the users name or on their profile once iv added the info?

Offline winrules

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,085
  • Gender: Male
Re: Awards Mod
« Reply #4 on: March 22, 2006, 03:52:19 PM »
i have it installed and can see the box on the profiles to add the info to.but nothing shows up on the forums under the users name or on their profile once iv added the info?
Were there any errors in the install?
winrules
SMF Developer
               My Mods
Please do not PM me for support.


Offline trenchteam

  • Sr. Member
  • ****
  • Posts: 901
  • Gender: Male
    • NO WALLS STANDING
Re: Awards Mod
« Reply #5 on: March 22, 2006, 07:01:29 PM »
Mine works great on both my forums. 

I have it in use at www.otek671.com with the custom theme. There are only one file that needs to be changed on a custom theme and thats the Display template. Very easy to do. Thanks again for the great mod!!

Offline winrules

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,085
  • Gender: Male
Re: Awards Mod
« Reply #6 on: March 23, 2006, 07:21:15 PM »
Version 1.1 has been released, which fixes a "Undefined index: profile_awards" error.
winrules
SMF Developer
               My Mods
Please do not PM me for support.


Offline eriktm

  • Sr. Member
  • ****
  • Posts: 727
  • Gender: Male
  • The world as you know it, will soon be changed...
Re: Awards Mod
« Reply #7 on: March 24, 2006, 01:20:54 AM »
Really great mod...

Offline fairx

  • Semi-Newbie
  • *
  • Posts: 27
Re: Awards Mod
« Reply #8 on: March 24, 2006, 12:07:03 PM »
please forgive this dumb question..

where do I check the user with top post for the day?

Offline winrules

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,085
  • Gender: Male
Re: Awards Mod
« Reply #9 on: March 24, 2006, 04:34:41 PM »
please forgive this dumb question..

where do I check the user with top post for the day?
Go to the the user's profile, and click on forum profile information.
winrules
SMF Developer
               My Mods
Please do not PM me for support.


Offline fairx

  • Semi-Newbie
  • *
  • Posts: 27
Re: Awards Mod
« Reply #10 on: March 24, 2006, 10:40:12 PM »
thank you..

but, what I mean is..

how do I know for sure if someone out of hundered of user is the top poster of the day.. is there any statistic? I know there are total post count in "members" section but how do I choose a specific day / month and found out who post the most?


Offline ivo2296

  • Full Member
  • ***
  • Posts: 514
  • Gender: Male
  • SMF Bulgarian Translator
Re: Awards Mod
« Reply #11 on: March 25, 2006, 01:12:57 AM »
Can i install it on smf 1.0.5?

Offline winrules

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,085
  • Gender: Male
Re: Awards Mod
« Reply #12 on: March 25, 2006, 10:20:36 AM »
thank you..

but, what I mean is..

how do I know for sure if someone out of hundered of user is the top poster of the day.. is there any statistic? I know there are total post count in "members" section but how do I choose a specific day / month and found out who post the most?


There aern't any statistics yet, but i might add something to the memberlist.

Can i install it on smf 1.0.5?
Probobally not, but it might work. Only install if it it doesn't have any failures. I havent tested it on the old defualt theme.
winrules
SMF Developer
               My Mods
Please do not PM me for support.


Offline ivo2296

  • Full Member
  • ***
  • Posts: 514
  • Gender: Male
  • SMF Bulgarian Translator
Re: Awards Mod
« Reply #13 on: March 25, 2006, 10:27:29 AM »

Can i install it on smf 1.0.5?
Probobally not, but it might work. Only install if it it doesn't have any failures. I havent tested it on the old defualt theme.
I have asked cause the resent latest and final versions are 1.0.5 and 1.0.6.

Offline azxure

  • Semi-Newbie
  • *
  • Posts: 23
  • Gender: Female
Re: Awards Mod
« Reply #14 on: March 25, 2006, 11:08:35 AM »
Quote
i have it installed and can see the box on the profiles to add the info to.but nothing shows up on the forums under the users name or on their profile once iv added the info?

having the same problem.  it shows up in the profile, but not in the post.

Offline winrules

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,085
  • Gender: Male
Re: Awards Mod
« Reply #15 on: March 25, 2006, 11:12:47 AM »

Can i install it on smf 1.0.5?
Probobally not, but it might work. Only install if it it doesn't have any failures. I havent tested it on the old defualt theme.
I have asked cause the resent latest and final versions are 1.0.5 and 1.0.6.
It's only tested on 1.1rc2, but it might work on 1.0.x


Quote
i have it installed and can see the box on the profiles to add the info to.but nothing shows up on the forums under the users name or on their profile once iv added the info?

having the same problem.  it shows up in the profile, but not in the post.
Are you using a custom theme?
winrules
SMF Developer
               My Mods
Please do not PM me for support.


Offline azxure

  • Semi-Newbie
  • *
  • Posts: 23
  • Gender: Female
Re: Awards Mod
« Reply #16 on: March 25, 2006, 12:25:21 PM »
um, yes and no. it's based off of the default theme. i see the bit of code in the profile template, it doesn't display on the default theme either.


wait, that's it *laughs*  i forgot the rc2 default is not the default ours reads off of. 

thanks!

Offline trenchteam

  • Sr. Member
  • ****
  • Posts: 901
  • Gender: Male
    • NO WALLS STANDING
Re: Awards Mod
« Reply #17 on: March 25, 2006, 08:30:05 PM »
@azxure

If your using a custom theme. 

Find this:

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

Replace with this:

Code: [Select]
<![CDATA[
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '';

if (!empty($message['member']['options']['profile_postawards']))
{
$postawards = parse_bbc($message['member']['options']['profile_postawards']);
echo '<br />Awards: ' . $postawards . '';
}

echo ' <br />
<br />';
]]>

You can see it used at my site on this thread. Look for my member Josh05.  I placed this on the bottom of his signature.

http://otek671.com/forum/index.php?topic=293.msg5540#new

Offline azxure

  • Semi-Newbie
  • *
  • Posts: 23
  • Gender: Female
Re: Awards Mod
« Reply #18 on: March 25, 2006, 08:37:17 PM »
i found it, thanks for the help though!    i hadn't even thought to check the themes (we don't use that new default one, so i forgot to even check it)

i'm using it as a supporter icon, so i also went in and got rid of the "award:" text, it's perfect!

Offline trenchteam

  • Sr. Member
  • ****
  • Posts: 901
  • Gender: Male
    • NO WALLS STANDING
Re: Awards Mod
« Reply #19 on: March 25, 2006, 08:41:53 PM »
Glad you got it working man.  ;D ;D ;D