-
Enthusiast
Uber CMS Lottery System
So this is my first ever release. And I take only a tiny amount of pride in it as it only took me 10 minutes to get working, after I wasn't able to find one available anywhere else.
Basically what I did was convert badgeshop into a really simple lottery ticket system.
The "lottery tickets" are badges, which you can change the price of in "lottery_shop" table
It keeps track of lottery info in the "lottery_stats" table, and displays the jackpot amount on the page.
When the time comes to pick a winner you can view all the purchases in "user_lottery" (its not automatic, this is the lazy man's version of a lottery system... so dont be hatin' on me :P code it yourself)
here's the link
- uberCMS lottery system.rar
Enjoy :)
Feel free to add your own additions and post them
edit:
INSERT INTO `lottery_shop` (`id`, `badge_id`, `cost`) VALUES (1, 'BR051', 5000);
INSERT INTO `lottery_shop` (`id`, `badge_id`, `cost`) VALUES (2, 'BR052', 2500);
INSERT INTO `lottery_shop` (`id`, `badge_id`, `cost`) VALUES (3, 'BR053', 1000);
these are good lottery tickets, you can use your own tho.
screenshot:
Last edited by Cody Allan; 28-03-13 at 08:05 PM.
-
-
Re: Uber CMS Lottery System
Nice contribution, screenshots wouldn't do any harm though.
-
Account Upgraded | Title Enabled!
Re: Uber CMS Lottery System
love this but i got an logout error :(
-
Enthusiast
Re: Uber CMS Lottery System
i've added a screenshot :)
as for the logout error, I dont think it's related. none of these lottery tables should interfere with any other tables.
if you're using uberCMS, it should work fine :)
-
Member
Re: Uber CMS Lottery System
-
Enthusiast
Re: Uber CMS Lottery System
haha yeah, not even sure how many people still use uber. But I figured I'd release this for anybody who still does
-
Re: Uber CMS Lottery System
Please, post Screenshots!
-
Calm yo tits.
Re: Uber CMS Lottery System
AHHH would be nice if someone codes this for revcms!
-
Apprentice
Re: Uber CMS Lottery System
Very trusted release. Good Job