CainFool Posted July 31, 2009 Posted July 31, 2009 Strange isn't it, you have a Donator Package for a year and all of a sudden it just disappears without you knowing. This is a very small modification, very easily done blindfolded. But all it does is warn you a day before your donator pack is set to expire to buy a new one. Find in header.php: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. after it put: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. That's it. If you wish to set it to warn you a week before, you may do so. I'm looking to do it for a week, I put in You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. But that does it for every single day you have it. Any help? I'm quite new to making modifications. Quote
The Chaotic Banana Posted July 31, 2009 Posted July 31, 2009 Re: [mcCodes v2] Donator Pack About to Expire Warning Basic Mod yet I like it :) Lol would change a few things tho xD +1 Quote
CainFool Posted July 31, 2009 Author Posted July 31, 2009 Re: [mcCodes v2] Donator Pack About to Expire Warning Yes I was thinking about making the font slightly bigger than the other font sizes and maybe it blinking. (<blink>mod blabla</blink>) Quote
The Chaotic Banana Posted July 31, 2009 Posted July 31, 2009 Re: [mcCodes v2] Donator Pack About to Expire Warning if thats what you want then thats what id say go for myself personally wouldent want it to do that i would like something along the lines of You dontor Days are about to hit 0 click here to buy more Blah My personal response Quote
CainFool Posted July 31, 2009 Author Posted July 31, 2009 Re: [mcCodes v2] Donator Pack About to Expire Warning If that's what you wish to do by all means. :) Do it! Quote
Haunted Dawg Posted July 31, 2009 Posted July 31, 2009 Re: [mcCodes v2] Donator Pack About to Expire Warning if($ir['donatordays'] <= 7) { echo 'Show the text here'; } should do it for 7 day's. Quote
endo Posted July 31, 2009 Posted July 31, 2009 Re: [mcCodes v2] Donator Pack About to Expire Warning yeah that will work as long as you dont use a query within it unless you use '..' Quote
redsnake420 Posted July 31, 2009 Posted July 31, 2009 Re: [mcCodes v2] Donator Pack About to Expire Warning how about it sending an event to the player saying you have 5 days remaining and they would get that event each day for the last five days Quote
endo Posted July 31, 2009 Posted July 31, 2009 Re: [mcCodes v2] Donator Pack About to Expire Warning use event_add() function within the daily cron ie event_add($r['userid'],"You have {$ir['donatordays']} left <a href=donator.php>Click here to buy a new donator pack </a>,$c"); dont copy and paste that its not 100% right its just a rough outline Quote
Mike09 Posted July 31, 2009 Posted July 31, 2009 Re: [mcCodes v2] Donator Pack About to Expire Warning use event_add() function within the daily cron ie event_add($r['userid'],"You have {$ir['donatordays']} left <a href=donator.php>Click here to buy a new donator pack </a>,$c"); dont copy and paste that its not 100% right its just a rough outline my thoughts exactly.. It's better from a day cron so you dont see an annoying in your face message all day long xD Quote
Uridium Posted July 31, 2009 Posted July 31, 2009 Re: [mcCodes v2] Donator Pack About to Expire Warning was messing with this might come in useful might not.... create SQLS You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. add this to your events.php before the final endpage statement You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. add this to global_func.php below the events You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. open up index.php and add near top You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Uridium Posted July 31, 2009 Posted July 31, 2009 Re: [mcCodes v2] Donator Pack About to Expire Warning You can add a staff section for this which will inform Donators of new and upcoming functions well before non paying members get to know. or use it for somthing completley different,, Quote
Haunted Dawg Posted July 31, 2009 Posted July 31, 2009 Re: [mcCodes v2] Donator Pack About to Expire Warning Having.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Will end up making them have thousand's of event's at the end of the day. As mentioned. You could just do.. SQL's: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Day Cron: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Header Code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
endo Posted July 31, 2009 Posted July 31, 2009 Re: [mcCodes v2] Donator Pack About to Expire Warning all depends on what you prefer to.... but it would only give the players with donator days the events so unless you have thousands of donators you would have thousands of events... Quote
Mike09 Posted July 31, 2009 Posted July 31, 2009 Re: [mcCodes v2] Donator Pack About to Expire Warning all depends on what you prefer to.... but it would only give the players with donator days the events so unless you have thousands of donators you would have thousands of events... Not many mccode games have thousands of donators xD infact i dont think theres any mccode game with over 1000 active members never mind donators Quote
CainFool Posted July 31, 2009 Author Posted July 31, 2009 Re: [mcCodes v2] Donator Pack About to Expire Warning I forgot to say that if you like this modification, please +1 me! Quote
CainFool Posted July 31, 2009 Author Posted July 31, 2009 Re: [mcCodes v2] Donator Pack About to Expire Warning Everything you're saying is going to be used in some of my planned mods. (Like the High Security Bank) So credit will go to alot of you. And thanks for the suggestions for my mods, the more the better! Quote
MyGunWars Posted July 31, 2009 Posted July 31, 2009 Re: [mcCodes v2] Donator Pack About to Expire Warning I Made Something Like This A Long Time Ago For My Game. I Should Of Posted It. It Reminds My Users 5 Days Before The Donator Days Hits Zero. ________________________________________________ Marc C. Game And Radio Owner http://www.mycriminallife.com/ http://www.prostylezradio.com/ Quote
CainFool Posted July 31, 2009 Author Posted July 31, 2009 Re: [mcCodes v2] Donator Pack About to Expire Warning Haha. :D Quote
CrazyT Posted August 1, 2009 Posted August 1, 2009 Re: [mcCodes v2] Donator Pack About to Expire Warning You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. For only serten days. Quote
endo Posted August 1, 2009 Posted August 1, 2009 Re: [mcCodes v2] Donator Pack About to Expire Warning well yes if you plan to only alert on certain days that would be useful but if you wish to alert once a day the best way would be within a cron 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.