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.
thanks , now that I have that there , when I try to purchase a ticket , it's not letting me , it just gives me a page layout like it used to have on your confirm buying the ticket screen , but no template context. What I did was re-do the templates for the lottery , and re-hack store.php ( the new store.php) , but since the hacks were already in place in the admin panel I didn't have to do those , and since old lottery info showed up , I didn't re-do the mysql queries , should I have to do that?
I'm getting the same thing. I'm thinking it has something to do with the new code. I tried everything I possibly could, re-checked, etc.. but nothing. =/
I fiddled with stuff for a while and I think I have it working on my board. It wouldnt work for me at first either and I got the same errors. It's cuz the variables were changed me thinks.
$points were turned into $bbuserinfo['storep']
I copied and pasted the bits of code and the templates I used into the text file. So far it works fine, only thing I havent tested yet is picking the lottery winner (since I had one running while updating the store)
I hope it's ok I post this. Do not own this hack etc - just trying to help.
You were right, Frozen Dreams. I can't believe I overlooked that. Actually I can, I was pretty tired. -- Anyway, I changed all the $points to $bbuserinfo['storep'] and it works. :] Thanks~
lesane u said in order to increase the jackpot......use lottery actions......
well here's what i came across...the jackpot is represented as.... $kutje
and i understand u can start the jackpot with a certain amount in the store cpanel....
but i want to expand the $kutje command....and make it larger than it already is.....
i was thinking some kinda of coding in front of the $kutje command here....
When im editing the store.php file it ask me to find if($showimg=="Y") { well I cant find that I went to edit find in notepad and search find in edit plus and neither could find it....it also cant find $showgraphic="<b>$aw[title]</b>";
When im editing the store.php file it ask me to find if($showimg=="Y") { well I cant find that I went to edit find in notepad and search find in edit plus and neither could find it....it also cant find $showgraphic="<b>$aw[title]</b>";
If anyone could help me that would be great...
Do u think u could help with that im completly lost