News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Member Awards (2.0 Compatible!)

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

Previous topic - Next topic

exteeyou

Can anyone port this to SMF 2.0RC2?

I will pay $ - no problem.

KensonPlays


Owner of Mesozoic Haven

Cuber

Sorry, 82 pages to read is a bit too much...

Can somebody tell me where I set the permissions for letting members without admin rights to assign awards?

The "Manage Awards" setting in permissions doesn't do the trick... What am I missing?

Thanks!
Happy Gamin'!©

Kindred

nothing...   as it turns out, the user must have access to the smf admin screens in order to manage the awards.

This is a frequent and lamentable problem with MANY mods which have an admin interface.

The correction is to move the permission to a different location in subs.php or admin.php, but I am not sure what move has to be made off the top of my head.
Сл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."

Cuber

If it cannot be changed easily I will have to add them myself...  :(

I just found another weird thing with this mod.
I use opera as a browser and the "label" Awards shows nice white as it is supposed to be (standard after installation).
When I switch to Internet Explorer the label is black for some reason! I use a black background so it is impossible to read.

I tried to fix this but I cannot find the right spot!

The code for the label is:
<legend>', $txt['awards'], '</legend>';
In Themes/default/Display.template.php

How to alter the code so it always shows as white?
Happy Gamin'!©

KensonPlays

Now RC3? I finally updated to RC3!

Owner of Mesozoic Haven

Legend Zero

I saw a website where he took this system and made it run automatically, along with Facebook integration, but the kid's keeping it to himself, so auto IS possible, just complicated. I tried a few times with scheduled tasks and got no where, anyone else wanna spitball ideas on how to make this thing run on its own??


KensonPlays

Quote from: Legend Zero on March 21, 2010, 11:06:25 PM
I saw a website where he took this system and made it run automatically, along with Facebook integration, but the kid's keeping it to himself, so auto IS possible, just complicated. I tried a few times with scheduled tasks and got no where, anyone else wanna spitball ideas on how to make this thing run on its own??
Once this is on RC3, I would like this!! make it a new feature maybe?

Owner of Mesozoic Haven

Legend Zero

I just made a request for the mod in the Requests board. Here's hoping!


KensonPlays


Owner of Mesozoic Haven

Lordmiller

Hopefully one of the two award mods will be updated to 2.0 RC 3. . .OTOH, does anyone have this one already installed in 2.0 RC 3 and running without problems?

Prosoi

Yeah, it works on my SMF2.0 RC2 and RC3. But I'd to enable SMF2.0 emulation in Admin area. And modified: Themes/.../Dispay.template.php manually:

Find this code:

<li class="im_icons">
<ul>
', !empty($message['member']['icq']['link']) ? '<li>' . $message['member']['icq']['link'] . '</li>' : '', '
', !empty($message['member']['msn']['link']) ? '<li>' . $message['member']['msn']['link'] . '</li>' : '', '
', !empty($message['member']['aim']['link']) ? '<li>' . $message['member']['aim']['link'] . '</li>' : '', '
', !empty($message['member']['yim']['link']) ? '<li>' . $message['member']['yim']['link'] . '</li>' : '', '
</ul>
</li>';


and add right after:


// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<li>
<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>
</li>';
}


Works for me.

KensonPlays

#1632
Ok, will do in a little bit after breakfast!

EDIT:
And once I fix my facebook connect mod problem...

Owner of Mesozoic Haven

C4G-TK

I manually installed this today and still have the same two problems on RC2 that no one has posted a fix to since page 79.  Does anyone have a fix to these?

Quote from: C4G-TK on January 08, 2010, 05:24:14 PM
Error-fix pagination in profile so that if you have more than 1 page in Award List it will go to the next page and not back to member profile.
Error-fix the Assign function, so that typing in a recipient of the award works.  Currently people are reporting that the current RC2 version doesn't when assigning it.

If we could get these two things fixed, I'm pretty sure it would work on RC2 and RC3 completely.


-img removed-

Prosoi



Quote from: C4G-TK on January 08, 2010, 05:24:14 PM
Error-fix the Assign function, so that typing in a recipient of the award works.  Currently people are reporting that the current RC2 version doesn't when assigning it.

No problem on my SMF2 RC2 and RC3, but I can't edit award and upload new image for old awards, this error message appears: "You must select a file to upload!"

perplexed

Quote from: Prosoi on March 25, 2010, 05:01:41 AM


Quote from: C4G-TK on January 08, 2010, 05:24:14 PM
Error-fix the Assign function, so that typing in a recipient of the award works.  Currently people are reporting that the current RC2 version doesn't when assigning it.

No problem on my SMF2 RC2 and RC3, but I can't edit award and upload new image for old awards, this error message appears: "You must select a file to upload!"

Is it not working with old award generally?  This would be a problem for me as I have 100s of them and have been waiting to upgrade.

Cutter65

Quote from: Cutter65 on January 14, 2010, 03:23:18 PM
I installed version 2.1.7 of the awards mod. Im running SMF 2.0 RC1.2. Everything installed without any errors and all seems to be working good except for this error I keep getting.

http://www.***********.com/forum/index.php?action=profile;area=listAwards;u=5
Apply Filter: Only show the errors with the same message
8: Undefined index: view
Apply Filter: Only show the errors from this file
File: /home1/********/public_html/forum/Themes/default/Profile.template.php
Line: 3106

The line causing the error is this.
==>3106:    <a href="', $category['view'], '">', $category['name'], '</a>

I hope someone can help me with this error.

Thanks in advance!

Bump!!

I still need to fix this error it happens when your viewing a members profile and under profile info you select awards list.

C4G-TK

Quote from: Prosoi on March 25, 2010, 05:01:41 AM


Quote from: C4G-TK on January 08, 2010, 05:24:14 PM
Error-fix the Assign function, so that typing in a recipient of the award works.  Currently people are reporting that the current RC2 version doesn't when assigning it.

No problem on my SMF2 RC2 and RC3, but I can't edit award and upload new image for old awards, this error message appears: "You must select a file to upload!"

Hmm, I previously had this installed on my forum, so all I did was do the edits.  I checked every function and those are the only two things that still don't work in RC2 was the search function to select a member for the award and the pagination in profile on the award lists.

I was able to upload new awards without any problem.  I'm going to try to get this going in the next 14 days, but I'm traveling a lot in the next 3-8 days, so it may not be done til closer to the end of that timeframe.

-img removed-

KensonPlays

Installed, but I get this error now:
Quote
Database Error
Unknown column 'aw.award_name' in 'field list'
File: /home/content/k/c/m/kcm93/html/Sources/Load.php
Line: 1034
When trying to view memberlist, admin memberlist, or individual profiles!

Owner of Mesozoic Haven

Fustrate

This mod was a casualty of January 16th, 2010. As such, it is no longer developed or maintained, and permission is not given for anyone to take it over.
Steven Hoffman
Former Team Member, 2009-2012

Advertisement: