Silver Posted May 6, 2007 Posted May 6, 2007 Close Page System Allows the owner to close any page in the game, and set a reason for the page being closed. Good to use for: Pages under construction Pages with bugs Pages off limits Go into admin.php (or the file for the owner panel). Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Underneath add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Underneath add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Underneath add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Open header.php Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Underneath add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Insert this SQL into your database: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. If you need help with this contact me on msn: [email protected]. If there are any bugs pm me! Enjoy! Quote
UCC Posted May 6, 2007 Posted May 6, 2007 Re: [Free v1] Close page system Seems complicated. I just open the page and add this at the top if ($ir['user_level']) != 2) { print "This Page is Closed while some bugs are worked out."; exit; } Quote
Silver Posted May 6, 2007 Author Posted May 6, 2007 Re: [Free v1] Close page system yea :P but this is for nooooobs, and it saves you going into the code files :) Quote
bling Posted May 6, 2007 Posted May 6, 2007 Re: [Free v1] Close page system ok what would you do for ver 2 Quote
Silver Posted May 6, 2007 Author Posted May 6, 2007 Re: [Free v1] Close page system Well, i dont know v2 that well so im not really sure. You will hav to ask a v2 coder. Sorry :-( Quote
03laceys Posted May 6, 2007 Posted May 6, 2007 Re: [Free v1] Close page system this should work with v2 it might need a cople of bits changed but if you look in the tutorials it has a post telling you how 2 convet v1 to v2 shold be easy enough Quote
bling Posted May 6, 2007 Posted May 6, 2007 Re: [Free v1] Close page system yeah i know how to make it ver 2 i did all of it but the only thing stoping me is the part for the header that the part the is messing up it says not a valid mysql resouce i have done evey thing but get the part in the header too work Quote
03laceys Posted May 6, 2007 Posted May 6, 2007 Re: [Free v1] Close page system add it under include globals i think Quote
Silver Posted May 6, 2007 Author Posted May 6, 2007 Re: [Free v1] Close page system bling, whats your game mate? ill come have a look for you :-) and can u pm me or add me to msn so its easier to talk? Quote
bling Posted May 6, 2007 Posted May 6, 2007 Re: [Free v1] Close page system www.d4rk-forc3s.com thats mt site i know what line doing it thow its ($r=mysql_fetch_array($close)) Quote
Silver Posted May 6, 2007 Author Posted May 6, 2007 Re: [Free v1] Close page system $close=mysql_query("SELECT * FROM closedpages WHERE url=$page",$c); change that to $close=mysql_query("SELECT * FROM closedpages WHERE url=$page",$c) or die(mysql_error()); then post back to me the error you get, i think its cos u need '' around $page like '$page' Quote
bling Posted May 6, 2007 Posted May 6, 2007 Re: [Free v1] Close page system now i get this error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '/index.php' at line 1 Quote
Silver Posted May 7, 2007 Author Posted May 7, 2007 Re: [Free v1] Close page system yea you need to put ' around page. like: url='$page' Quote
bling Posted May 7, 2007 Posted May 7, 2007 Re: [Free v1] Close page system when i do that i get this error Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/bling/public_html/header.php on line 307 Quote
Silver Posted May 7, 2007 Author Posted May 7, 2007 Re: [Free v1] Close page system You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. thats wat it shud look like.... Quote
Z?v?? Posted May 7, 2007 Posted May 7, 2007 Re: [Free v1] Close page system You're impressive Silver. Coming to CE and throwin up all kinds of freebies, helping everyone, and selling some good lookin mods. I'll have to hit you up sometime. :wink: +1 Quote
Silver Posted May 7, 2007 Author Posted May 7, 2007 Re: [Free v1] Close page system lol...wen people ask me for v2 conversions thats wen it gets hard, i have to look at v2 code before i can help lol...then just guess from there, thanks for the rep :) Quote
Z?v?? Posted May 7, 2007 Posted May 7, 2007 Re: [Free v1] Close page system v1 to v2 convertions are really pretty simple. I'm sure anyone could learn if they looked through the forums for a few minutes. Quote
KyleCrispy Posted May 7, 2007 Posted May 7, 2007 Re: [Free v1] Close page system i can exchange v1-v2 if ya want my game is ful of v1 mods mods converted to v2 :lol: Quote
bling Posted May 7, 2007 Posted May 7, 2007 Re: [Free v1] Close page system well if anyone can get that part of the header two ver2 let me know be cuz i tryed all kinds of diff stuff and i have a lot of ver 1 mod that i made in two ver two it easy to do it it just this one that i am have am having problems with Quote
KyleCrispy Posted May 7, 2007 Posted May 7, 2007 Re: [Free v1] Close page system ive cobverted already but do u think i am gonna help u :evil: Quote
oxidati0n Posted May 7, 2007 Posted May 7, 2007 Re: [Free v1] Close page system Silver - Your mods have working SQL but there is quite a lot of severe errors. I'll name a few 1) Admin Panel functions (when you open a page it shows close page) How: When you set the functions they correct it to the function "closepage", rename it to "open" and it should work. 2) Submitting open page How: you setup a $_POST['url'] in the form, but you wrote in the query DELETE FROM closepages WHERE id={$_POST['id']} - posted id (not existed) so replace the {$_POST['id']} with {$_POST['url']} 3) Connections It automaticly selects, what if no queries then it makes a long text error causing lots of stress in for the players and others. And a few more.. I myself have infact fixed all the bugs in the code, For assistance ask Silver (if he has fixed) or me. Quote
bling Posted May 7, 2007 Posted May 7, 2007 Re: [Free v1] Close page system yeah kyle i dont think you did but ok the part in the header is just a bitch for ver 2 me and silver try on it and i had 5 of my buds helping with it to i have one recoding it for me but if you say you did ok :-D :evil: :roll: Quote
KyleCrispy Posted May 8, 2007 Posted May 8, 2007 Re: [Free v1] Close page system yes i did convert it to v2 :x Quote
SoulOfDeath Posted May 13, 2007 Posted May 13, 2007 Re: [mccode] Close page system hey silver i brought them mods off you from the other post wiont let me post/deletes my posts :? so can you contact me on msn please as i need alittle help thanks SOD 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.