Joel Posted May 23, 2008 Posted May 23, 2008 This mod will let The donated users have 1 chance each day to get a Reward, When there Donator Days Run out, They will not be able to Access the (Daily Donators Reward) Page, I created this Mod, And its my first, It works I've tested it, And its Fine, Here we Go Run this SQL: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Open cron_day.php and Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add After: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Make a File Called ddreward.php and put this in it: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And then your Done! :D Screenshots: I spent Ages Coding that and testing it, Feel free to Improve it to your style :D EDIT: Open Mainmenu.php and Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add After: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And then your done! :D Quote
radio_active Posted May 23, 2008 Posted May 23, 2008 Re: [V2] Daily Donator Reward [V2] Cool, nice one...A bit like the lucky dip mod i think? Shouldnt the require "globals.php"; be include "globals.php"; ??? :lol: Quote
Zero-Affect Posted May 23, 2008 Posted May 23, 2008 Re: [V2] Daily Donator Reward [V2] lol nice modification Quote
Joel Posted May 23, 2008 Author Posted May 23, 2008 Re: [V2] Daily Donator Reward [V2] Lol thanks, And it still works even if its require "globals.php"; :) Quote
Delete ! Posted May 23, 2008 Posted May 23, 2008 Re: [V2] Daily Donator Reward [V2] Couldnt you reverse the code and use it for active members ? And btw great mod Quote
Tezza` Posted May 23, 2008 Posted May 23, 2008 Re: [V2] Daily Donator Reward [V2] Nice mod.. :) Quote
Joel Posted May 23, 2008 Author Posted May 23, 2008 Re: [V2] Daily Donator Reward [V2] Couldnt you reverse the code and use it for active members ? And btw great mod Yes you can, All you need to do is edit it abit, And thanks for your Nice Comments :) Quote
webster2001 Posted May 24, 2008 Posted May 24, 2008 Re: [V2] Daily Donator Reward [V2] Shouldnt the require "globals.php"; be include "globals.php"; Works with either, Include just puts it there if the file exists, if it doesnt then i wont displayer it where as require means the file has got to exist for it to show up or else you will get an error Quote
jonomatt Posted August 16, 2008 Posted August 16, 2008 Re: [V2] Daily Donator Reward [V2] i only noticed one error. on your main menu you got Add After: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I think theres meant to be a dot between ddreward and php. sorry if it anit im still a noob. :? Quote
Joel Posted August 16, 2008 Author Posted August 16, 2008 Re: [V2] Daily Donator Reward [V2] i only noticed one error. on your main menu you got Add After: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I think theres meant to be a dot between ddreward and php. sorry if it anit im still a noob. :? Ohh yeh there is meant to be a dot You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. That will work. Quote
AlabamaHit Posted August 17, 2008 Posted August 17, 2008 Re: [V2] Daily Donator Reward [V2] Require is better than Include. if you use require and there is an error on the page the page Stops loading. and no querys will run... if you use include and there is an error on th epage the page will show the error..BUT it will continue to run the page after the error...so if there is a query after the error the query will still run. Quote
avguste Posted October 21, 2008 Posted October 21, 2008 Re: [mccode v2] Daily Donator Reward Hey there I installed this mod and I got a bug report from one of my users "every time i go to see the daily donator reward it resets my crystals to 10. it happened twice already so is it supposed to be like that?" Now,I looked at the script and I didn't see anything. Any solutions? Thanks Quote
Decepti0n Posted October 21, 2008 Posted October 21, 2008 Re: [mccode v2] Daily Donator Reward Change crystals=+10 to crystals = crystals + 10, and same with energy. Quote
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.