Member Awards (2.0 Compatible!)

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

Previous topic - Next topic

TechnoDragon

what do you mean you cant get the same image to work over and over?

You can upload the same image to the Member Awards as many times as you like!

If you are referring to give the same member the same award over and over...it was deliberately designed that way.  you could always just upload the same image as a new award to do it that way!
Don't tell me to get into shape...I have a shape...It is round!


sanax

Yes, that is what I have to do right now...lol

I give out awards every week but with the same image. Like the 'Super Bowl'. I save and upload the same image - image1, image2, image3 etc.

I think it'll be nice to have the option to use one image as a default award and add others if you need them?

TechnoDragon

well, you don't need to rename it each time...the member awards automatically saves it with a random number to avoid overwriting it, and so far I have been using it rather frequently with numerous different awards.
Don't tell me to get into shape...I have a shape...It is round!


sanax

huh? I tried it and if I assign the same image to someone else it overwrites the previous award given last week because I keep all the awards in a 'Hall of Fame' and the members store their awards in their profile. As I have it right now the members have a 'trophy room' which shows the same award but with different dates.

TechnoDragon

ok, i see what you are talking about...you meant you just change the image for the existing award
Don't tell me to get into shape...I have a shape...It is round!


sanax

That's right. At the moment I have 2 awards which are given to different members weekly but the image stays the same and I can't do it without uploading the same image over again

I think that'll be a nice feature/option to have

TechnoDragon

LOL, possibly, but the whole idea behind the Member Award was to have numerous different awards for everything


Other wise  Ithink there were other mods that did closer to what you want
Don't tell me to get into shape...I have a shape...It is round!


sanax

Nope, this mod takes the cake Dragon! lol

Well, I hope they won't give the teams a different 'Super Bowl' every year!! ;)... or change the Oscars award every time? Makes sense doesn't it?

computel

I looked in my themes directory and I don't seem to have a display.php file and I'm running Powered by SMF 1.1.1

how can I do the mod to the file if I don't have it.

Thanks
PS Great Mod.


Quote from: JayBachatero on January 08, 2007, 04:13:17 PM
Ok in Display.php find

mysql_free_result($request);
$posters = array_unique($posters);


Add after
est this out so not sure if it's going to fully work.  It should work though.

sanax

Find it in the 'Source' directory :)

TechnoDragon

Quote from: sanax on January 11, 2007, 04:24:34 PM
Nope, this mod takes the cake Dragon! lol

Well, I hope they won't give the teams a different 'Super Bowl' every year!! ;)... or change the Oscars award every time? Makes sense doesn't it?

True, but for the scope of this particular mod it was written specifically to work this way...someone paid to have it written for them, and then decided to share it with all of us.
Don't tell me to get into shape...I have a shape...It is round!


littleone

Id made the previous suggestion of going into the database and manually changing the refering link to the same award.  Just upload a dummy image and then go into the database and point it to the one you want.  Then you can go in through your filemanager and remove the dummy image.  This might be your best hope right now.

sanax

Thanks, I appreciate sharing this mod! I'm working on it littleone... thanks! :)

JayBachatero

Go into the awards_members table and run this query

ALTER TABLE smf_awards_members
DROP INDEX ID_AWARD_MEMBER


In ManageAwards.php
Code (find) Select

// Inset the data
db_query("
INSERT IGNORE INTO {$db_prefix}awards_members
(ID_AWARD_MEMBER, ID_AWARD, ID_MEMBER, dateReceived)
VALUES " . substr($values, 0, -1), __FILE__, __LINE__);

Code (replace) Select

// Inset the data
db_query("
INSERT INTO {$db_prefix}awards_members
(ID_AWARD_MEMBER, ID_AWARD, ID_MEMBER, dateReceived)
VALUES " . substr($values, 0, -1), __FILE__, __LINE__);
Follow me on Twitter

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

sanax

Are this changes for me to make, Jay?

JayBachatero

Oh yes.  Sorry that I was brief.  It's to remove the unique badge stuff.  Haven't tested it but it should work.
Follow me on Twitter

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

sanax

Ok.. I did the changes in the meantime but I'm not sure exactly what you had in mind although I tried to use one image for different members it didn't let me :(

Maybe you had another way to do it?

JayBachatero

Did you run the query?
Follow me on Twitter

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

sanax

Jay, ok I think I know how to do it now with the new changes... you just have to upload the same image again! Then it seems to work just fine! I'll test it a few times and let you know! :)

sanax

Thank you Jay! I don't have to save the images seperately anymore! A great help! Great MOD - thanks!

Advertisement: