Sam Fisher Posted February 18, 2013 Share Posted February 18, 2013 Hey MWG! Here i come with another free mod.I have decided to make and give away all the paid mods which are not worth of the charged money for free. Today i came up with am advanced report system in which the user can report a player,a staff,a bug or suggest an idea to the admin This mod come with a staff page which can be accessed only by the admin and they have to mark the report as "read" if they read it or if the report is solved or fixed than they can mark it as solved or fixed.The users of the game can view all the reports that are reported and can see weather the report is read by the admin or solved.This gives the user an idea of how the admins of the games are responding to the reports of the users. Open your "mainmenu.php" and search for You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and above that add the following code You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now you can close your "mainmenu.php" file and now you have to open your" smenu.php" to add the link of the staff page of this mod to the main menu of the staff panel. Now search for You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and above it add the following code You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now you have to create two files and upload it to your game server.So lets start with the main and the first file that is "report_center.php". Now add the following code in "report_center.php" You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now save your "report_center.php" and close it. Lets create the staff file which you have to name it as "staff_reports.php" and than add the following code You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. now you guys have to save and clode your "staff_reports.php" and run the following SQL You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And than you guys are done with the mod. I have just realized that the PHP tag in this forum dont read the <br /> tag.I am going to upload the mod to McCodes.com and maybe till tomorow it will be shown in the list because the admin have to pass the mod. Please forgive me if you find any bug.If you need any kind of help with any of my free or paid mod than you can freely contact me and ask for help. Hope you guys find it usefull Thank you, -Sam Fisher Quote Link to comment Share on other sites More sharing options...
sniko Posted February 19, 2013 Share Posted February 19, 2013 Just a question. Why have brainfile have a data-type of array, and not use it? _GET['view'] == 4 [...blah blah blah ...], why not use a switch statement? Might want to make your auto_increment to equal 1 You don't need r_type to have INT(11), wasting memory Possibly some sort of indentation, and comments throughout? Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted February 19, 2013 Share Posted February 19, 2013 Also is all this necessary? global $db, $ir, $c, $h, $userid, $set, $_CONFIG; I.could be blind but all I see is $db and none of the others very much anywhere especially in the staff file Quote Link to comment Share on other sites More sharing options...
Sam Fisher Posted February 19, 2013 Author Share Posted February 19, 2013 Also is all this necessary? global $db, $ir, $c, $h, $userid, $set, $_CONFIG; I.could be blind but all I see is $db and none of the others very much anywhere especially in the staff file I actually started studing the Mccodes engine recently and so i thought all those variables might come in handy but they dint. Quote Link to comment Share on other sites More sharing options...
Raven1992 Posted March 5, 2013 Share Posted March 5, 2013 does it 100% work Quote Link to comment Share on other sites More sharing options...
peterisgb Posted May 3, 2013 Share Posted May 3, 2013 All works well other than the report_center.php page which is mess up, however i have fixed this and here is a working copy Replace report_center.php with this: 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...
Octarine Posted May 3, 2013 Share Posted May 3, 2013 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. vs. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Rocket science its not. Code should be cruft-free, clean, indented, and ideally elegant. (I'll assuming working is a priority), however even this replacement is not safe. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. would be a wiser alternative assuming an up-to-date PHP version (5.3.0+) Quote Link to comment Share on other sites More sharing options...
peterisgb Posted May 3, 2013 Share Posted May 3, 2013 well i changed it on mine, i left it default but working. Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted May 3, 2013 Share Posted May 3, 2013 I have never seen something like this before so sorry for being a scrub but is it common practice to have an empty array for almost every variable? And why mres a number? If your using php > 5.2 filter_var() works pretty good from what I have seen and much easier to use Quote Link to comment Share on other sites More sharing options...
peterisgb Posted May 4, 2013 Share Posted May 4, 2013 fine as you please, i already done this on mine but because peps are lazy and have to comment. 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...
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.