
Joel
Members-
Posts
1,169 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Joel
-
Re: Help using Tables! Lol that was all i had to do lol Ok thanks mate :)
-
Re: Help using Tables! If thats where its located, He's my header.php <?php class headers { function startheaders() { global $ir, $set; echo <<<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> <link rel="shortcut icon" href="weblogo.ico" > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>{$set['game_name']}</title> <style type="text/css"> <!-- body { margin-top: 0px; margin-bottom: 0px; font-family:Tahoma;font-size:12.4px;color: black; font-variant: small-caps; scrollbar-base-color: #000000; scrollbar-arrow-color: #0066FF; scrollbar-DarkShadow-Color: #0066FF; } a:visited,a:active,a:hover,a:link { color: black;text-decoration: none; } a:hover { cursor: none; background:#; text-decoration: underline; } table,tr,td { font-family:Tahoma;font-size: 12.4px; } img { border:none; } textarea { font-family:Tahoma;font-size:12.4px;color: black; } .table2 { } body { background-color: #000000; background-image: url('backgroundnewwww.gif'); background-repeat: no-repeat; background-position: center } .table { background-color:#000000; } .table3 { background-color:#000000; } .table td { background-color:#999999; height:22px; } .table3 td { background-color:#000000; } td .alt { background-color:#0066FF; height:22px; } td .h { font-weight: bold; background-color: #0066FF; } .table th { font-weight: bold; background-color: #0066FF; } --> </style></head> <body> <center> <table width="940" border="0" cellpadding="0" cellspacing="0" class="table2"> <tr> <td class="lgrad"></td> <td class="center"> EOF; } function userdata($ir,$lv,$fm,$cm,$dosessh=1) { global $db,$c,$userid, $set; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid"); if(!$ir['email']) { global $domain; die ("<body>Your account may be broken. Please mail help@{$domain} stating your username and player ID."); } if($dosessh && ($_SESSION['attacking'] || $ir['attacking'])) { print "You lost all your EXP for running from the fight."; $db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid"); $_SESSION['attacking']=0; } $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; $d=""; $_GET['ID'] = abs(@intval($_GET['ID'])); $_GET['viewforum'] = abs(@intval($_GET['viewforum'])); $_GET['viewtopic'] = abs(@intval($_GET['viewtopic'])); $u=$ir['username']; if($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>";$d="[img=donator.gif]"; } $gn=""; global $staffpage; print <<<OUT [img=gangstalife2.png] <table width="99%" border="0" cellpadding="3" cellspacing="0"> <tr> <td width="20%" valign="top"> [b]<center>Name:[/b] $gn{$u} [{$ir['userid']}] $d [b]Level:[/b] {$ir['level']} [b]Rubys:[/b] {$ir['ruby']} [b]Crystals:[/b] {$ir['crystals']} [url='voting.php']<font color=red>[Earn]</font>[/url] <font color=blue>[[url='logout.php']<font color=blue>Emergency Logout</font>[/url]]</font><hr> [b]Energy:[/b] {$enperc}% [img=endleft.gif]<img src=bargreen.gif width=$enperc height=12><img src=barred.gif width=$enopp height=12>[img=endright.gif] [b]Will:[/b] {$wiperc}% [img=endleft.gif]<img src=bargreen.gif width=$wiperc height=12><img src=barred.gif width=$wiopp height=12>[img=endright.gif] [b]Brave:[/b] {$ir['brave']}/{$ir['maxbrave']} [img=endleft.gif]<img src=bargreen.gif width=$brperc height=12><img src=barred.gif width=$bropp height=12>[img=endright.gif] [b]EXP:[/b] {$experc}% [img=endleft.gif]<img src=bargreen.gif width=$experc height=12><img src=barred.gif width=$exopp height=12>[img=endright.gif] [b]Health:[/b] {$hpperc}% [img=endleft.gif]<img src=bargreen.gif width=$hpperc height=12><img src=barred.gif width=$hpopp height=12>[img=endright.gif] <hr> OUT; if($ir['fedjail']) { $q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid"); $r=$db->fetch_row($q); die("[b]<font color=red size=+1>You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s). Reason: {$r['fed_reason']}</font>[/b]</body></html>"); } if(file_exists('ipbans/'.$IP)) { die("[b]<font color=red size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this.</font>[/b]</body></html>"); } } function menuarea() { include "mainmenu.php"; global $ir,$c; print '</td><td width="2" class="linegrad"> </td><td width="80%" valign="top"> <center>'; if($ir['hospital']) { print "[b]NB:[/b] You are currently in hospital for {$ir['hospital']} minutes. "; } if($ir['jail']) { print "[b]NB:[/b] You are currently in jail for {$ir['jail']} minutes. "; } print "<a href='voting.php'>[b]<h2.5>| Vote |</h2.5>[/b]"; print "[url='donator.php'][b]<h2.5>| Donate to {$set['game_name']} now for game benefits! |</h2.5>[/b][/url] "; } function smenuarea() { include "smenu.php"; global $ir,$c; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"><center>'; } function endpage() { global $db,$ir,$set,$c; $date = date("Y"); $date2 = $date+1; echo ' </center> <td width="13%" valign="top" height="100%" border="0">'; include("mainmenu2.php"); echo ' </td> </td> </tr> </table> </td> <td class="rgrad"></td> </tr> <tr> <td colspan="3"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="dgradl"> </td> <td class="dgrad"><center></center></td> <td class="dgradr"> </td> </tr> </table> </td> </tr> </table> </body> _____________</body> </html>'; } } ?>
-
Re: Help using Tables! Would that be Located in Header.php by any chance :)
-
Hi All, Im having trouble with creating tables, I can create them but when i do all the Text goes Bold in the Table, Im not shaw why this happens, But I've tried loads things, And it just wont go away, Heres my Explore.php, And tell me how i can Not make it go Bold Please, <?php include "globals.php"; $tresder=(int) rand(100,999); if($ir['jail'] or $ir['hospital']) { die("This Page Cannot be Accessed while in Jail or Hospital."); } if ($ir['donatorpack'] == 0) { print" [b]<table cellpadding=8 width=95% border=1><th width=25%>[/b][/b]<form action=starterkit.php><input type='submit' value='Claim your free Starter Kit now! (THIS DOES NOT WORK YET!'></form>"; } $eon = mysql_fetch_array($db->query("SELECT * FROM cities WHERE cityid = '{$ir['location']}'")); echo "<hr>{$eon['cityname']} <hr>"; $eon = mysql_fetch_array($db->query("SELECT * FROM cities WHERE cityid = '{$ir['location']}'")); echo "<marquee>Your Currently Exploring {$eon['cityname']}, Theres Going To Be All New Stuff, Coming Soon!</marquee> <hr> <center><table width=90% cellspacing=1 class='table'><tr style='background:grey'> <td valign=top> [/b]<center><u><font color=#0066FF><h3>Shops and Markets</h3></u> [url='shops.php']Shops[/url] [url='itemmarket.php']Item Market[/url] [url='cmarket.php']Crystal Market[/url] [url='stockmarket.php']Stock Market[/url] [url='evolutionsstore.php']Evolutions Store[/url]</td> <td valign=top> <center><u><font color=#0066FF><font-family: verdana><h3>Local City</h3></u> [url='monorail.php']Travel Agency[/url] [url='estate.php']Estate Agent[/url] [url='bank.php']City Bank[/url] [url='stockportfolio.php']Stock Portfolio[/url] [url='ruby_trader.php']Ruby Trader[/url] [url='crystaltemple.php']Crystal Trader[/url] "; if($ir['location'] == 5) { print " [url='cyberbank.php']Cyber Bank[/url] "; } print "</td> <td valign=top> <center><u><font color=#0066FF><h3>Dark Side</h3></u> [url='gangcentral.php']Gangs[/url] [url='gangwars.php']Gang Wars[/url] [url='slotsmachine.php?tresde=$tresder']Slots Machine[/url] [url='roulette.php?tresde=$tresder']Roulette[/url] [url='lucky.php']Lucky Boxes[/url]"; if($ir['location'] == 6) { print " [url='brothel.php']Brothel[/url] "; } if($ir['location'] == 5) { print " [url='slotsmachine3.php']Super Slots[/url] "; } print "</td></tr><tr height=100> <td valign=top> <center><u><font color=#0066FF><h3>Statistics Dept</h3></u> [url='userlist.php']User List[/url] [url='stafflist.php']{$set['game_name']} Staff[/url] [url='halloffame.php']Hall of Fame[/url] [url='usersonline.php']Users Online[/url]</td><td valign=top> <center><u><font color=#0066FF><h3>Mysterious</h3></u> [url='polling.php']Polling Booth[/url] [url='bounty.php']Bounty[/url] [url='battletent.php']Battle Tent[/url]</td><td valign=top> <center><u><font color=#0066FF><h3>Jails</h3></u> [url='fedjail.php']Federal Jail[/url] [url='jail.php']City Jail[/url] "; print "</td></tr></table> This is your referal link: http://{$domain}/register.php?REF=$userid Every signup from this link earns you 5 valuable crystals!"; if($ir['user_level'] > 1) { //-- Finding items query $fia=(int) rand(1000000,9999999); $fib=(int) rand(1000000,9999999); if($fia == $fib) { $iq=$db->query("SELECT * FROM items WHERE itmbuyable=1 ORDER BY rand() LIMIT 1",$c); $r=mysql_fetch_array($iq); $item=$r['itmid']; $userid=$ir['userid']; $db->query("INSERT INTO inventory VALUES ('', $item, $userid, 21)",$c); event_add($userid,"You found a {$r['itmname']} While Walking Around the city.",$c); } print " [url='staff.php']| Staff Panel |[/url] \n[b]</tr></th></td></table>[/b]"; } $h->endpage(); ?> I have i highlighted it ib bold so you no where the table starts and ends, Hope you people Help me, Thanks
-
Re: Counting (nr game) 1867 lol
-
Re: Counting (nr game) 1866
-
Re: Needing Help with Crons! Bena http://www.bena.ws
-
My game was on a Free hosting site, But i brought a Hosting and a Domain Name and Trasferred everything from my Free hosting to my Paid Hosting, But the problem is my Crons dont work for some reason, Ive change the names in my crons to my site name, But still getting a Problem so I deleted the SQL File and Ran Installer again and Then the Crons were there so i Changed my Current crons to the ones from the installer and still Hanving a problem, So i had a look in the config.php and the code seems to be right, And when i looked in the (Class) Folder and then looked at both files in that folder, They wernt no Code in there and now i have geave up, I Just carnt do it, Hope that Helps, Please help me, I have tried my best Thanks, Adajo
-
Re: Paper Ads Nice mod Mate, Ill be using this :)
-
Re: who likes mccodes? I like it lol :)
-
Re: Header.php [New/More Imrpoved] Hey how do i get the Status to work on this Right Sidebar, Ive Put the status mod in SQL Database and View User and Preffrences, But the status on the right side bar dont work, Can you please post the working version and tell us what Mod you Installed Thanks, Adajo :-D
-
Re: User Stats I wudnt make it easy, I've been to that point off tha stage When my game was easy, Everyone was complaining, Because its too Easy XD
-
Re: Adding Citys V2 Well it works for me! :x
-
Re: Help Again Please with My right Sidebar! Thanks alot Killah, Your such a great Mate to me, Well one off my Best Mates, This guy is really helpfull, He solved most off my Problems and helped me a lot Thanks Mate :)
-
Re: Help Again Please with My right Sidebar! Thats for Quibk Response Killah, But where would i put it in Gang Wars? :)
-
Ok, I have a problem with my right sidebar, That problem is when i click on Gang Wars the Right side bar moves away from my template and i dont no why its happening, But when i click on anything else like (Gangs, Crimes, Shops, Explore, View User and everything else, It works Fine, Ill show you some Screens, So you Understand what i mean: On Explore: As you can see Above theres no Problem with the Right Sidebar On Gang Wars: As you can see Above the Right Sidebar has Moved to the Top Right Corner, Im not sure why its doing this because i dont have no problems with the right sidebar on Anything else, Heres My gangwars.php <?php include "globals.php"; print "<h3> Gang Wars</h3> <table width=75% cellspacing=1 class='table'>"; $q=$db->query("SELECT w.*,g1.gangNAME as declarer, g1.gangRESPECT as drespect, g2.gangNAME as defender, g2.gangRESPECT as frespect FROM gangwars w LEFT JOIN gangs g1 ON w.warDECLARER=g1.gangID LEFT JOIN gangs g2 ON w.warDECLARED=g2.gangID WHERE g1.gangNAME != '' AND g2.gangNAME != ''"); if($db->num_rows($q) > 0) { while($r=$db->fetch_row($q)) { print "<tr> <td width=45%>[url='gangs.php?action=view&ID={$r[']{$r['declarer']}[/url] [{$r['drespect']} respect]</a></td> <td width=10%>vs.</td> <td width=45%>[url='gangs.php?action=view&ID={$r[']{$r['defender']}[/url] [{$r['frespect']} respect]</a></td> </tr>"; } } else { print "</table>There are currently no gang wars in progress."; } print "</table>"; $h->endpage(); ?> Please tell me why this is Happening, Or Explain whats Wrong, Thanks Very Much if you no what the Problem is :) And sorry about the Images being to Big!
-
Re: Making a marquee on all pages I have that on My game Lol... :)
-
Re: Header.php [New/More Imrpoved] Lol....... Good work anyway! :)
-
Re: new login.php Lol.... Nice work for your First! :)
-
Re: Counting (nr game) 1864
-
Re: Check this idiot out... Lmao, What a Idiot :x
-
Re: y isnt der a jail in v1 Can you speak English or are you Talking German? :wink:
-
Re: McCodes v2.0.2 attack Yep Mccodes V2 is too Buggy, But owell the people that can Code can Fix it in 5 mins :)
-
Re: User Stats Lol what the hell, Why would you want your Game have large Stats, What you trying to do Blow up the SQL Database :evil:
-
Re: Hosting for Mccodes I use http://www.OneXhost.com And its quite fast, Ive never had a problem either And I've been with them for 3/4 Months, Accept you would want a good Package, Because some off the packages have Crap Bandwidth :)