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

shadowedfoe

Quote from: SugarD-x on February 08, 2013, 06:59:19 PM
Quote from: shadowedfoe on February 08, 2013, 03:04:10 PM
Is this mod compatible with 2.0.4? Will I have to manually install it?
It's completely compatible with the Package Manager.
Is it? I get a warning prior to installing onto my forum, so I am wary of doing it.

Kindred

Сл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."

hcfwesker

Probably a failed file install.  Most cases when new smf users post in this MOD topic it has to do with the edits in Admin.php, which always conflicts with a previously installed MOD

Elandion

I noticed a bug in this mod yesterday and don't know where to report.

If i edit an award to change the icon i always got a 'awards_error_no_file' error from ManageAwards.php line 301
function AwardsUpload($id_award)
{
global $smcFunc, $context, $modSettings, $boarddir, $txt;

// Check if $_FILE was set.
if (empty($_FILES['awardFile']) || !isset($id_award))
fatal_lang_error('awards_error_no_file');

because $id_award isn't set.

So you have to change in line 214
// Now add the new one.
AwardsUpload($id_award);

to
// Now add the new one.
AwardsUpload($id);

(look at line 153 where $id is set)

hcfwesker

Quote from: Elandion on February 13, 2013, 06:06:11 PMIf i edit an award to change the icon i always got a 'awards_error_no_file' error from ManageAwards.php line 301

Hmm, never noticed this.  Usually when I change an icon I just upload and overwrite the image file in the awards folder.

CrystalEnel

hey there.
i love this mod but i cant find some images for this and i want some cool images for my forum so if anyone can share anything with me i would appreciate it.
thanks in advance

WhiteEagle

I'd love to see this mod updated for 2.0.4. I am planning a site that will take advantage of this mod!
I fold for team 52482. Do you Fold@Home?
SMF powered sites: Leet Link LeetSpace.com

Kindred

Сл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."

SD-X

Quote from: Kindred on February 24, 2013, 09:02:54 AM
it works fine on 2.0.4
I can confirm this too. As long as you apply the previous bug fixes which are not version-specific, it will work fine in every version of SMF 2 up to 2.0.4, (so far).

Deadfire

Quote from: SugarD-x on February 24, 2013, 07:33:04 PM
Quote from: Kindred on February 24, 2013, 09:02:54 AM
it works fine on 2.0.4
I can confirm this too. As long as you apply the previous bug fixes which are not version-specific, it will work fine in every version of SMF 2 up to 2.0.4, (so far).

Is there a post detailing all of the bug fixes to this mod, or do I need to search 150 pages to find all of them?.

SD-X

Quote from: Deadfire on March 03, 2013, 03:47:42 PM
Quote from: SugarD-x on February 24, 2013, 07:33:04 PM
Quote from: Kindred on February 24, 2013, 09:02:54 AM
it works fine on 2.0.4
I can confirm this too. As long as you apply the previous bug fixes which are not version-specific, it will work fine in every version of SMF 2 up to 2.0.4, (so far).

Is there a post detailing all of the bug fixes to this mod, or do I need to search 150 pages to find all of them?.
http://www.simplemachines.org/community/index.php?topic=114701.msg3394612#msg3394612

I can't remember if my fix solved the eval one, or another one did, but I'm not finding any posts in a quick search afterwards that is related to it. I know I have since gotten the mod working without errors, so that fix could be the one that solves both problems...I can't remember for sure.

There are also these miscellaneous fixes, the first one being for an older version, but I don't think it applies any longer:
http://www.simplemachines.org/community/index.php?topic=114701.msg3116828#msg3116828
http://www.simplemachines.org/community/index.php?topic=114701.msg3310269#msg3310269

As far as I can tell, though...neither present issues with installation.

mdebruijne

Hi,

Is it possible for the award to display at the profile homepage?
So when you click on someones profile the modifications show on the starting screen.

Greets,
Mark

hcfwesker

Quote from: mdebruijne on March 06, 2013, 04:42:40 PM
Hi,

Is it possible for the award to display at the profile homepage?
So when you click on someones profile the modifications show on the starting screen.

Yes, just find the place in the following file you want to add them.  ( edits below will place them above the member's signature on Profile page )

Profile.template.php  OR if you use Ultimate Profiles, make the same edit in UltimateProfile.template.php

Find
// Show the users signature.

Add BEFORE

// Show their awards?
if (!empty($context['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 ($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 '
</fieldset>
<br />';
}


Example on ultimate profile ( though, my Awards box is edited to look a little nicer lol )


mdebruijne

Thanks!

I only use 1 award per member and i'm using it to display ranks.
Is it also possible to show the title of the award above the image? On the profile and on posts.

Greets,
Mark

hcfwesker

Quote from: mdebruijne on March 07, 2013, 10:03:48 AM
Thanks!

I only use 1 award per member and i'm using it to display ranks.
Is it also possible to show the title of the award above the image? On the profile and on posts.

Greets,
Mark

Just a guess but you can try this

change
<a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';

to
', $award['award_name'], '<br><a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';

or try
', $award['description'], '<br><a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';[/code

TiPsY

Hello,
I've used this modification, everything is great during the install without errors but when I'm trying to access any topic I get this error message:

Unknown column 'aw.award_name' in 'field list'
File: /home/myhostname/public_html/mysite/forum/Sources/Load.php
Line: 1106

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.4, while your database is at version 2.0.2. The above error might possibly go away if you execute the latest version of upgrade.php.


I've repaired my db from mysql, was the only solution that came up with searches but still nothing.
Any info how to fix it?

realJedi

Hey :)

Is there any information if this mod will still be compatible with newer versions of SMF via updates, official 2.0.4 support, e.g.? It'd be really essential for me to know this, if it was useful to write a German translation.

Thanks a lot

Booda

Kindred

Сл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."

SD-X

Quote from: Kindred on March 29, 2013, 08:44:12 PM
It works fine on 2.0.4
It still requires the previous bugfixes to be applied, though. I think he means a version that includes those, and states 2.0.4 support on the mod page.

realJedi


Advertisement: