News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Member Awards (2.0 Compatible!)

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

Previous topic - Next topic

simplyamom

Quote from: JayBachatero on November 13, 2007, 01:49:52 AM
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?
1.0.2

davehx

Hi,  I've installed this and managed to fix the  ?> wrong place thing and the redeclare error

What I would like to do is show the actual images for the awards just above the sig whenever a user posts (they are going to be quite thin banners to show current tournament champions and no user would have more than 2 or 3 thin banners)

I would imagine that this would involve editing display.template.php (and possibly display.php) but I'm not sure exactly what i would need to change.  Does anyone have any ideas?

Thanks for your help

Mother Goose

#482
There is an addition we are using that displays the award just below the avatar, it works wonderfully with this amazing Mod of JayBachatero's... this is what is displayed in our "package" list from the admin c-panel... not sure where to find it because The Amazing Alan S installed it for me.

QuoteFiles in archive smf_patch_1.0.12_1.1.4_2.0.b1.1.tar.gz:
package-info.xml (2091 bytes)
smf_1-0-11_to_1-0-12_patch.mod (6521 bytes)
smf_1-1-3_to_1-1-4_patch.mod (11641 bytes)
smf_1-1-4_can_fail.xml (832 bytes)
smf_2-0-b1_to_2-0-b1-1_patch.mod (9132 bytes)


   

davehx

Thanks for the reply, but I'm trying to get the award pics below the contents of the post and above the sig.  I think i've found the place in display.template.php to add the code, but not sure what code to add

My thinking would be a set of if...then statements

One way I was looking at doing it was creating a number of different membergroups and permanently apply a certain award to each membergroup.  Then, as only one person will have the award at a time, simply change who is a member of the particular group.

This leads me to think of something along the lines of

If user is a member of groupA  then
       display groupA_award_image

If user is a member of groupB  then
       display groupB_award_image


This might not be the most efficient way of doing it but would easily allow the addition of more groups at a later date.  It would also allow some users to have more than one award if i made them a member of more than one group.

Anyone have any thoughts on the PHP code for this?  Also, i've noticed a lot of code changes involve a change to display.php AND display.template.php    any thought on this

Thanks

simplyamom

Quote from: simplyamom on November 13, 2007, 12:00:29 PM
Quote from: JayBachatero on November 13, 2007, 01:49:52 AM
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?
1.0.2

i was able to get my database upgraded properly, but still am getting this error-

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

JayBachatero

Send me a PM and ill send you the query to run.  Im on cell now so cant post it now.
Follow me on Twitter

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

dottore 46

hi, i managed to install this mod without any problems, but the problem is, i cant find where can i assign a badge to some users? where is that field where i select the images ?

TrueSatan

ACP>Awards However please remember that if you aren't using the SMF default theme you will need to edit the mod into your custom theme...also you may need to check your forum language settings as follows:

You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.

dottore 46

tnx, i done that, i added some images for the rewards and attached the rewards to some users..but i cant see that reward..or it isnt supposed to be seen?

TrueSatan

If you go to the profile of a member to whom you have added an award and click on "Award" in the options list you will see what award they got.

JayBachatero

Quote from: zsw007 on October 08, 2007, 05:31:52 PM
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



Run this query.


ALTER TABLE smf_awards
ADD COLUMN awardName VARCHAR(80) NOT NULL DEFAULT ''
Follow me on Twitter

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

dry3210

Is there a way to give the same member the same award?  Just with a different date?

My site has yearly awards and a few members have gotten the same award multiple years...

Mother Goose

I've just uploaded the same award and assigned it "Award *Blank* #2"
   

dry3210

Quote from: Mother Goose on November 19, 2007, 04:07:26 PM
I've just uploaded the same award and assigned it "Award *Blank* #2"

Yeah I originally was going to label them as 2006 and 2007 awards, etc etc so on.  But seemed kinda silly to have duplicates when the are already there and theres a date to show what year it was given.  If theres not another way guess I'll just have to do it that way

Mother Goose

There *may* be, but if no one has the answer, that's the way to go.
   

dry3210

Nice mod

Would be great if there was a way members could view all the awards and who has which...

Mother Goose

#496
It's a great mod!! I love it!  Below the avatar, in the forum post profile, there should be a little icon that looks like a gold upper head and torso, clicking on that should take the members to the awards for that person. We have also installed a display window under the avatars.

   

Mother Goose

#497
Well.. as hard as I tried to get the info on how to make a "package" for smf, I didn't have any luck.

So I'll just post my image gallery link, and you all can feel free to help yourselves. Please do me the kindness of sending me a quick PM if you do end up using my icons. Just because it would delight me to no end.

   

Aileen

    ./Themes/default/index.template.php

I Have a dilber theme. Would this be difficult


These is a great mod. hope you can help me installing it


THanks

Ant59

This package won't work...

It said:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Help!?

Advertisement: