Newbie Posted April 1, 2014 Share Posted April 1, 2014 So i got bored and wanted to have a go at doing a lottery module i think it turned out all right in the end Lets start with the SQL files You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. open up classes.php and add this to the user class You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You can add this to your style sheet if you have one if not add it into the header.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Ok now time for the files. lottery.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. lottery_config.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. lot_cron.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ok some screenshots [ATTACH=CONFIG]1372[/ATTACH][ATTACH=CONFIG]1373[/ATTACH][ATTACH=CONFIG]1374[/ATTACH] Quote Link to comment Share on other sites More sharing options...
G7470 Posted July 11, 2014 Share Posted July 11, 2014 I really like this. It's clean and well-defined as to what code file does what. The only thing I could see is to initially disable the lottery page (and give admin access) so that any users who would be on the game would not accidentally get on the lottery page somehow and use it before it is ready. Those couple little tweaks would give the admin/owner ability to test without any users going in and messing things up before the admin/owner feels comfortable with it going "live". Other than that, it looks great. ~G7470 Quote Link to comment Share on other sites More sharing options...
NonStopCoding Posted July 13, 2014 Share Posted July 13, 2014 (edited) lottery_config.php change You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. to You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. open lottery.php change You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. to You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. This will allow admins to view page even if its down in the config file. the first bit of code is just a fix but i think it works either way Edited July 14, 2014 by NonStopCoding Quote Link to comment Share on other sites More sharing options...
NonStopCoding Posted July 14, 2014 Share Posted July 14, 2014 from looking over my old code i would change things around now this mod was made about 6 months ago i think its not been optimized very well as its pulling everything instead of whats needed Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.