Jump to content
MakeWebGames

Recommended Posts

Posted

Hi, this is just an updated/upgraded game rules page.

As an Admin you can Add/Delete rules so it's easier than going to file.

I didn't look around to see if this has been done before...But it's definitely better than the standard MC.

 

Screenies:

http://img199.imageshack.us/img199/1696/gamerulesin.png

http://img85.imageshack.us/img85/4316/gameruleadd.png

 

SQL:

[mysql]CREATE TABLE IF NOT EXISTS `gRules` (

`ID` int(11) NOT NULL auto_increment,

`Rule` text NOT NULL,

PRIMARY KEY (`ID`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;[/mysql]

Overwrite gamerules.php with...:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

  • 3 weeks later...
Posted

ooh, a link may have helped, my bad.

<a href = "/gamerules.php?page=Add">Add Rule</a>

Stick that in your staff panel, or the file it self, your choice. =)

Posted

Hey, thanks man!

I was baffled, I thought it would show up in the actual gamerules.php itself.

Nice little mod!

P.S: Change <a href = "/gamerules.php?page=Add">Add Rule</a> into <a href ='gamerules.php?page=Add'>Add Rule</a>

( ' ' instead of " " )

Posted

not so much as an error in the code I think. Just when you click on the delete you get this message:

'An error has occured, please go back and try again.'

so I am at a loss with it.

but it is a good mod

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...