
Delete-please
Members-
Posts
225 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Delete-please
-
Re: www.sniper-wars.net Adding more stuff to it as i learn more im still a noob :P
-
Re: V2 Mainmenu Thanks POG1 i didnt think of using list :wink:
-
Re: V2 Mainmenu Thanks :P learning stuff all the time
-
[mccode] donator day market for v2
Delete-please replied to tittlemouse's topic in Free Modifications
Re: [mccode] donator day market for v2 pretty much XD -
Re: V2 Mainmenu lol sorry i meant java script (i keep doing that) -.-" and thanks for the possitive feed back :P
-
[mccode] donator day market for v2
Delete-please replied to tittlemouse's topic in Free Modifications
Re: [mccode] donator day market for v2 :P -
Re: V2 Mainmenu lol thats why im posting it because im making a better one... Im using css & java on my next one i may post it if i get it working
-
Re: V2 Mainmenu Update this will allow all users to view the current staff online on the menu. <?php global $db,$c,$ir,$userid, $set; $adomain=$_SERVER['HTTP_HOST']; $hc=$set['hospital_count']; $jc=$set['jail_count']; $ec=$ir['new_events']; $mc=$ir['new_mail']; print " <div align=center width='1'> <table cellspacing=1 width='165' class=table style='text-align: left;'> <th style='border:2px; border-style:solid; border-color:#404040; padding-bottom: 3px;padding-top: 3px; background-color:#5C5C5C;color:#A9A9A9; font-weight: bold; text-align: center;' valign=center> Game</th> <tr> <td> [url='index.php']Home[/url] [url='inventory.php']Items[/url] [url='explore.php']Explore[/url] [url='chatrooms.php']Chat[/url] [url='criminal.php']Do Crimes[/url] "; if(!$ir['jail'] && $ir['gang']) { print " [url='yourgang.php']Your Gang[/url] "; } if($ir['user_level'] > 1) { print " [url='staff.php'][b]Staff Panel[/b][/url] "; } print " <hr />[b]Staff Online:[/b] "; $q=$db->query("SELECT * FROM users WHERE laston>(unix_timestamp()-15*60) AND user_level>1 ORDER BY userid ASC"); while($r=$db->fetch_row($q)) { $la=time()-$r['laston']; $unit="secs"; if($la >= 60) { $la=(int) ($la/60); $unit="mins"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } print "[url='viewuser.php?u={$r[']{$r['username']}[/url] ($la $unit) "; } print " <tr> <td> [url='jail.php']Jail ($jc)[/url] [url='hospital.php']Hospital ($hc)[/url] [url='gym.php']Local Gym[/url] [url='education.php']Education[/url] [url='job.php']Your Job[/url] [url='search.php']Search[/url] </td> </tr> <th style='border:2px; border-style:solid; border-color:#404040; padding-bottom: 3px;padding-top: 3px; background-color:#5C5C5C;color:#A9A9A9; font-weight: bold; text-align: center;' valign=center> Main</th> <tr> <td> "; if($mc > 0) { print " [url='mailbox.php']<font color=red>Mailbox ($mc)</font>[/url] "; } else { print " [url='mailbox.php']Mailbox (0)[/url] "; } print " [url='forums.php']Forums[/url] "; if($ec > 0) { print " [url='events.php']<font color=green>Events ($ec)</font>[/url] "; } else { print " [url='events.php']Events (0)[/url] "; } if($ir['new_announcements']) { print " [url='announcements.php'][b]<font color=orange>Announcements ({$ir['new_announcements']})</font>[/b][/url] "; } else { print " [url='announcements.php']Announcements (0)[/url] "; } print " [url='newspaper.php']Newspaper[/url] </td> </tr> <tr> <th style='border:2px; border-style:solid; border-color:#404040; padding-bottom: 3px;padding-top: 3px; background-color:#5C5C5C;color:#A9A9A9; font-weight: bold; text-align: center;' valign=center> Account Options</th> <tr> <td style='padding-bottom: 5px; padding-top: 5px;'> [url='preferences.php']Preferences[/url] [url='sug.php']Suggestions[/url] [url='preport.php']Player Report[/url] [url='breport.php']Bug Report[/url] [url='helptutorial.php']Help Tutorial[/url] [url='gamerules.php']Game Rules[/url] [url='viewuser.php?u={$ir[']My Profile[/url] [url='logout.php']Logout[/url] </td></tr> </table> </div>"; ?>
-
[mccode] donator day market for v2
Delete-please replied to tittlemouse's topic in Free Modifications
Re: [mccode] donator day market for v2 :-D sorry.... You should secure your dmarket so players dont steal ddays :P how about that Dazza? -
Ok i was bored and decided to do this for my game... Im making a better one soon so i thought i would post this for you.. Sorry if something like this has already been done. <?php global $db,$c,$ir,$userid, $set; $adomain=$_SERVER['HTTP_HOST']; $hc=$set['hospital_count']; $jc=$set['jail_count']; $ec=$ir['new_events']; $mc=$ir['new_mail']; print " <div align=center width='1'> <table cellspacing=1 width='165' class=table style='text-align: left;'> <th style='border:2px; border-style:solid; border-color:#404040; padding-bottom: 3px;padding-top: 3px; background-color:#5C5C5C;color:#A9A9A9; font-weight: bold; text-align: center;' valign=center> Game</th> <tr> <td> [url='index.php']Home[/url] [url='inventory.php']Items[/url] [url='explore.php']Explore[/url] [url='chatrooms.php']Chat[/url] [url='criminal.php']Do Crimes[/url] "; if(!$ir['jail'] && $ir['gang']) { print " [url='yourgang.php']Your Gang[/url] "; } if($ir['user_level'] > 1) { print " [url='staff.php'][b]Staff Panel[/b][/url] "; } print " <tr> <td> [url='jail.php']Jail ($jc)[/url] [url='hospital.php']Hospital ($hc)[/url] [url='gym.php']Local Gym[/url] [url='education.php']Education[/url] [url='job.php']Your Job[/url] [url='search.php']Search[/url] </td> </tr> <th style='border:2px; border-style:solid; border-color:#404040; padding-bottom: 3px;padding-top: 3px; background-color:#5C5C5C;color:#A9A9A9; font-weight: bold; text-align: center;' valign=center> Main</th> <tr> <td> "; if($mc > 0) { print " [url='mailbox.php']<font color=red>Mailbox ($mc)</font>[/url] "; } else { print " [url='mailbox.php']Mailbox (0)[/url] "; } print " [url='forums.php']Forums[/url] "; if($ec > 0) { print " [url='events.php']<font color=red>Events ($ec)</font>[/url] "; } else { print " [url='events.php']Events (0)[/url] "; } if($ir['new_announcements']) { print " [url='announcements.php'][b]<font color=red>Announcements ({$ir['new_announcements']})</font>[/b][/url] "; } else { print " [url='announcements.php']Announcements (0)[/url] "; } print " [url='newspaper.php']Newspaper[/url] </td> </tr> <tr> <th style='border:2px; border-style:solid; border-color:#404040; padding-bottom: 3px;padding-top: 3px; background-color:#5C5C5C;color:#A9A9A9; font-weight: bold; text-align: center;' valign=center> Account Options</th> <tr> <td style='padding-bottom: 5px; padding-top: 5px;'> [url='preferences.php']Preferences[/url] [url='sug.php']Suggestions[/url] [url='preport.php']Player Report[/url] [url='breport.php']Bug Report[/url] [url='helptutorial.php']Help Tutorial[/url] [url='gamerules.php']Game Rules[/url] [url='viewuser.php?u={$ir[']My Profile[/url] [url='logout.php']Logout[/url] </td></tr> </table> </div> "; ?> Just overwrite your mainmenu.php with that please plus 1 me if you liked this
-
[mccode] donator day market for v2
Delete-please replied to tittlemouse's topic in Free Modifications
Re: [mccode] donator day market for v2 Lol not even secure XD -
Re: Guess the next poster nope its that annoying yubi guy next :P karlos next
-
[mccodes v2] Awsome cron help [TIMESTAMP]
Delete-please replied to kjehun's topic in General Discussion
Re: [mccodes v2] Awsome cron help [TIMESTAMP] Nice :lol: Time stamps are very useful :wink: -
[mccodes v2] Awsome cron help [TIMESTAMP]
Delete-please replied to kjehun's topic in General Discussion
Re: [mccodes v2] Awsome cron help [TIMESTAMP] I think he wants rid of his crons and wants time stamps instead -
Re: [mccode V2] Search Islands Nah i ain't posting it xD haha LOL and because i dont want to post the one i done maybee somethink else i do insted! I don't know about Crazy-t i speak to him on msn all the time and he asks me about simple querys and i am only 5 months old in this my self but he boasts about how he always has something better than us like his ajax chat javascript.... and now this.... I think my chat is almost as advanced as you can get it .. If you can get better than prove it... As for this one i know That you can do better than this cause it is a simple mod and took me all of 2 mins to write it up... So i say again if you can do better prove it +1 mate gonna add it later and change a few things to suit the theme of my game :)
-
Re: Strip Club Dam zero nowa days 13 year olds know alot about this subject :P
-
Re: www.sniper-wars.net Sure its Palatino Linotype screenie added :-P
-
After several releases and recodes the site is finally finished completed last night it has a cool new layout designed by me... Please tell me what you think
-
Re: Energy problem I meant replace his old header lines for energy :-P
-
Re: Energy problem You could always try something like if ($ir['Whatever']==0) { $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); } if ($ir['what ever']==1) { $enperc=(int) ($ir['energy']/$ir['maxenergy']*150); } In your header :| Along with the cron and the sql you should be able to :-D
-
Re: V2 Viewuser <?php //Coded by Yubi not to be sold... //Free for CE users class bbcode { var $engine=""; function bbcode() { require "bbcode_engine.php"; $this->engine= new bbcode_engine; $this->engine->cust_tag("/</","<"); $this->engine->cust_tag("/>/",">"); $this->engine->cust_tag("/\n/","&nbrlb;"); $this->engine->simple_bbcode_tag("b"); $this->engine->simple_bbcode_tag("i"); $this->engine->simple_bbcode_tag("u"); $this->engine->simple_bbcode_tag("s"); $this->engine->simple_bbcode_tag("sub"); $this->engine->simple_bbcode_tag("sup"); $this->engine->simple_bbcode_tag("big"); $this->engine->simple_bbcode_tag("small"); $this->engine->adv_bbcode_tag("list","ul"); $this->engine->adv_bbcode_tag("olist","ol"); $this->engine->adv_bbcode_tag("item","li"); $this->engine->adv_option_tag("font","font","family"); $this->engine->adv_option_tag("size","font","size"); $this->engine->adv_option_tag("url","a","href"); $this->engine->adv_option_tag("color","font","color"); $this->engine->adv_option_tag("style","span","style"); $this->engine->simp_option_notext("img","src"); $this->engine->simp_bbcode_att("img","src"); $this->engine->cust_tag("/\(c\)/","©"); $this->engine->cust_tag("/\(tm\)/",""); $this->engine->cust_tag("/\(r\)/","®"); $this->engine->adv_option_tag_em("email","a","href"); $this->engine->adv_bbcode_att_em("email","a","href"); $this->engine->cust_tag("/\[left\](.+?)\[\/left\]/","<div align='left'>\\1</div>"); $this->engine->cust_tag("/\[center\](.+?)\[\/center\]/","<div align='center'>\\1</div>"); $this->engine->cust_tag("/\[right\](.+?)\[\/right\]/","<div align='right'>\\1</div>"); $this->engine->cust_tag("/\[quote="(.+?)\"](.+?)\[\/quote\]/","<div class='quotetop'>QUOTE(\\1)</div><div class='quotemain'>\\2</div>"); $this->engine->cust_tag("/\[quote\](.+?)\[\/quote\]/","<div class='quotetop'>QUOTE</div><div class='quotemain'>\\1</div>"); $this->engine->cust_tag("/\[code\](.+?)\[\/code\]/","<div class='codetop'>CODE</div><div class='codemain'><code>\\1</code></div>"); $this->engine->cust_tag("/\[codebox\](.+?)\[\/codebox\]/","<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>\\1</div>"); $this->engine->cust_tag("/&nbrlb;/"," \n"); } function bbcode_parse($html) { return $this->engine->parse_bbcode($html); } } include "globals.php"; $bbc = new bbcode; $_GET['u'] = abs((int) $_GET['u']); if(!$_GET['u']) { print "Invalid use of file"; } else { $q=$db->query("SELECT u.*,us.*,c.*,h.*,g.*,f.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN cities c ON u.location=c.cityid LEFT JOIN houses h ON u.maxwill=h.hWILL LEFT JOIN gangs g ON g.gangID=u.gang LEFT JOIN fedjail f ON f.fed_userid=u.userid WHERE u.userid={$_GET['u']}"); if($db->num_rows($q) == 0) { print "Sorry, we could not find a user with that ID, check your source."; } else { $r=$db->fetch_row($q); if($r['user_level'] == 1) { $userl="Member"; } else if($r['user_level'] == 2) { $userl="Admin"; } else if ($r['user_level'] == 3) { $userl="Secretary"; } else if($r['user_level'] == 0) { $userl="NPC"; } else {$userl="Assistant"; } $lon=($r['laston'] > 0) ?date('F j, Y g:i:s a',$r['laston']) : "Never"; $sup=date('F j, Y g:i:s a',$r['signedup']); $ts=$r['strength']+$r['agility']+$r['guard']+$r['labour']+$r['IQ']; $d=""; if($r['laston'] > 0) { $la=time()-$r['laston']; $unit="seconds"; if($la >= 60) { $la=(int) ($la/60); $unit="minutes"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } $str="$la $unit ago"; } else { $str="--"; } if($r['last_login'] > 0) { $ll=time()-$r['last_login']; $unit2="seconds"; if($ll >= 60) { $ll=(int) ($ll/60); $unit2="minutes"; } if($ll >= 60) { $ll=(int) ($ll/60); $unit2="hours"; if($ll >= 24) { $ll=(int) ($ll/24); $unit2="days"; } } $str2="$ll $unit2 ago"; } else { $str2="--"; } if($r['user_level6'] == 1) { $status="N/A"; } else if($r['user_level6'] == 2) { $status="Warning Manager"; } else if($r['user_level6'] == 3) { $status="Coder"; } else if($r['user_level6'] == 4) { $status="Staff Manager"; } else if($r['user_level6'] == 5) { $status="Reporter"; } if($r['donatordays']) { $r['username'] = "<font color=red>{$r['username']}</font>";$d="[img=donator.gif]"; } if($r['laston'] >= time()-15*60) { $on="<font color=green>[b]Online[/b]</font>"; } else { $on="<font color=red>[b]Offline[/b]</font>"; } print "<table width=100% height='120' cellspacing=1 class='table'><tr style='background:gray'> <th width='79%'>Info</th> <th width='21%'>Pic</th> </tr> <tr><td> Name: {$r['username']} [{$r['userid']}] $d User Level: $userl Status: $status Duties: {$r['duties']} Gender: {$r['gender']} Signed Up: $sup Last Active: $lon Last Action: $str Last Login: $str2 Referals: "; $rr=$db->query("SELECT * FROM referals WHERE refREFER={$r['userid']}"); print $db->num_rows($rr); print " Friends: {$r['friend_count']} Enemies: {$r['enemy_count']} Property: {$r['hNAME']} Online: $on Rating: <a href=rating.php?rate=plus&user={$r['userid']}><font size=3 color=green>+</font></a> {$r['rating']} <a href=rating.php?rate=minus&user={$r['userid']}><font size=3 color=red>-</font></a> Days Old: {$r['daysold']} "; $w=$db->query("SELECT * FROM warnings WHERE user={$r['userid']}"); print " Warnings: ".$db->num_rows($w)." </font>"; if($ir['user_level'] == 2 || $ir['user_level6'] == 2) { print "|| [<a href=warnings.php?action=index&user={$r['userid']}>Manage</a>]"; } print" Location: {$r['cityname']}</p></td><td><table width='200' border='2' cellspacing='1' cellpadding='2'> <tr> <th scope='row'>"; if($r['display_pic']) { print "[img={$r[]"; } else { print "This user has no display pic!"; } print "</th> </tr> </table></td> </tr> <tr style='background:gray'><th>Physical Info</th><th>Links</th></tr> <tr><td> Level: {$r['level']} Health: {$r['hp']}/{$r['maxhp']} Gang: "; if($r['gang']) { print "[url='gangs.php?action=view&ID={$r[']{$r['gangNAME']}[/url]"; } else { print "N/A"; } if($r['fedjail']) { print " [b]<font color=red>In federal jail for {$r['fed_days']} day(s). {$r['fed_reason']}</font>"; } if($r['hospital']) { print " [b]<font color=red>In hospital for {$r['hospital']} minutes. {$r['hospreason']}</font>[/b]"; } if($r['jail']) { print " [b]<font color=red>In jail for {$r['jail']} minutes. {$r['jail_reason']}</font>[/b]"; } print "</p> </p> </p> "; if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) { print " </p> <form action='staffnotes.php' method='post'> Staff Notes: <textarea rows=7 cols=40 name='staffnotes'>{$r['staffnotes']}</textarea> <input type='hidden' name='ID' value='{$_GET['u']}' /> <input type='submit' value='Change' /> </form></td><td>[[url='mailbox.php?action=compose&ID={$r[']Send Mail[/url]] [[url='mailbomb.php?ID={$r[']Mail bomb[/url]] [[url='threat.php?ID={$r[']Issue a death threat[/url]] [[url='sendcash.php?ID={$r[']Send Cash[/url]] "; if($set['sendcrys_on']) { print "[[url='sendcrys.php?ID={$r[']Send Crystals[/url]] "; } if($set['sendbank_on']) { if($ir['bankmoney'] >= 0 && $r['bankmoney'] >= 0) { print "[[url='sendbank.php?ID={$r[']Bank Xfer[/url]] "; } if($ir['cybermoney'] >= 0 && $r['cybermoney'] >= 0) { print "[[url='sendcyber.php?ID={$r[']CyberBank Xfer[/url]] "; } } print " [[url='attack.php?ID={$r[']Attack[/url]] [[url='contactlist.php?action=add&ID={$r[']Add Contact[/url]]"; if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) { print " [[url='jailuser.php?userid={$r[']Jail[/url]] [[url='mailban.php?userid={$r[']MailBan[/url]]"; } if($ir['donatordays'] > 0) { print " [[url='friendslist.php?action=add&ID={$r[']Add Friends[/url]] [[url='blacklist.php?action=add&ID={$r[']Add Enemies[/url]] "; } print "</td> </tr> <tr> <td height='90'><form action='staffnotes.php' method='post'> "; } { print " "; } print " </p> <table width='100%' border='2' cellspacing='1' class='table'> "; if($r['sig']) { $r['sig']=$bbc->bbcode_parse($r['sig']); print " <center> [b] Profile signature [/b] </center> "; print " <tr> <td colspan=5>{$r['sig']}</td> "; } else { print " <tr> <td colspan=5><center> This user has no Signature! </center></td> "; } print " </table> "; print " </form></td> <td><form action='staffnotes.php' method='post'> </form></td>"; print "</tr></table>"; } } function checkblank($in) { if(!$in) { return "N/A"; } return $in; } $h->endpage(); ?> Fixed code
-
Re: V2 Viewuser I see your point ill fix it up and re post thanks :P
-
Re: cron_fivemis got it working i realised the problem :P i accidentally broke off the brave update line :roll:
-
Re: Question.. Thanks you two... Im not converting mods happily and finding lite quite interesting
-
ok run this sql ALTER TABLE users add `sig` text NOT NULL Sqls done :-D Find in preferences.php case 'sexchange': conf_sex_change(); break; Below add case 'sigchange2': do_sig_change(); break; case 'sigchange': sig_change(); break; then find function do_forum_change() { global $db,$ir,$c,$userid,$h; $_POST['forums_avatar']=str_replace(array("<", ">"), array("<", ">"), $_POST['forums_avatar']); $db->query("UPDATE users SET forums_avatar='{$_POST['forums_avatar']}', forums_signature='{$_POST['forums_signature']}' WHERE userid=$userid"); print "Forum Info changed!"; } below add function sig_change() { global $ir,$c,$userid,$h; print "<h3>Signature Change</h3> <form action='preferences.php?action=sigchange2' method='post'> Signature (you may use BBcode): <textarea class=textbox rows=10 cols=50 name='sig'>{$ir['sig']}</textarea> <input class=textbox type='submit' value='Change Signature ' /></form>"; } function do_sig_change() { global $db,$ir,$c,$userid,$h; $db->query("UPDATE users SET sig='{$_POST['sig']}' WHERE userid=$userid"); print "Signature changed!"; } Open view user.php and replace it with <?php //Coded by Yubi not to be sold... //Free for CE users class bbcode { var $engine=""; function bbcode() { require "bbcode_engine.php"; $this->engine= new bbcode_engine; $this->engine->cust_tag("/</","<"); $this->engine->cust_tag("/>/",">"); $this->engine->cust_tag("/\n/","&nbrlb;"); $this->engine->simple_bbcode_tag("b"); $this->engine->simple_bbcode_tag("i"); $this->engine->simple_bbcode_tag("u"); $this->engine->simple_bbcode_tag("s"); $this->engine->simple_bbcode_tag("sub"); $this->engine->simple_bbcode_tag("sup"); $this->engine->simple_bbcode_tag("big"); $this->engine->simple_bbcode_tag("small"); $this->engine->adv_bbcode_tag("list","ul"); $this->engine->adv_bbcode_tag("olist","ol"); $this->engine->adv_bbcode_tag("item","li"); $this->engine->adv_option_tag("font","font","family"); $this->engine->adv_option_tag("size","font","size"); $this->engine->adv_option_tag("url","a","href"); $this->engine->adv_option_tag("color","font","color"); $this->engine->adv_option_tag("style","span","style"); $this->engine->simp_option_notext("img","src"); $this->engine->simp_bbcode_att("img","src"); $this->engine->cust_tag("/\(c\)/","©"); $this->engine->cust_tag("/\(tm\)/",""); $this->engine->cust_tag("/\(r\)/","®"); $this->engine->adv_option_tag_em("email","a","href"); $this->engine->adv_bbcode_att_em("email","a","href"); $this->engine->cust_tag("/\[left\](.+?)\[\/left\]/","<div align='left'>\\1</div>"); $this->engine->cust_tag("/\[center\](.+?)\[\/center\]/","<div align='center'>\\1</div>"); $this->engine->cust_tag("/\[right\](.+?)\[\/right\]/","<div align='right'>\\1</div>"); $this->engine->cust_tag("/\[quote="(.+?)\"](.+?)\[\/quote\]/","<div class='quotetop'>QUOTE(\\1)</div><div class='quotemain'>\\2</div>"); $this->engine->cust_tag("/\[quote\](.+?)\[\/quote\]/","<div class='quotetop'>QUOTE</div><div class='quotemain'>\\1</div>"); $this->engine->cust_tag("/\[code\](.+?)\[\/code\]/","<div class='codetop'>CODE</div><div class='codemain'><code>\\1</code></div>"); $this->engine->cust_tag("/\[codebox\](.+?)\[\/codebox\]/","<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>\\1</div>"); $this->engine->cust_tag("/&nbrlb;/"," \n"); } function bbcode_parse($html) { return $this->engine->parse_bbcode($html); } } include "globals.php"; $bbc = new bbcode; $_GET['u'] = abs((int) $_GET['u']); if(!$_GET['u']) { print "Invalid use of file"; } else { $q=$db->query("SELECT u.*,us.*,c.*,h.*,g.*,f.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN cities c ON u.location=c.cityid LEFT JOIN houses h ON u.maxwill=h.hWILL LEFT JOIN gangs g ON g.gangID=u.gang LEFT JOIN fedjail f ON f.fed_userid=u.userid WHERE u.userid={$_GET['u']}"); if($db->num_rows($q) == 0) { print "Sorry, we could not find a user with that ID, check your source."; } else { $r=$db->fetch_row($q); if($r['user_level'] == 1) { $userl="Member"; } else if($r['user_level'] == 2) { $userl="Admin"; } else if ($r['user_level'] == 3) { $userl="Secretary"; } else if($r['user_level'] == 0) { $userl="NPC"; } else {$userl="Assistant"; } $lon=($r['laston'] > 0) ?date('F j, Y g:i:s a',$r['laston']) : "Never"; $sup=date('F j, Y g:i:s a',$r['signedup']); $ts=$r['strength']+$r['agility']+$r['guard']+$r['labour']+$r['IQ']; $d=""; if($r['laston'] > 0) { $la=time()-$r['laston']; $unit="seconds"; if($la >= 60) { $la=(int) ($la/60); $unit="minutes"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } $str="$la $unit ago"; } else { $str="--"; } if($r['last_login'] > 0) { $ll=time()-$r['last_login']; $unit2="seconds"; if($ll >= 60) { $ll=(int) ($ll/60); $unit2="minutes"; } if($ll >= 60) { $ll=(int) ($ll/60); $unit2="hours"; if($ll >= 24) { $ll=(int) ($ll/24); $unit2="days"; } } $str2="$ll $unit2 ago"; } else { $str2="--"; } if($r['user_level6'] == 1) { $status="N/A"; } else if($r['user_level6'] == 2) { $status="Warning Manager"; } else if($r['user_level6'] == 3) { $status="Coder"; } else if($r['user_level6'] == 4) { $status="Staff Manager"; } else if($r['user_level6'] == 5) { $status="Reporter"; } if($r['donatordays']) { $r['username'] = "<font color=red>{$r['username']}</font>";$d="[img=donator.gif]"; } if($r['laston'] >= time()-15*60) { $on="<font color=green>[b]Online[/b]</font>"; } else { $on="<font color=red>[b]Offline[/b]</font>"; } print "<table width=100% height='120' cellspacing=1 class='table'><tr style='background:gray'> <th width='79%'>Info</th> <th width='21%'>Pic</th> </tr> <tr><td> Name: {$r['username']} [{$r['userid']}] $d User Level: $userl Status: $status Duties: {$r['duties']} Gender: {$r['gender']} Signed Up: $sup Last Active: $lon Last Action: $str Last Login: $str2 Referals: "; $rr=$db->query("SELECT * FROM referals WHERE refREFER={$r['userid']}"); print $db->num_rows($rr); print " Friends: {$r['friend_count']} Enemies: {$r['enemy_count']} Property: {$r['hNAME']} Online: $on Rating: <a href=rating.php?rate=plus&user={$r['userid']}><font size=3 color=green>+</font></a> {$r['rating']} <a href=rating.php?rate=minus&user={$r['userid']}><font size=3 color=red>-</font></a> Days Old: {$r['daysold']} "; $w=$db->query("SELECT * FROM warnings WHERE user={$r['userid']}"); print " Warnings: ".$db->num_rows($w)." </font>"; if($ir['user_level'] == 2 || $ir['user_level6'] == 2) { print "|| [<a href=warnings.php?action=index&user={$r['userid']}>Manage</a>]"; } print" Location: {$r['cityname']}</p></td><td><table width='200' border='2' cellspacing='1' cellpadding='2'> <tr> <th scope='row'>"; if($r['display_pic']) { print "[img={$r[]"; } else { print "This user has no display pic!"; } print "</th> </tr> </table></td> </tr> <tr style='background:gray'><th>Physical Info</th><th>Links</th></tr> <tr><td> Level: {$r['level']} Health: {$r['hp']}/{$r['maxhp']} Gang: "; if($r['gang']) { print "[url='gangs.php?action=view&ID={$r[']{$r['gangNAME']}[/url]"; } else { print "N/A"; } if($r['fedjail']) { print " [b]<font color=red>In federal jail for {$r['fed_days']} day(s). {$r['fed_reason']}</font>"; } if($r['hospital']) { print " [b]<font color=red>In hospital for {$r['hospital']} minutes. {$r['hospreason']}</font>[/b]"; } if($r['jail']) { print " [b]<font color=red>In jail for {$r['jail']} minutes. {$r['jail_reason']}</font>[/b]"; } print "</p> </p> </p> "; } { print " "; } print " </p> <table width='100%' border='2' cellspacing='1' class='table'> "; if($r['sig']) { $r['sig']=$bbc->bbcode_parse($r['sig']); print " <center> [b] Profile signature [/b] </center> "; print " <tr> <td colspan=5>{$r['sig']}</td> "; } else { print " <tr> <td colspan=5><center> This user has no Signature! </center></td> "; } print " </table> "; print "</td><td>[[url='mailbox.php?action=compose&ID={$r[']Send Mail[/url]] [[url='mailbomb.php?ID={$r[']Mail bomb[/url]] [[url='threat.php?ID={$r[']Issue a death threat[/url]] [[url='sendcash.php?ID={$r[']Send Cash[/url]] "; if($set['sendcrys_on']) { print "[[url='sendcrys.php?ID={$r[']Send Crystals[/url]] "; } if($set['sendbank_on']) { if($ir['bankmoney'] >= 0 && $r['bankmoney'] >= 0) { print "[[url='sendbank.php?ID={$r[']Bank Xfer[/url]] "; } if($ir['cybermoney'] >= 0 && $r['cybermoney'] >= 0) { print "[[url='sendcyber.php?ID={$r[']CyberBank Xfer[/url]] "; } } print " [[url='attack.php?ID={$r[']Attack[/url]] [[url='contactlist.php?action=add&ID={$r[']Add Contact[/url]]"; if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) { print " [[url='jailuser.php?userid={$r[']Jail[/url]] [[url='mailban.php?userid={$r[']MailBan[/url]]"; } if($ir['donatordays'] > 0) { print " [[url='friendslist.php?action=add&ID={$r[']Add Friends[/url]] [[url='blacklist.php?action=add&ID={$r[']Add Enemies[/url]] "; } print "</td> </tr> <tr> <td height='90'>"; if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) { print " <form action='staffnotes.php' method='post'> Staff Notes: <textarea rows=7 cols=40 name='staffnotes'>{$r['staffnotes']}</textarea> <input type='hidden' name='ID' value='{$_GET['u']}' /> <input type='submit' value='Change' /> </form></td> <td> </td>"; print "</tr></table>"; } } function checkblank($in) { if(!$in) { return "N/A"; } return $in; } $h->endpage(); ?> and thats it Seeings as im not a good coder this was designed for others like me as experienced coders could do something better much faster.. also The table designs are you header tables. You may also want to change a few things as this is made to suit my game