Jump to content
MakeWebGames

Recommended Posts

Posted

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 :)

Posted

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')

Posted

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

Posted

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.

:)

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...