![]() |
Contest Hack -- Points hack addon
This is basically a hack addon to the points hack that allows users to use their points, similar to the lottery hack by Lesane for the store hack, to purchase tickets that can be used in random (or rigged.:cool:) drawings.;)
It has a decent admin cp interface, letting you edit/modify/delete contests, etc. and also has the option to pick a random winner. Here's install instructions... 1. Run these SQL statements: Code:
CREATE TABLE `contest_contests` ( 3. Extract contest.php to your forum directory. 4. In admin/index.php: Find: Code:
makenavoption("New Posts","../mod/moderate.php?action=posts","<br>"); Code:
// ************************************************* P.S.: This originally started as a hack I custom-wrote for a forum, but after some consideration, I decided to release it here to everybody.:) Links and Donations are greatly appreciated.:) P.P.S.: This is my first hack that's released here, so if you see problems, be sure to let me know. If you want each user to be able to only have one entry, view post number 19 |
...silly me.... :sleep:
|
Looks very nice, an alternative option for those who use Shinra Online Point System and would like the fun of a lottery hack.
Great! ;) |
Thanks.:)
|
V Nice:)
Satan |
great hack but how I use so peeps can buy tickets??
|
Download it, install it, tada. ^_^
|
hmmm . . i'm confused about what all this is. Like ppl enter into it, and then u pick a random person and they win? Well what do they win? lol. Also, i goto the contest.php file and all it dislpays is a blank page. looks very very nice but confused, lol.
|
This hack doesn't give the user prizes, lol. It's your job to provide the user with prizes. ^_^
Here are the commands for contest.php contest.php?view Shows you all contests contest.php?learn Displays additional info on the contests. The text that is displayed is editable in the last few lines of contest.php |
hmmm . .. i tried those commands and it still brings up a blank page.
|
Quote:
|
oh, whoop!
It's supposed to be contest.php?action=view :bunny: |
Wow that doesn't work neither. What do we do now.
|
Wait a sec. Where are the template edits? contest_main
Huh i see these in the php file but no where in the directions did it say to make templates. Something fishy is going on here. o_0 |
Oh, whoops... yeah, you need to create a template, sorry, my bad. ^_^
Here, just put this in as your template content... Name the template contest_main :) :bunny: |
This hack works great but just one thing that is wierd about it. Is there any way you can only get into a contest once. Because i can click enter contest for the same contest and still be paying not even noing that i enter the contest. So if there could be an error screen or something that says you already have entered this contest please make something like that. Thanks so much. This hack is amazng. I love it. But with out this it seems pretty funny. Thanks ;)
|
To prevent someone from submitting more than one ticket, you can modify the code a little to have a while() loop that checks if the results from a SQL select statement return any results.
If you make it select the username, and the number of results is greater than 0, just popup an error.:) |
Thats the prob hehe. I don't no how to code hahaha. I am learning but please post the code that would help tremendously. Also where to put the code would help also hehe. Thanks.
|
Okay...
In contest.php, find: PHP Code:
PHP Code:
|
O it worked great. This is a great hack. Thanks so much. I think you should update the first post for everyone with this update this is a great update thanks so much you are the greatest.
|
I have some questions. No where does it say who actually one on the forums. Only the admin area tells you. Wouldn't it be cool if the whole board new. No where does it say who one. That would be a great update if you could add that.
|
If everyone knew who was in a contest, it would spoil the part where the user decides if the risk is big enough for him/her to risk the points on.
Also, for announcing the winner, that's your job.:) |
but wait a sec i am lost. Can u explain how this hack works in description. What is there is there 100 winners? lol. Or am i thinking this hack does something else.
|
This is a contest hack. It allows you to create contests that your members can enter in.
You may have multiple contests, but each contest can only have one winner. |
I am so tired hahah. Can you give me an example of a contest. Like name a contest and the question. Thanks haha. Because I odn't no how to use this hack.
|
Do you know what a contest is? It has nothing to do with questions.
Please go to http://www.dictionary.com to look it up.:rolleyes: Thanks, Alex |
so then how is this hack any different than the lotto hack?
|
omg... if you don't want to use this hack, nobody's forcing you to. If you want to complain about work that others have made and have worked hard on, then complain to your psychiatrist, please.
Thanks, Alex |
No i am not complaining at all. I never complain about someones hard work. I am trying to simply ask how this hack works and if i can have an example of how one of you guys use it because I have no clue how to use it and how to impliment it in my board to have other people t use it. I want to use it so i am trying to ask how to work this. Thanks. Sorry if i sounded mean or anything. I wasn't.
|
Ok i get it now. I was thinking really hard and now i feel dumb haha. This is a great hack and I am using it now. Thanks so much. All I was doing is trying ti figure out how to get it done thanks.
|
I have this hack installed.
Ive created a contest. But how do my members in the forums sign up for these? I created the template. I loaded all the proper files, and users points are climbing. Still cant figure out how a registered user will sign up for contest. please assist :) |
|
Blank white page.. any thoughts
|
It should work find... :/
|
maybe i have the wrong contest.php file?
let me find the file and ill upload it again.. ill post results shortly |
eiSecure,
thanks for your assistance. My problem was as follows I placed the contest.php file in the /forum/mod directory. OOPS after re reading your instructions i placed it in the /forum directory and BLAM! worked! thank you, great hack |
below is error code generated when trying to sign up for a contest.
Database error in vBulletin 2.2.6: Invalid SQL: SELECT storep FROM user WHERE userid='1' mysql error: Unknown column 'storep' in 'field list' mysql error number: 1054 while reviewing the database USER. No storep column. HELP :) |
Did you install the Points Hack?
|
Looks good! Good hack!!
|
Fixed it.
|
All times are GMT. The time now is 04:18 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|