PDA

View Full Version : Prize Recognition Hack


ranger2kxlt
05-23-2003, 10:00 PM
If your like me and hand out monthly recognition to members for winning car of the month (this can be used for anything... doesnt have to be monthly either... whatever you want)... then you will want this hack as it recognizes when a member has won through their postbit.

**It will NOT show if the member has never won anything.**

Its actually pretty simple to install and to figure out. See screen shots below.

Also I should recognize MarkB for his contribution hack. Since I am not a very good programmer of php i followed his hack and added some additions as well as modified it for this hack. No need to worry however it all works perfect.

Ok ill shut up. Instructions are in the attached text file. Screen shots to follow.

DOWNLOAD ATTACHMENT HERE! (https://vborg.vbsupport.ru/attachment.php?s=&postid=400436)

ranger2kxlt
05-24-2003, 04:27 PM
Heres the admin, edit user view. Remember the text here is customizable in the installation

ranger2kxlt
05-24-2003, 04:32 PM
Here's the view of the postbit... note that ranger2kxlt has not won anything and blunbird has... Text here is also customizable to fit your needs.

Floris
05-24-2003, 05:22 PM
Good hack! I can definitly use this :) I will use the idea and try to integrate it with vBulletin 3 :)

Dan
05-24-2003, 05:25 PM
Interesting hack... I may use it

corsacrazy
05-24-2003, 05:28 PM
nice one installllled

Mr. Brian
05-24-2003, 05:34 PM
Nice one.

DPoole
05-24-2003, 06:39 PM
any chance of makin it add a small gif to it ect ? or are we stuck with text only ??

dirtymerc
05-24-2003, 10:12 PM
doesnt work for me

ethics
05-25-2003, 12:36 AM
Doesn't work for me either.

Looks like the code

makeinputcode("Has $user[username] won POM?","winner1",$user[winner]); (I use POM) has something wrong with it. I can't even get it to display while the question of when shows up.

Does 2.2.8 have a limit in how many options you can have in the options parameters?

ranger2kxlt
05-25-2003, 04:15 AM
Yesterday at 02:39 PM DPoole said this in Post #8 (https://vborg.vbsupport.ru/showthread.php?postid=399492#post399492)
any chance of makin it add a small gif to it ect ? or are we stuck with text only ??


Edit the postbit_winner template to include an img tag (html) and you can add one that way.

ranger2kxlt
05-25-2003, 04:17 AM
Yesterday at 08:36 PM ethics said this in Post #10 (https://vborg.vbsupport.ru/showthread.php?postid=399604#post399604)
Doesn't work for me either.

Looks like the code

makeinputcode("Has $user[username] won POM?","winner1",$user[winner]); (I use POM) has something wrong with it. I can't even get it to display while the question of when shows up.

Does 2.2.8 have a limit in how many options you can have in the options parameters?


What is the error your getting? No 2.2.8 should not have a limit to how many options you can have.

Talisman
05-26-2003, 05:51 AM
Hey, that sounds interesting. I just have 2 questions:

Who is Tom?

And how do I win him?

Hmm? ;)

ethics
05-26-2003, 11:11 PM
Yesterday at 01:17 AM ranger2kxlt said this in Post #12 (https://vborg.vbsupport.ru/showthread.php?postid=399695#post399695)
What is the error your getting? No 2.2.8 should not have a limit to how many options you can have.


The error is that while I have the "specify the date of the ToM winner" I do not get the switch to turn the user on.

In other words, the screenshot shows that you have two fields in the options (user.php). I only get one.

ranger2kxlt
05-27-2003, 03:16 AM
Today at 01:51 AM Talisman said this in Post #13 (https://vborg.vbsupport.ru/showthread.php?postid=400091#post400091)
Hey, that sounds interesting. I just have 2 questions:

Who is Tom?

And how do I win him?

Hmm? ;)

TOM on my site stands for Thunderbird of the Month. I guess it should be TOTM huh? lol. I guess i will make that change. Oh yeah and you win him by entering a picture of your car in the monthly vote and if you win... i display a picture on the homepage... you have a permanent marking in your postbit (this hack), and recognition for your vehicle.

ranger2kxlt
05-27-2003, 03:29 AM
Today at 07:11 PM ethics said this in Post #14 (https://vborg.vbsupport.ru/showthread.php?postid=400327#post400327)
The error is that while I have the "specify the date of the ToM winner" I do not get the switch to turn the user on.

In other words, the screenshot shows that you have two fields in the options (user.php). I only get one.

Im extremely sorry about this... I forgot a small piece of the code in two places which is why this is not showing up for you... and for the people who said it is working they will need to update it. Sorry once again. Ive updated the download file and the changes are also posted below... Sorry.


NOTE THAT THE BELOW CHANGES ARE NOT ONLY WHAT I FORGOT TO ADD, BUT THE ENTIRE SECTION OF THE HACK THAT I MISSED. IN EACH OF THE TWO CHANGES BELOW... ONE LINE WAS MISSING FROM MY ORIGINAL ATTACHMENT.

In admin/user.php find:
makeinputcode("IP Address","aipaddress",$ipaddress);

After, Add this:
makeinputcode("Has $user[username] won [ENTER YOUR OWN DESCRIPTION HERE]?","winner1",$user[winner]);
makeinputcode("Month, Year of Winning [ENTER YOUR OWN DESCRIPTION HERE]?","winnerdate1",$user[winnerdate]);


Find:

makeinputcode("IP Address","aipaddress",$user[ipaddress]);

After, Add this:
makeyesnocode("Has $user[username] won [ENTER YOUR OWN DESCRIPTION HERE]?","winner1",$user[winner]);
makeinputcode("Month, Year of winning [ENTER YOUR OWN DESCRIPTION HERE]?","winnerdate1",$user[winnerdate]);

ranger2kxlt
05-27-2003, 03:34 AM
NEW ATTACHMENT! v1.1

ranger2kxlt
05-27-2003, 09:02 PM
Did the above fix work for you ethics?

ranger2kxlt
06-04-2003, 04:49 AM
bump... just seeing if anyone else wants this...

kevinnguyen
06-08-2003, 01:45 AM
still doesnt work

raynett
09-15-2003, 10:20 AM
I'm running version 2.3.2 forum. I have the Mark User as Contibutor (by MarkB) hack successfully installed and working.

Since I have a monthly prize drawing for our contributors I'd like to add this Prize Recognition hack also. When editing the user in the admin panel the radio button part of this works fine. If clicked yes it shows up in the forum postbits that the member is a prize winner. However, when I try adding the month/year that the prize was won it won't hold the date. :(

Any suggestions on things to try would be greatly appreciated. Thanks in advance!

speedracer68
03-31-2005, 04:28 AM
Will this work on V3+

o0Hubba0o
08-07-2005, 04:28 AM
Will this work on V3+
So will it? This will work for me for my graphics competitions and am wondering the same thing.

bigcurt
08-07-2005, 12:29 PM
No it will most likely not work on vB3 because of soo many changes, but you can request this to be ported for you..or look for something else like it ( there are many )

Adrian.
07-16-2006, 11:55 AM
Could you make this mod for 3.5.4?

Would be great if you could.

Adrian

Benedict
07-16-2006, 12:30 PM
I would love this mod for 3.5.4 too please :)

phonexpo
08-28-2006, 05:20 PM
Hi,

Please update this to work with vB 3.6.0 !