Analog Posted May 13, 2011 Share Posted May 13, 2011 Promo Code Manager v1.0.1 This simple addition will give you the ability to manage promotional codes for your game without having to make changes to the registration file. Installation requires editing 1 file, creation of 1 file, adding 1 table to your database. 1. Create the following table in your database You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 2. Copy and Paste the below code into a file named promo.php and upload to your host. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 3. Make the folowing 2 changes to your register.php file.... Find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace with You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace with You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. That is it! You have now installed this simple promo code manager. Simply go to http://yourgameurl.com/promo.php and setup/mange your promo codes This modification was created with an unedited register.php file. If you have already modified your register.php, you may need to make slight changes to the edits I have posted. As always... backup your files before making changes UPDATES! v1.0.1 - Added tracking of how many times a code is used Quote Link to comment Share on other sites More sharing options...
Dayo Posted May 13, 2011 Share Posted May 13, 2011 looks good, i was gona make something like this when i got time (among the long list lol) but still, good job Quote Link to comment Share on other sites More sharing options...
Dominion Posted May 13, 2011 Share Posted May 13, 2011 Nice little add-on well done. :) Quote Link to comment Share on other sites More sharing options...
Lord_Stark Posted May 13, 2011 Share Posted May 13, 2011 Very nice addon, Looks like a good quality of code there. Well done sir! Quote Link to comment Share on other sites More sharing options...
Djkanna Posted May 13, 2011 Share Posted May 13, 2011 Nice addition Analog. Quote Link to comment Share on other sites More sharing options...
The Spirit Posted May 13, 2011 Share Posted May 13, 2011 Thats a great addition! Thanks :) Quote Link to comment Share on other sites More sharing options...
Analog Posted May 13, 2011 Author Share Posted May 13, 2011 Thank You all Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted May 13, 2011 Share Posted May 13, 2011 This is a great mod!! dont use abs though, use intval instead.. abs do not exactly secure it.. what i learned... Quote Link to comment Share on other sites More sharing options...
Djkanna Posted May 14, 2011 Share Posted May 14, 2011 This is a great mod!! dont use abs though, use intval instead.. abs do not exactly secure it.. what i learned... Neither exactly "secure it", whatever it may be. abs() is perfectly acceptable here. Quote Link to comment Share on other sites More sharing options...
Analog Posted May 14, 2011 Author Share Posted May 14, 2011 Updated original post to v1.0.1 Now tracks how many times a code used during registration Quote Link to comment Share on other sites More sharing options...
GregFest Posted May 15, 2011 Share Posted May 15, 2011 great mod works well nice job Quote Link to comment Share on other sites More sharing options...
Uridium Posted May 18, 2011 Share Posted May 18, 2011 Its always the simple mods that make the bigger difference well done Analog :) Quote Link to comment Share on other sites More sharing options...
Casey Posted May 20, 2011 Share Posted May 20, 2011 Nice code there mate :) Quote Link to comment Share on other sites More sharing options...
ashstyx Posted January 7, 2012 Share Posted January 7, 2012 did everything u said and when i go to myurl.com/promo.php it says this Not Found The requested URL /promo.php was not found on this server. Quote Link to comment Share on other sites More sharing options...
Dominion Posted January 7, 2012 Share Posted January 7, 2012 did everything u said and when i go to myurl.com/promo.php it says this Not Found The requested URL /promo.php was not found on this server. File named correctly? promo.php in the correct directory? Quote Link to comment Share on other sites More sharing options...
ashstyx Posted January 8, 2012 Share Posted January 8, 2012 file is called promo.php and its in my mods folder in the main folder 90 files and directories in dclxvi.co.uk / httpdocs / Mods total Quote Link to comment Share on other sites More sharing options...
Dominion Posted January 8, 2012 Share Posted January 8, 2012 file is called promo.php and its in my mods folder in the main folder 90 files and directories in dclxvi.co.uk / httpdocs / Mods total It's a staff file so it's in the wrong folder. Add it to the staff's array. http://makewebgames.io/showthread.php/39502-Tutorial-v2-0-3-v2-5-convertion Quote Link to comment Share on other sites More sharing options...
ashstyx Posted January 9, 2012 Share Posted January 9, 2012 It's a staff file so it's in the wrong folder. Add it to the staff's array. http://makewebgames.io/showthread.php/39502-Tutorial-v2-0-3-v2-5-convertion ive done that and ive tried editing it for redux but still myurl.co.uk/promo.php comes up not found Quote Link to comment Share on other sites More sharing options...
Dominion Posted January 9, 2012 Share Posted January 9, 2012 ive done that and ive tried editing it for redux but still myurl.co.uk/promo.php comes up not found If promo.php is inside mods/staff then that path would not work... Quote Link to comment Share on other sites More sharing options...
ashstyx Posted January 9, 2012 Share Posted January 9, 2012 (edited) its not its just in the staff folder dclxvi.co.uk / httpdocs / Staff also i have redux Edited January 9, 2012 by ashstyx Quote Link to comment Share on other sites More sharing options...
Newbie Posted February 14, 2012 Share Posted February 14, 2012 i get this when i sign up You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Amorphous Posted June 17, 2012 Share Posted June 17, 2012 i get this when i sign up You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace with this for the last step : You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
JamesRage Posted April 14, 2014 Share Posted April 14, 2014 Great mod-! But i get one error with the last step I get A critical error has occurred, and this page cannot be displayed. Please try again later. Query failed can someone please fix this?? Quote Link to comment Share on other sites More sharing options...
Reecey12345 Posted April 15, 2014 Share Posted April 15, 2014 Again, are you using V1 or V2 and what is the query. 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.