Member Awards (2.0 Compatible!)

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

Previous topic - Next topic

hayu

Ok, my shoutbox mod cause this problem in this award modification.
Is about this code in the index.template.php file:

<script type="text/javascript"><!-- // --><![CDATA[
window.onload=function(){loadChat();};
var shoutFile="',$shoutFile,'";
var yshout_php="',$scriptpath,'?yshout',$args,'";
// ]]></script>


If anyone know how to fix this problem I will be very gratefull.

Babalui

Quote from: ukhalik2 on June 04, 2010, 01:47:01 PM
whenever i try to assign an award to a person, it gives me error that, "please select the award and/or member"
even though i am selecting the award and the right member?

any help?

I had the same error. Solved by:
Type correct DISPLAY NAME (not username) and hit ENTER (do not click on Submit button).

thee mc

#1862
Awesome mod, maybe you can help me with something here. For some reason, one of the pages comes out a bit funny:



I was thinking maybe it has something to do with TinyPortal, but there were no errors on installation and all the other pages look fine. Any ideas? Thanks!

Also as an idea (not a request) - a little icon linking to "all awards" that the user has like by where the contact icons are in the user bar in posts would be a cool addition. :)

edi67

seems to be very beautiful but you think it work in my smf 2 rc1 ?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Kindred

edi67, you need to upgrade to RC3 ASAP for security reasons.
Сл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."

Babalui

Ehm, how to display awards in members profile page? Small pics under avatar, and the full table under signature?
I've tried to copy/paste/edit code from Display.template.php but I'm messing it up....

Babalui

I DID IT!
Small step for monkey, but huge for donkey :)

Clicking on award icon (yellow medal on pic) will show you all medals for that member.
Clicking on any medal (ribbon on pic)  will show you detailed info for that medal.

In file Profile.template.php find:
// Now print the second column where the members avatar/text is shown.
echo '
<td class="windowbg" valign="middle" align="center" width="150">
', $context['member']['avatar']['image'], '<br /><br />
', $context['member']['blurb'], '
</td>
</tr>';


replace with:
// Now print the second column where the members avatar/text is shown.
echo '
<td class="windowbg" valign="middle" align="center" width="150">
', $context['member']['avatar']['image'], '<br /><br />
', $context['member']['blurb'], '<br /><br />';

// Show their awards?
echo '<br /><br />
<legend>', $txt['awards'], '</legend>';

// Awards!
echo '
<a href="', $scripturl, '?action=profile;sa=showAwards;u=', $context['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>', '<br /><br />', '&nbsp;';


// Couldn't limit it in Load.php, so let's do it here.
foreach ($context['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 '
</td>
</tr>';


Works OK on my forum, but I'm not an expert, so I cannot gurantee if above code is secure, safe, stable or anything positive, apart from what you can see on the pic.


Babalui

Any idea how to sort awards?
Like, I would prefer for a certain award(s) to be in first position(s).

phxmaximus

Quote from: phxmaximus on December 06, 2009, 01:20:39 AM
Hello Friends,

I installed the new version but I still cannot select more than one favorite. Any ideas?

I upgraded my forums from 1.1.10 to 1.1.11. There were some errors with the awards in the log, so I removed the mod. Then I manually reinstalled it with the package I downloaded, because the package manager was giving errors with a couple of files. Everything is working perfect and error free, except for the above issue.


Thanks!

I have read the thread since being taken over by Jblaze and didn't notice if anything in the version for those of us not using 2.0RC3 has been corrected. If I missed it, I apologize. That said, now that we have support again, is there any information that could help me with the issue noted here? Thank you for your time.

phxmaximus

Also, is it possible to rotate which awards are displayed on the forums?

C4G-TK

Quote from: phxmaximus on June 13, 2010, 03:38:10 PM
Also, is it possible to rotate which awards are displayed on the forums?

It will rotate depending on how many you select as showable and how many you select as favorite.

Example...

If you allow 6 awards (in admin) to show in the post profile and you don't have any marked as favorite (in profile), the images will keep changing (if you have more than 6 awards obviously)

   If you have three marked as favorites, it will ALWAYS show those three, but the other three will change each time the screen refreshes (if you have more than 6 awards obviously.

   I hope this makes sense to you.

-img removed-

phxmaximus

Yeah makes sense. Then I need help with my other issue, that of only being able to select one favorite.

venex

Quick and nice question... if I want to give an award to everyone in my forum, do I have to enter name by name?

or... how can I do it?

(Sorry if this question was already answered...).

JBlaze

@venex, you will have to do it user by user. There is no mass-award function. It is planned for 3.0 though.
Jason Clemons
Former Team Member 2009 - 2012

venex

Wow...

I hope it comes out early...

Other question... can the "mass-award function" be possible at least with a sql query? sorry for the annoyance lol (my forum's birthday is in 1 hour and I want to give an award to everyone).

phxmaximus

Any ideas why I can't select more than 1 favorite using smf 1.1.11 and the latest version compatible with that? Thanks

anakmacan

I wanna make donation for this mod, any paypal link ?

JBlaze

Quote from: anakmacan on June 17, 2010, 08:20:36 AM
I wanna make donation for this mod, any paypal link ?

Yes, you can find a donation button on the front page of http://www.jblaze.net/


Quote from: phxmaximus on June 16, 2010, 11:27:37 PM
Any ideas why I can't select more than 1 favorite using smf 1.1.11 and the latest version compatible with that? Thanks
I haven't had the time or interest to look into 1.1.x bugs, but I may take a stab at it sometime next week. Right now, I have alot of projects to work on.
Jason Clemons
Former Team Member 2009 - 2012

Tearstar

Can we get integration for this into the Ultimate Profiles Mod, it would be nice if you go to a members profile, if thumbnails or something automaticly showed up in the Media (Gallery) Table on the ultimate profile.

SMF 2.0RC3 Please

C4G-TK

Quote from: Tearstar on June 17, 2010, 07:20:36 PM
Can we get integration for this into the Ultimate Profiles Mod, it would be nice if you go to a members profile, if thumbnails or something automaticly showed up in the Media (Gallery) Table on the ultimate profile.

SMF 2.0RC3 Please

You could try parsing the Member Award mod and under the Display.template file, try finding the code that enters the Awards into the post.

Then, go into Profile.template and work on adding the code into the area of where you want it in the Ultimate Profile code.



Not everyone uses both mods and people use all different sizes of images.  The way in which JBlaze has kept the mod with the Awards a person has listed in their profile is really nice because not everyone uses the same size images.  But, what I described above should work with maybe a little tweak here or there.

-img removed-

Advertisement: