Haunted Dawg Posted June 18, 2009 Posted June 18, 2009 This function lockdown's a website, so basicly no user can login, only administrators. Firstly run SQL: INSERT INTO `settings` VALUES(NULL,'site_lockdown',0); Add to header.php: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now add to staff.php Cases: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Function: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Enjoy :) Quote
shedh Posted June 18, 2009 Posted June 18, 2009 Re: [mccode v2] Site lockdown hmmm just checking, but wouldn't this allow any staff members to lockdown the game? Quote
Haunted Dawg Posted June 18, 2009 Author Posted June 18, 2009 Re: [mccode v2] Site lockdown hmmm just checking, but wouldn't this allow any staff members to lockdown the game? That could be a case. But simple fix: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Feky Posted June 18, 2009 Posted June 18, 2009 Re: [mccode v2] Site lockdown so what is the link we put in settings Quote
danger boy Posted June 18, 2009 Posted June 18, 2009 Re: [mccode v2] Site lockdown :wink: Good mod just read coding and looks good Quote
Haunted Dawg Posted June 18, 2009 Author Posted June 18, 2009 Re: [mccode v2] Site lockdown > Lockdown is link. Quote
Feky Posted June 18, 2009 Posted June 18, 2009 Re: [mccode v2] Site lockdown player can still access my site lol and can u just tell me if i put the is sql right ALTER TABLE `settings` ADD `site_lockdown` INT( 0 ) NULL DEFAULT '0'; Quote
Haunted Dawg Posted June 18, 2009 Author Posted June 18, 2009 Re: [mccode v2] Site lockdown I said use SQL: INSERT INTO `settings` VALUES(NULL,'site_lockdown',0); Quote
Feky Posted June 18, 2009 Posted June 18, 2009 Re: [mccode v2] Site lockdown everything works but when i click lockdown on smenu nothing happen everyone can still acess the site Quote
Haunted Dawg Posted June 18, 2009 Author Posted June 18, 2009 Re: [mccode v2] Site lockdown Did you run my SQL or your one? Quote
jds137 Posted June 18, 2009 Posted June 18, 2009 Re: [mccode v2] Site lockdown Not working, and thats running your sql? Any thoughts, ideas, concerns? :evil: Quote
Feky Posted June 18, 2009 Posted June 18, 2009 Re: [mccode v2] Site lockdown Did you run my SQL or your one? yea i ran ur sql lol and its not working Quote
Haunted Dawg Posted June 18, 2009 Author Posted June 18, 2009 Re: [mccode v2] Site lockdown I just installed this on my site, it worked first time. Remmember to add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. under the function userdata() Quote
Feky Posted June 18, 2009 Posted June 18, 2009 Re: [mccode v2] Site lockdown ha ha i was just on your game and my ip got banned lol then it went unbanned again and u have alot of people playing your game have u made any cash from donations yet Quote
Haunted Dawg Posted June 18, 2009 Author Posted June 18, 2009 Re: [mccode v2] Site lockdown Do you think having 10k registered and around 700+ online daily will make donation's? 0.o Quote
Feky Posted June 18, 2009 Posted June 18, 2009 Re: [mccode v2] Site lockdown so u had no donations yet Quote
SouIAssassin Posted June 18, 2009 Posted June 18, 2009 Re: [mccode v2] Site lockdown back on topic the mod worked first time nice 1 ;) Quote
Haunted Dawg Posted June 18, 2009 Author Posted June 18, 2009 Re: [mccode v2] Site lockdown so u had no donations yet Yes it's made quite abit. But i will not disclose how much. Quote
MrGi Posted June 18, 2009 Posted June 18, 2009 Re: [mccode v2] Site lockdown Aye, Maybe if You was not being such an @ss about things, and trying to re-craete my mod so fast, You would not have these problems with the code. As i spent time to make mine, and make it work right the first time. Quote
danger boy Posted June 18, 2009 Posted June 18, 2009 Re: [mccode v2] Site lockdown Some moderator or the owner edited my first post!!! it wasn;t bad what i said it was actually nice so why edit it :x Quote
shedh Posted June 19, 2009 Posted June 19, 2009 Re: [mccode v2] Site lockdown right will you get back on topic.... Quote
Haunted Dawg Posted June 19, 2009 Author Posted June 19, 2009 Re: [mccode v2] Site lockdown Back on topic pls. Quote
Feky Posted June 19, 2009 Posted June 19, 2009 Re: [mccode v2] Site lockdown does anyone know how to place this in the centre it goes right in the corner of my screen You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
CrazyT Posted June 19, 2009 Posted June 19, 2009 Re: [mccode v2] Site lockdown does anyone know how to place this in the centre it goes right in the corner of my screen You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Where did you add it in header.php, but were about in header? i would add in under the mainarea/mainmenu bit in header. Quote
Feky Posted June 19, 2009 Posted June 19, 2009 Re: [mccode v2] Site lockdown does anyone know how to place this in the centre it goes right in the corner of my screen You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Where did you add it in header.php, but were about in header? i would add in under the mainarea/mainmenu bit in header. do u know how to change the colour to white i tryed but keep getting errors 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.