Karlos Posted May 10, 2009 Posted May 10, 2009 This is based off BlackVengeance's saved events mods for V1. I have converted it to V2 and enhanced the features. Add/Edit 3 PHP Files Add 1 Functions Add 1 SQL Table You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add to global_func.php: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add this to phpMyAdmin: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Screenshots! Test Site Thanks To Kyle Have fun! ;) Quote
Neji_Hyuuga Posted May 10, 2009 Posted May 10, 2009 Re: [MC Code v2] Saved Events nice mod this is +1 mate for it added it to my game Quote
yaz123 Posted May 10, 2009 Posted May 10, 2009 Re: [MC Code v2] Saved Events Add to global_func.php: // Error/Exit Function (Don't Take Credit For This Function (You Can Post Anywhere If Mentioned I Made It)) if (!function_exists('Error')) { function Error($Message) { global $h; echo sprintf("<span style='color: #FF0000;'>Error! %s</span>", stripslashes($Message)); exit($h->endpage()); } } I'm sure iv seen this in MTG's; coding along time ago Quote
Karlos Posted May 10, 2009 Author Posted May 10, 2009 Re: [MC Code v2] Saved Events Well I got the idea off Anthony... But I never saw his function.. So I made my own.. It saves me alot of typing aswell Quote
jds137 Posted May 11, 2009 Posted May 11, 2009 Re: [MC Code v2] Saved Events Any idea on this error? Warning: Cannot modify header information - headers already sent by (output started at /home/jds137/ml/public/mainmenu.php:44) in /home/jds137/ml/public/oevents.php on line 16 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Karlos Posted May 11, 2009 Author Posted May 11, 2009 Re: [MC Code v2] Saved Events Add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. just under You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. in globals.php :wink: Quote
Karlos Posted May 17, 2009 Author Posted May 17, 2009 Re: [MC Code v2] Saved Events Bump :wink: Quote
CrazyT Posted May 17, 2009 Posted May 17, 2009 Re: [MC Code v2] Saved Events I see loads of people making functions and putting them into global_func.php.. Why not even make a new php file do a class and then make functions inside them?... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Include it to globals.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Global it. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. How to use it. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Yes, it's more code, but why store it into 1 file all the time, the file will be full of stuff already. Quote
Karlos Posted May 18, 2009 Author Posted May 18, 2009 Re: [MC Code v2] Saved Events I'm guessing that's OOP? If I am correct I would use it more, but it confuses me at times.. I like to increase my skills but just using online resources can be quite hard. Quote
Voice4Vision Posted June 12, 2009 Posted June 12, 2009 Re: [MC Code v2] Saved Events Firstly Karlos, excellent mod. Installed and working flawlessly. However I do have one question. What does the Display & and Undisplay in saved events do? Any and all assistance is greatly appreciated. Thank you, Voice4Vision Quote
Voice4Vision Posted June 12, 2009 Posted June 12, 2009 Re: [MC Code v2] Saved Events Disregard, I figured it out. Awesome job on the mod. Quote
Karlos Posted June 12, 2009 Author Posted June 12, 2009 Re: [MC Code v2] Saved Events Soory Voice4Vision, didn'y notice you other post.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. By the way, no need to use mysql_real_escape_string() and htmlspecialchars() for both... Just a No No! :wink: Quote
Deadmafia Posted July 8, 2009 Posted July 8, 2009 Re: [MC Code v2] Saved Events for some reason on saved events the event will not show . 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.