
micky
Members-
Posts
14 -
Joined
-
Last visited
Never
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
micky's Achievements
Newbie (1/14)
0
Reputation
-
Re: [mccode] My first Login Sorry dude, this isn't even fully yours :l "http://www.pixxelmafia.pixxel-studios.com/login_screen.png" I believe that link is in your code and it's from the login form I created and released except I removed the image from my site (Plus closedy site)
-
Re: Which login is better??? I see your using the login page that I posted with an image change.... Hmm I like the top one best.
-
Re: Updated Login Page Well, just look on the one on my site, save it :P and then change the colours ect, differant render/theme too. Mainly because the one I posted was just an example.
-
Re: Multi IP Prevention Nice work, thanks for this.
-
Re: Updated Login Page Thanks.
-
Re: Full user details I agree with the "pretty crap". I suppose it works but I like the updated version above my post.
-
Re: Email I have to agree with the person in the first comment, doing what you said could could cause you to lose players.
-
Re: Updated gamerules If your going to reply to a thread, why not speak using full english grammar... considering you spelt sensible wrong. Anyway, jason this is rather easy to do but I would have to agree with Tezza when he said they make their own rules.
-
Re: Updated Login Page Triple post, new code; <?php session_start(); include "config.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } print <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>{$set['game_name']}</title> <script language="JavaScript"> <!-- function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name,value,expires,path,domain,secure) { document.cookie = name + "=" + escape (value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function DeleteCookie (name,path,domain) { if (GetCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } } // --> </script> <script language="JavaScript"> var usr; var pw; var sv; function getme() { usr = document.login.username; pw = document.login.password; sv = document.login.save; if (GetCookie('player') != null) { usr.value = GetCookie('username') pw.value = GetCookie('password') if (GetCookie('save') == 'true') { sv[0].checked = true; } } } function saveme() { if (usr.value.length != 0 && pw.value.length != 0) { if (sv[0].checked) { expdate = new Date(); expdate.setTime(expdate.getTime()+(365 * 24 * 60 * 60 * 1000)); SetCookie('username', usr.value, expdate); SetCookie('password', pw.value, expdate); SetCookie('save', 'true', expdate); } if (sv[1].checked) { DeleteCookie('username'); DeleteCookie('password'); DeleteCookie('save'); } } else { alert('You must enter a username/password.'); return false; } } </script> <link href="in.css" rel="stylesheet" type="text/css"> </head> <body> <table width="600" height="450" border="0" align="center"> <tr> <th background="http://www.pixxelmafia.pixxel-studios.com/login_screen.png"> <center>{$set['game_description']}</center> <div id="login" style=left:0px; right:0px; top:182px; bottom:283px; width:172px; height:135px; z-index:0; visibility: visible;"> <form action=authenticate.php method=post name=login onsubmit=\"return saveme();\"> Username: <input type=text name=username> Password: <input type=password name=password> Remember me? <input type=submit value=Submit> </form> </p></th> </tr> </table> <p align="center">[b][url="register.php"]Register[/url][/b] </p> </body> </html> <center>Powered by codes made by Dabomstew (© {$year}). Game Copyright ©{$year} {$set['game_owner']}.</center> EOF; ?>
-
Re: Updated Login Page Double post, made a slight error and it wont allow you login gimme a min ill post the new code.
-
Ok, so I was messing around with my files and I made this simple effective login page. if you click here it will give you a demo of it. You may notice the "coming soon" part, that is the game description and the bg over the login, its simple to change. Anyway, first of all you will need to create a css file and call it in.css use the following code in it; body,td,th { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF; } bold { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #FFFFff; font-weight: bold } body { font-size: 7.5pt; background-image:'jonjon.gif'; font-family: Verdana; color: #000000; text-align: center; background: #555555; scrollbar-face-color: #666666; scrollbar-shadow-color: #000000; scrollbar-highlight-color: #808080; scrollbar-3dlight-color: #000000; scrollbar-darkshadow-color: #202020; scrollbar-track-color: #BFBEBE; scrollbar-arrow-color: #000000; scrollbar-outline-color: #000000; } font-size: 10px; } td.header { font-size: 15px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #FFFFFF; background-image: url(login_screen.png); } td.tip { font-size: 10px; font-family: arial; color: #000000; } a{text-decoration:none; color:3399cc; font-size: 10px;} a:link{text-decoration:none; color:3399cc; font-size: 10px;} a:visited{text-decoration:none; color:3399cc; font-size: 10px;} a:hover{text-decoration:underline; color:white; font-size: 10px;} a:active{text-decoration:none color:3399cc; font-size: 10px;} input.submit{ font-size: 10px; color: #black; border-style: solid; border-color: #000000; border-width: 1px; } table.thinline { border-collapse:collapse; border:1px solid #000000; align:center; margin-left:auto; margin-right:auto; background-color: #000000; font-size: 10px; } on line 40 is where the login_screen.png (or w/e you like to call it) should go. Then, once you have done that, copy and paste this code, overwrite the current one. <?php session_start(); include "config.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } print <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>{$set['game_name']}</title> <script language="JavaScript"> <!-- function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name,value,expires,path,domain,secure) { document.cookie = name + "=" + escape (value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function DeleteCookie (name,path,domain) { if (GetCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } } // --> </script> <script language="JavaScript"> var usr; var pw; var sv; function getme() { usr = document.login.username; pw = document.login.password; sv = document.login.save; if (GetCookie('player') != null) { usr.value = GetCookie('username') pw.value = GetCookie('password') if (GetCookie('save') == 'true') { sv[0].checked = true; } } } function saveme() { if (usr.value.length != 0 && pw.value.length != 0) { if (sv[0].checked) { expdate = new Date(); expdate.setTime(expdate.getTime()+(365 * 24 * 60 * 60 * 1000)); SetCookie('username', usr.value, expdate); SetCookie('password', pw.value, expdate); SetCookie('save', 'true', expdate); } if (sv[1].checked) { DeleteCookie('username'); DeleteCookie('password'); DeleteCookie('save'); } } else { alert('You must enter a username/password.'); return false; } } </script> <link href="in.css" rel="stylesheet" type="text/css"> </head> <body> <table width="600" height="450" border="0" align="center"> <tr> <th background="http://www.pixxelmafia.pixxel-studios.com/login_screen.png"> <center>{$set['game_description']}</center> <div id="login" style=left:0px; right:0px; top:182px; bottom:283px; width:172px; height:135px; z-index:0; visibility: visible;"> <form action=authenticate.php method=post name=login onsubmit=\"return saveme();\"> Username: <input type=text name=username> Password: <input type=password name=password> Remember me? <input type=submit value=Submit> </form> </p></th> </tr> </table> <p align="center">[b][url="register.php"]Register[/url][/b] </p> </body> </html> <center>Powered by codes made by Dabomstew (© {$year}). Game Copyright ©{$year} {$set['game_owner']}.</center> EOF; ?> There you go ;D
-
Re: New V2 Hall of Fame Wow, simple and effective. Im liking the whole filter aswell.
-
Re: [V2][MCCODES]Updated Help tutorial Nice one jason, rather simple but can come in handy for the less experienced with PHP. And yeah, I have to agree when you say its easier than going through and editing it bit by bit, that would be highly annoying.
-
im not sure if thi is the correct place for this but, anyway does anyone know were to get mobstermania's codes? i mean i currently do have them but they came w/o the actuall .sql file. So i was wondering anyone either got that file or the whole script?