Version: 1.00, by Lesane
Developer Last Online: Oct 2004
Version: 2.2.x
Rating:
Released: 06-18-2002
Last Update: Never
Installs: 119
No support by the author.
Info:
This addon for the store hack gives you the ability to add a Lottery on your store. A lottery with the same principles as a normal lottery. Users buy a lottery ticket in the store and after the specified enddate you or any other admin execute the lottery script in the admincp wich search for a random user from the database and checks if the user bought a ticket and if so then he will receive the jackpot if not then the lottery stays online.
The jackpot will be increased with the amount of the lottery ticket everytime when a new member buy's a ticket.
What to do:
2 Query's: 1 new table, 1 new row.
3 File Edit's: Admin/Index.php, Store.php & Storeadmin.php
1 Template Edit: Store_bit
2 New Templates: store_lottery_error & store_lottery_updated
Some Features:
- A new action on the store: Lottery
- Winner will be picked randomly
- Winner will be pm'ed with a winner's message
- Losers will be pm'ed with a loser's message
- Define Start Date of the lottery
- Define End Date of the lottery
- Define title of the lottery
- Define the amount of a ticket
- Maximum of 1 Ticket Per User
- And more....
This lottery addon will only work with the latest version of the store hack and is compatible with any Vbulletin 2.*.* version.
Have fun with the addon,
Lesane.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Help I have a user that has purchased a lottery ticket 22 times, he probably has found a way around the system.
Has anyone noticed this problem ?
okay here is an update,
when the user bought his ticket, it gives you the screen that you bought a ticket, at that point all you have to do it refresh your browser and buy another ticket
there has got to be a fix to this before it gets out of hand
Originally posted by hypedave Help I have a user that has purchased a lottery ticket 22 times, he probably has found a way around the system.
Has anyone noticed this problem ?
okay here is an update,
when the user bought his ticket, it gives you the screen that you bought a ticket, at that point all you have to do it refresh your browser and buy another ticket
there has got to be a fix to this before it gets out of hand
Lesane is there a way to give away something other then points/cash. we would like to give away sponsor prizes but this addon didn't seem to support it
Is it possible to call in on main forum home page how much is in the Lottery as this will encourage members to buy a ticket in hope of winning it.
Example :
Current Lottery Fund is now : 2300
etc so then they pay 200 for a ticket (im expensive) and then when they refresh it says
Current Lottery Fund is now : 2500
Basically just need the code that calls it in .........Anyone ?????
Another Idea if poss
is it poss if no Lottery is running then the line above dont show on forum home but if admin choose to run a lottery then the line auto appears with current jackpot and how many users have bought tickets etc
I know not much of ideas but they can be built upon.
for my post 2 back i know if u go to shop u can see these things i want but i need to code to call them in on homepage as users are lazy as we all know so the easiest way is always the best way.