News:

Wondering if this will always be free?  See why free is better.

Main Menu

Member Awards (2.0 Compatible!)

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

Previous topic - Next topic

Fustrate

#460
the SQL will only affect how it's shown in the post view.

I'm not sure how to fix the pa_favorite problem, I'll look at it in a minute...

it's not loading the $txt variables for the awards, I guess. replace
' . $txt['pa_favorite'] . '
with
favorite
Steven Hoffman
Former Team Member, 2009-2012

en_shua

Quote from: YodaOfDarkness on August 27, 2007, 01:56:09 AM
the SQL will only affect how it's shown in the post view.

I'm not sure how to fix the pa_favorite problem, I'll look at it in a minute...

it's not loading the $txt variables for the awards, I guess. replace
' . $txt['pa_favorite'] . '
with
favorite

Thanks.  I made the SQL change and it works like a charm.

I made the pa_favorite change, but now I'm getting a "8: Undefined index: favorite", it says line 48, which is this:

'img' => '<img src="' . $settings['images_url'] . '/' . ($row['favorite'] == 1 ? 'collapse' : 'expand') . '.gif" alt="' . $txt['favorite'] . '" />',

I only get this error in a thread, and not on awards in the profile.  On a test thread, I made sure that everyone had a favorite in their awards, but that didn't make the error go away either.

en_shua

UPDATE:
My forum must not be reading the ManageAwards.english.php file or something...at least in Display.template.php.  For giggles, I changed it back to $txt['pa_favorite'] and added the following above the SQL query
//trying to get rid of an error.
$txt['pa_favorite'] = 'Multiple Favorite Awards';


My forum error log is clean once again.

ladyshanae

Can you be more specific about what you changed to get rid of the pa_favorite error?  I'm not extremely adept at php/MySQL, but I'm learning.  I just am not sure where you put that code.

Thanks in advance! :)

en_shua

Quote from: ladyshanae on August 27, 2007, 09:09:42 AM
Can you be more specific about what you changed to get rid of the pa_favorite error?  I'm not extremely adept at php/MySQL, but I'm learning.  I just am not sure where you put that code.

Thanks in advance! :)

Sure thing.

In Display.template.php
Find
// How many awards to pull up?
$maxAwards = 4;


Replace with
// How many awards to pull up?
$maxAwards = 4;
//trying to get rid of an error.
$txt['pa_favorite'] = 'Multiple Favorite Awards';


Note that the number for maxAwards may be different for your install.

ladyshanae

Thank you so very much!  That worked wonders for me :D

mrstime

I am trying this with 1.1.3 and can't find in admin where you assign the badges or where the option is anywhere. 

en_shua

If you don't have Global Announcements installed, take a look at the bottom of the left menu.  It'll be in a menu that says Mods.

Mother Goose

Yes.. I would like to see what a member post would look like.. Pease? 
   

zsw007

#469
any idea what this means(when there is like 24 pages of post,i don't like to go through all fo them)? :

Unknown column 'awardName' in 'field list'
File: /home/www/****.awardspace.com/****/Sources/ManageAwards.php
Line: 193


Mother Goose

Ok... I have a package of award icons I would love to share with folks.. but have no idea who to do that. Can someone help out here?

Examples:Here's a couple of examples...
Icons
Post of the month gold award:
Photo of the month gold award:
A "Good Luck To You" member recognition icon:

Full size:
= Post of The Month

= Photo of The Month

= Distinguished Service Award

= Referrals Award, for making 5 new member referrals.

= Reputation-Bronze, for receiving 500 Karma points.

= Reputation-Silver, for receiving 1,000 Karma points.

= Reputation-Gold, for receiving 2,000 Karma points.
   

TrueSatan

Firstly thank you for offering them...if you put the pack into a zip or tar archive and add that to a post here Jay can consider how he might make use of them.

Mother Goose

I have no idea how to do that.
   

TrueSatan

Done for you...see below.

mlthmp

Hey everyone.

I have used this mod before without any problems.. however this time when I tried to install it I get this message.

Unknown column 'awardName' in 'field list'
File: ........../Sources/ManageAwards.php
Line: 193

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

Any idea how I can correct this problem? I am not able to create any awards, etc.

Jovian

I have SMF v 1.1.4 and have tried to install the member Awards Mod. I am using the default template.

2 things happen which should not.

1/ this string appears above the forum

// Pogo Awards adminIndex text strings. $txt['awards'] = 'Awards'; $txt['pa_view_album'] = 'View member\'s badge album.'; $txt['pa_mods'] = 'Mods'; $txt['whoallow_pogoawards'] = 'Managing Awards.';

The Managing Awards at the end of this string is a link to the admin function for managing awards.

2/ All forum text becomes enlarged.

Many Thanks

TrueSatan

This is not a fault of the mod...it indicates a pre-existing problem in your Modifications.english.php file such that the file needs some manual editing.

You need to check to see that:

?>

...appears once only in the file and that that single instance is at the very end of the file on a line of its own.

Put that right and your problem will be resolved.

Jovian

Quote from: TrueSatan on November 11, 2007, 06:25:55 AM
This is not a fault of the mod...it indicates a pre-existing problem in your Modifications.english.php file such that the file needs some manual editing.

You need to check to see that:

?>

...appears once only in the file and that that single instance is at the very end of the file on a line of its own.

Put that right and your problem will be resolved.

Thank you very much. I found the ?> at the end of the last line instead of being on its own line. Moved it and mod installed perfectly. :D

simplyamom

#478
i recently tried to install this, while it tested as sucessful when trying to use it i get this error.

Quote
Unknown column 'awardName' in 'field list'
File: /var/www/html/forum/Sources/ManageAwards.php
Line: 193

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

JayBachatero

Quote from: simplyamom on November 12, 2007, 01:45:35 PM
i recently tried to install this, while it tested as sucessful when trying to use it i get this error.

Quote
Unknown column 'awardName' in 'field list'
File: /var/www/html/forum/Sources/ManageAwards.php
Line: 193

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.4, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php.
What version of the mod are you using?
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Advertisement: