News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Member Awards (2.0 Compatible!)

Started by Spuds, September 18, 2006, 03:14:03 PM

Previous topic - Next topic

KensonPlays

Found some nice air force style ribbons! http://bohemianresources.deviantart.com/art/Air-Force-Ribbons-Brush-Set-177059064?q=boost%3Apopular%20award%20images&qo=30

I'm working on labeling and seperating and zipping them up and then it'll be easier for you :)

Owner of Mesozoic Haven

Xarcell

I wish there was an option to set up automatic mile-stone awards.

Awards that user's automatically get when they reach a certain post count, or create a certain mount of topics, or even give a certain about of karma.

I would also like to see an option that allows the admin which usergroup can assign awards. This way, they can be used as gifts.

Honcho

#2222
Anyone have any ideas why the awards don't show under the avatar - I'm using 1.1.13

I'm also using the Classic YaBB SE Theme.

Kindred

Quote from: Honcho on April 03, 2011, 06:33:46 PM
I'm using 1.1.13

I'm also using the Classic YaBB SE Theme.

that would be why...

you will have to manually install the mod into that theme.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Honcho

Quote from: Kindred on April 03, 2011, 07:56:35 PM
Quote from: Honcho on April 03, 2011, 06:33:46 PM
I'm using 1.1.13

I'm also using the Classic YaBB SE Theme.

that would be why...

you will have to manually install the mod into that theme.

Yep, got it sussed now.  many thanks.

neteater

Quote from: neteater on April 01, 2011, 10:38:33 AM
i am using this mod on my site forum.studentlife.co.in its working fine there only icon representing member award link in profile is not visible. Please help me which file needed to move
hey my problem is still there

Kindred

you will need to MANUALLY apply the mod changes to your custom theme - specifically display.template.php, but possibly other template files as well.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

reinner

Hi,

I was using this mod perfectly but after I installed a mod (i forgot which mod i am thinkg referral system)
the 'award' option is not showing anymore in my admin panel.

How do i get this back?

Good day to all

agent47

#2228
The mods' working perfectly fine for me except that it doesn't display the award in the post page under the user's avatar.
My site URL: http://www.superheroalliance.net
And if changes have to be made manually, could someone please be kind enough to note changes.

Thanks in advance

Oh and BTW +1 to Xarcell's point. I was about to state the exact same.

PortaMx is probably the best SMF portal!

Spuds

I'm assuming you tried the install in other themes option when you installed the mod?  If you did and it did not work you are going to have to do some manual edits as well as some hunting for where to place them.

The file that you will edit is Display.template.php in your Themes/??? directory, whatever the directory name is for the custom theme you are running

Look in the package for a file named install_display_template.xml, it will show you two edits that you will need to make to the install_display_template.xml

You will be adding the following blocks of code to the Display.template.php file

// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<fieldset style="border: 1px solid black; padding: 5px;">
<legend>', $txt['awards'], '</legend>';

// Couldn't limit it in Load.php, so let's do it here.
$awards = 0;
foreach ($message['member']['awards'] as $award){
if($awards < $modSettings['awards_in_post'])
echo '
<a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}

echo '
</fieldset>
<br />';
}


and

// Awards!
echo '
<li><a href="', $scripturl, '?action=profile;area=showAwards;u=', $message['member']['id'], '" title="', $txt['awards'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/award.gif" alt="' . $txt['awards'] . '" title="' . $txt['awards'] . '" border="0" />' : $txt['awards']), '</a></li>';


Now where to add those is the question.  You need to look in the  install_display_template.xml file, it gives two examples of where to add the above code based on the default themes.  You will need to search your custom Display.template.php for similar blocks (the stuff in the <search></search> sections and add the above code before those blocks.

Manual Installation of Mods

agent47

#2230
EDiT: Nevermind buddy. I think I may have fixed it :)
Thanks alot Spudds. This is a tremendous mod, only thing if you can add a feature so that it auto-awards a member per basis, it would be wicked-ass :)
Nevertheless brilliant mod, hats off to you, sir.

PortaMx is probably the best SMF portal!

Spuds

Glad its working for you. 

Just a note  .... I just recently took over ownership for the care and feeding of this mod.  The work to date is actually from 3 different authors who have moved the mod forward over the years. 

My "plan" is to work on a V3 of this mod which adds in some auto awards for things like top poster, top topic starter, 1,5,10 year membership awards, things like that.  Now all I need is time to do all that stuff  :)

venex

Quote from: Spuds on April 11, 2011, 09:06:48 PM
Glad its working for you. 

Just a note  .... I just recently took over ownership for the care and feeding of this mod.  The work to date is actually from 3 different authors who have moved the mod forward over the years. 

My "plan" is to work on a V3 of this mod which adds in some auto awards for things like top poster, top topic starter, 1,5,10 year membership awards, things like that.  Now all I need is time to do all that stuff  :)
I think I love you Spuds lol.. You'll be my hero. I have so many suggestions... can I put them here or where??

Thanks for taking over... this is an AWESOME MOD and it's a waste if no one is taking care of it.

Spuds

Your are welcome to post your suggestions here ... right now I'm just going through the code so I understand everything it does before I get to messing with anything!  I'm looking for what folks would like to see added to the mod, don't know how much I will get added in the end, depends on how complex things get, but need those suggestions  :)

colour

unsure if this is support so much as I was wondering since it says no more 1.1 what about 2.0? Are you updating it to RC5?
I provide limited support as I am just as clueless as you.

Spuds

It should work fine in RC5 but you need to install it with emulation mode.

So upload it,  on the package browse screen go to bottom and find "Advanced" link, the emulate as: SMF 2.0 RC4

Will there be an RC5?  To be honest I'm not targeting an RC5 per say, I'm looking to add new features and when I get them done I'll release it for what the current release is ... if thats still RC5 then so be it.

venex

Well... where can I start? lol

-First of all, massive award (to a whole group).
-Award when the user gets to X comments (posts).
-Timed award (award that last X minutes/hours/days/years... or award that last until X date).
-auto awards (like you described above).
-Programed awards (awards given to X user on X day)

Obviously you don't have to include all of them (although it would be pretty awesome if you do) but those are some ideas that I thought or that I actually saw that the last owner of this MOD was planning on doing (for example the timed awards).

Thanks again for taking over :D!

Goss

I just installed this mod on my 2.0 RC4 forum and definitely love it.  However, is there any way to change the order that awards display in on the mini-profile next to the post?  I'd like for the awards to automatically display in the same order that they show up on the awards list, but at the moment it looks like they're ordered by when they were added to the account?

hcfwesker

#2238
Quote from: Goss on April 16, 2011, 11:32:04 AM
I just installed this mod on my 2.0 RC4 forum and definitely love it.  However, is there any way to change the order that awards display in on the mini-profile next to the post?  I'd like for the awards to automatically display in the same order that they show up on the awards list, but at the moment it looks like they're ordered by when they were added to the account?

I'm sure that can be changed under the portion of the sources/Load.php

ORDER BY am.favorite DESC, am.date_received DESC',

  i might take a look at it, and let you know what I find.

EDIT:::

(this is just a theory, I haven't had a chance to test it.

Under Sources/Load.php

find
ORDER BY am.favorite DESC, am.date_received DESC',

replace with
ORDER BY am.favorite DESC, am.id_award ASC',

If it doesn't change anything, just revert back to the original line, and I'll take another look at it.



reinner

Quote from: Spuds on April 11, 2011, 11:37:09 AM
I'm assuming you tried the install in other themes option when you installed the mod?  If you did and it did not work you are going to have to do some manual edits as well as some hunting for where to place them.

The file that you will edit is Display.template.php in your Themes/??? directory, whatever the directory name is for the custom theme you are running

Look in the package for a file named install_display_template.xml, it will show you two edits that you will need to make to the install_display_template.xml

You will be adding the following blocks of code to the Display.template.php file

// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<fieldset style="border: 1px solid black; padding: 5px;">
<legend>', $txt['awards'], '</legend>';

// Couldn't limit it in Load.php, so let's do it here.
$awards = 0;
foreach ($message['member']['awards'] as $award){
if($awards < $modSettings['awards_in_post'])
echo '
<a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}

echo '
</fieldset>
<br />';
}


and

// Awards!
echo '
<li><a href="', $scripturl, '?action=profile;area=showAwards;u=', $message['member']['id'], '" title="', $txt['awards'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/award.gif" alt="' . $txt['awards'] . '" title="' . $txt['awards'] . '" border="0" />' : $txt['awards']), '</a></li>';


Now where to add those is the question.  You need to look in the  install_display_template.xml file, it gives two examples of where to add the above code based on the default themes.  You will need to search your custom Display.template.php for similar blocks (the stuff in the <search></search> sections and add the above code before those blocks.

Manual Installation of Mods

Was this comment for me? sorry to ask such question, but i am kinda lost. :(

Advertisement: