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.
Lesane stated a few posts back that the winner is NOT automatically chosen. An admin must go in to the Lottery options within the control panel and pick the winner.
This will reset all the values of the lottery and remove it from the Store view.
Yes I do realize this the problem I am having is this
When I MANUALLY end a lottery and NO WINNER is choosed by the random function. The current users are still IN the lottery and the lottery doesnt close. My board is small so not many people buy tickets. What I would like to do is when I push the end lottery button and a random winner IS NOT choose the people who bought tickets are reset so they can buy tickets again. Otherwise it will be MONTHS before they will be able to buy again. Plus the lottery doenst end when no winner is choosen it just stays there.
$check=$DB_site->query_first("SELECT * FROM store WHERE ok='Y'");
if ($check[action]=='lottery') {
$lok=$DB_site->query_first("SELECT * FROM storelottery WHERE lotnumber='1'");
$jackpot="Current Lottery Fund is now: $lok[jackpot]";
} else {
$jackpot="";
}
Open forumhome template and put $jackpot wherever you want.
I'm having problem with this, I placed $jackpot in forumhome template but on the index page it didn't show up. Any help?
I am having the same problem that another guy posted on here , everything installed just fine, and when I created my lottery in admin cp it went just fine , but when I try to purchase a ticket all I get is a white page and no ticket is purchased. Please help
Yes I do realize this the problem I am having is this
When I MANUALLY end a lottery and NO WINNER is choosed by the random function. The current users are still IN the lottery and the lottery doesnt close. My board is small so not many people buy tickets. What I would like to do is when I push the end lottery button and a random winner IS NOT choose the people who bought tickets are reset so they can buy tickets again. Otherwise it will be MONTHS before they will be able to buy again. Plus the lottery doenst end when no winner is choosen it just stays there.
Am I clear as to what Im trying to do here?
you have to read the posts - go backwards though them not from beginning as i had to do this so when i ended lottery it picked a winner from ones who had bought a ticket.
I think its around page 40 but dont quote me on that
Originally posted by Mr_P Ok worked well and it updates as well so cheers
Welcome To The Lotto
Money in jackpot: 2002
One more question : i have 15 awards using the awards cards hack - how can i make some of them apear in shop so users can buy them.I use the red card in the shop so if a user gets this he can pay to have it removed but how can it be implented so they can buy other awards from shop.
Example we play a lot of RTCW so we have a few awards for the game but users keep asking for a rtcw logo under their name so they can say they are part of the team on the board who play.
Well for a price and a hack they can.
Is this possible ?
This shop business is one of best ideas i have seen in long while as it can be expanded to cover just about anything(wish i was a coder)
Mr_P , can you tell me how you managed to display the jackpot amount on the front page? I'm having problem with it. Thanks!
Yes I do realize this the problem I am having is this
When I MANUALLY end a lottery and NO WINNER is choosed by the random function. The current users are still IN the lottery and the lottery doesnt close. My board is small so not many people buy tickets. What I would like to do is when I push the end lottery button and a random winner IS NOT choose the people who bought tickets are reset so they can buy tickets again. Otherwise it will be MONTHS before they will be able to buy again. Plus the lottery doenst end when no winner is choosen it just stays there.
Am I clear as to what Im trying to do here?
You can hit the back button and try ending the lottery again until selects a winner. There is a fix on if you read back that you can use so that it only selects a winner from those that bought a ticket.