Jump to content
MakeWebGames

POG1

Members
  • Posts

    1,419
  • Joined

  • Last visited

Everything posted by POG1

  1. POG1

    Error Game!

    Re: Error Game!   $youAreABum = TRUE; if($youAreABum) { echo 'gutted' }
  2. Re: McCode v2 center The problem is that your basic template is tables inside tables. You will need to take the outer table out then set the width to 100%
  3. Re: [MOD V2] Send Users Secret Messages.... i think you need to check out a html basics manual..
  4. Re: [Mccodes V2] Top 5 Users change this   $result = mysql_query("SELECT username,id,level FROM users WHERE user_level != 0 ORDER BY level ASC LIMIT 5"); with this.. $result = mysql_query("SELECT `username`,`id`,`level` FROM `users` WHERE `user_level` != 0 ORDER BY `level` ASC LIMIT 5") or die(mysql_error()); and see what it says :)
  5. Re: [Mccodes V2] Top 5 Users   <?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"); $q=$db->query("SELECT userid FROM users"); $membs=$db->num_rows($q); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } $q=$db->query("SELECT userid FROM users WHERE laston>unix_timestamp()-15*60 ORDER BY laston DESC"); $r1=$db->num_rows($q); print <<<EOF <html> <head> <title>The Corrupt Life</title> <style type="text/css">textarea,input,select { font-family: tahoma; color: #ffffff; font-weight: bold; color: #ffffff; background-image:url(baa.jpg); background-color: black;a border-width: 1; border-color: #ffffff; border-style: Solid; font-size: 13px; } body { background-color: black; } a:visited,a:active,a:link { color: black;text-decoration: underline; } a:hover {color: red;text-decoration: underline; } table,tr,td { font-family:Tahoma, Tahoma, Tahoma, Tahoma;font-size: 10pt; } img { border:none; } textarea { font-family:Tahoma;font-size:10pt;color: black; } table { font-family: Tahoma;font-size:10pt;color: black; background-repeat: no-repeat; } h5.desc_abs { position:absolute; left:510px; top:325px } h5.copyright_abs { position:absolute; left:420px; top:470px } span.highlight { background-color:#202020 } .ur{background: url(loginpass.png); width: 180px; height: 25px; border: none; padding-left: 3px; padding-right: 3px; padding-top: 5px;} .loginbutton{background: url(loginbutton.png); width: 70px; height: 25; padding-bottom: 2px; cursor: pointer; border: none;} img{border: none;} </style></head> <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> </head> EOF; $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; if(file_exists('ipbans/'.$ip)) { die("[b]<font color=red size=+1>Your IP has been banned!/font>[/b]</body></html>"); } print " <center> <table width=805 height=231 border=0 cellpadding=0 cellspacing=0 align=center> <tr><td background='blank top.png' width='805'></td></tr> </table> <table width=805 height=363 border=0 cellpadding=0 cellspacing=0 align=center> <tr background='bottom.png' width='805' height='363' valign='top'><td width='103'></td><td width='150'><center> [b][url='login.php']Login[/url] [url='#']Register <font color='red'>[Not Open][/url] [url='#']Screenshots[/url] [url='#']Forgot Password[/url] [url='#']Contact Us[/url][/b] "; $result = mysql_query("SELECT username,id,level FROM users WHERE user_level != 0 ORDER BY level ASC LIMIT 5"); $i = 0; echo '<table width="50" cellspacing="0" border="0" class="table">'. '<tr class="header"><td>#</td><td>Username</td><td>Level</td></tr>'; while($row = mysql_fetch_array($result,MYSQL_ASSOC)) { ++$i; echo '<tr><td>'.$i.'.</td><td>'.$row['username'].'</td><td>'.$row['level'].'</td></tr>'; } echo '</table>'; print "</td><td width='20'></td><td> <form action=authenticate.php method=post name=login onsubmit=\"return saveme();\"><center> The Corrupt Life is an MMORPG with lots of potential. There's no sign up fee and you can play for absolutely free. Register now to see if you can be the strongest and most respected player! Username <input class=ur type=text name=username> Password <input class=ur type=password name=password> Remember me? <input type=\"radio\" value=\"ON\" name=\"save\">Yes <input type=\"radio\" name=\"save\" value=\"OFF\" checked>No <input type=submit value=LOGIN class=loginbutton ></form></td></tr></table> "; print <<<OUT </body></html> OUT; ?>
  6. Re: [Mccodes V2] Top 5 Users show us your code with a few lines before and after as well :D
  7. Re: [Mccodes V2] Top 5 Users   $result = mysql_query("SELECT username,id,level FROM users WHERE user_level != 0 ORDER BY level ASC LIMIT 5"); $i = 0; echo '<table width="50" cellspacing="0" border="0" class="table">'. '<tr class="header"><td>#</td><td>Username</td><td>Level</td></tr>'; while($row = mysql_fetch_array($result,MYSQL_ASSOC)) { ++$i; echo '<tr><td>'.$i.'.</td><td>'.$row['username'].'</td><td>'.$row['level'].'</td></tr>'; } echo '</table>';
  8. Re: [mccodes V2] Donation Mod.   they may use js for the UI but there will be many forms of defense on pay pals behalf
  9. POG1

    Error Game!

    Re: Error Game!   lol
  10. Re: [mccode v2] Themecreator 100% Completed Working Copy This mod may work if you want different colors but you can't have totally different layouts. To do that just have the engine select different header.php files or even better use a template engine.
  11. Re: [Request] Gang Addon   lol
  12. Re: Layout problem use " not ' ;)
  13. Re: New Banner   He is making a banner, then it seems he would be looking for some sort of feedback to help finish it. Why do u need to be a .......... with cheeky remarks like that? Also, i think the banner is a bit to "static" and it needs more character and something that will give the website some indication..
  14. Re: mysql_fetch_assoc in reverse order? won't u just need to order the mysql query? ORDER BY `id` DESC
  15. Re: [mccode V2] Header [$20.00] New   whats so special about the login? its just a form on a blank page lol
  16. Re: [v1 or v2]Custom Login or Register   http://www.paladinlords.iiistudios.com/images/splash   That login is bad in many many ways...
  17. Re: [mccode V2] Header [$20.00] New   I think the main bit is nice, although it is probably not constructed properly (using tables) which will spoil the layout. The cloud background is a nice touch as well :)
  18. Re: [mccodes V2] my verry first log in page     A men! lol
  19. Re: Block multiple logins I haven't got a clue but what about a select query? select where the last action is within 5mins and the IP is no match..
  20. Re: [FAQ] Before posting An Error or die() isn't the best idea.. Why not just edit the standard class to show an error for staff and a totally different 1 for non staff.
  21. Re: [mccode V2] Header [$20.00] New it looks ok but it probably consists of about 100 images
  22. POG1

    SEO

    Re: SEO You can find SEO keyword generator tools. Here is a link to a simple generator: http://keywordtool.mobilepress.org/index.php
  23. Re: [mccodes V2] my verry first log in page   Wouldn't be a huge surprise if you have.
  24. Re: [mccodes V2] my verry first log in page <script language="javascript" src="js.js></script> ;)
  25. Re: [mccodes V2] my verry first log in page about 20 more lines of un needed code there karlos ;)
×
×
  • Create New...