Customizing SMF > Modifications and Packages

Member Awards (2.0 Compatible!)

<< < (547/604) > >>

sharks:
Please fix a bug in the SMF 1.1.x version... Whenever members who have been assigned awards are deleted (for whatever reason), when visiting the awards list in the admin panel, there are blanks where these deleted members' usernames should be. I think there should be a maintenance option in the "Settings" tab so that any awards assigned to a non-existing member can be cleaned.

Ascot:
Hi there! Awesome mod.

I'm having just a little issue. I want it to show under user avatar. So i cut the code


--- Code: --- // Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<li>
<fieldset style="border: 1px solid #181618; padding: 2px>';

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

And move it up to
--- Code: --- // Show how many posts they have made.
<li class="postcount">', $txt['member_postcount'], ': ', $message['member']['posts'], '</li>';
--- End code ---

and what happen?, when user is awared i can see all his data below awards, but when he's not it doesn't show.
I mean, there's a function on prevent loading if they haven't awards.

How can i fix this?

FireDitto:
I have no problems at all with the mod; However, what I would like to do is reset the award IDs to start at 1 again.

Is it possible to do this?

Kindred:
only if you truncate the awards table...

Fed Drago:

--- Quote from: Kindred on April 18, 2012, 01:55:00 PM ---are you using SimplePortal or EZPortal?   I have it installed in EZPortal.

--- End quote ---

Simple Portal

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version