webster2001 Posted March 29, 2009 Posted March 29, 2009 I Know this has been done before but i decided to make my own and make it available for you to use. Contains: - 1 php file - 2 php file edits - 1 D/B SQL Ive tested this for MCCODE V2 and it works on my site so heres the code: Edit file header.php Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add Before it: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. SAVE FILE! Open global_func.php 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. Save That file Create staff_pages.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Save. Open smenu.php Add in where you wish You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Run this in phpMyAdmin You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Not all files are included but when someone visits a page that is not in the database, it will automatically add that page. This should work. Any errors please post back. Please post any feedback, Negative or Positive :) Quote
bob324 Posted March 30, 2009 Posted March 30, 2009 Re: Working Close Page System [MCCODE V2] I know Im probably being stupid here, but what exactly does this do or for? :? Quote
POG1 Posted March 30, 2009 Posted March 30, 2009 Re: Working Close Page System [MCCODE V2] you could expand on this and add an additional field to that table which you could put a list of who it is blocked for. Take a look at the mysql SET data type ;) SET('admin','staff','jail','donator') Quote
XCU53S Posted March 30, 2009 Posted March 30, 2009 Re: Working Close Page System [MCCODE V2] well from reading this im guessing it tells the game what pages a user can and cannot view. And nice idea Pog1 selective punishment :-P Quote
webster2001 Posted March 31, 2009 Author Posted March 31, 2009 Re: Working Close Page System [MCCODE V2] you could expand on this and add an additional field to that table which you could put a list of who it is blocked for. Take a look at the mysql SET data type ;) SET('admin','staff','jail','donator') Good idea :-P Might add that in later when i have the spare time. Then you dont need the if($ir['jail']) etc... part. :) Quote
Opium Posted March 31, 2009 Posted March 31, 2009 Re: Working Close Page System [MCCODE V2] You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Here is a piece of code i took and have a look at my general idea.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Easier to edit the pages... So you don't have to open each page to edit it. 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.