iSOS Posted February 27, 2010 Posted February 27, 2010 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. Quote
srachit Posted February 27, 2010 Posted February 27, 2010 looking good m8, it will be autoadded on the TOS page I assume? Quote
iSOS Posted February 27, 2010 Author Posted February 27, 2010 I'm not sure what you mean. Do you mean rule page? -- If so then yes. Quote
srachit Posted February 27, 2010 Posted February 27, 2010 yes I guess thats what we can say I mean :P Quote
Jordan Palmer Posted February 27, 2010 Posted February 27, 2010 This is looking good. Â I'll actually be using this. Thank you zed :) Quote
HerrGrubenhaus Posted March 15, 2010 Posted March 15, 2010 Sir, I am an Admin, and when I access the page, I still won't have the ability to ADD any rule. Quote
iSOS Posted March 15, 2010 Author Posted March 15, 2010 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. =) Quote
HerrGrubenhaus Posted March 15, 2010 Posted March 15, 2010 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 " " ) Quote
iSOS Posted March 15, 2010 Author Posted March 15, 2010 The original post has been updated to include the link in the actual file, of course only to admins. =) Thanks. =) Quote
DISTORTED Posted March 16, 2010 Posted March 16, 2010 nice job works great accept for when trying to del a rule you added Quote
DISTORTED Posted March 16, 2010 Posted March 16, 2010 .. Well its not a big problem I can just use php admin to remove them Cheers +111 Quote
vampireduff Posted March 18, 2010 Posted March 18, 2010 Nice Mod, :) however the delete (to remove the rules) dosen't work, and maybe could you add an edit option? Quote
iSOS Posted March 18, 2010 Author Posted March 18, 2010 Is there an error?, I've had some people say it work, and some not, So I don't know what's going on... Quote
vampireduff Posted March 18, 2010 Posted March 18, 2010 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 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.