Hey just seen somthing similar to this on Navry's site and made somthing similar as i liked it and wanted it

See It Working
Hereso first of all here is all the files you will need:
Download Link:
Working LinkUpload and extract to your file manager please keep the directory's the same as it will not work otherwise
Ok now make
globals2.php and put this into it.
<?php
/*---------------------------------
-- MCCodes 2.0
-- By Dabomstew
---------------------------------*/
session_start();
ob_start();
if(get_magic_quotes_gpc() == 0)
{
foreach($_POST as $k => $v)
{
$_POST[$k]=addslashes($v);
}
foreach($_GET as $k => $v)
{
$_GET[$k]=addslashes($v);
}
}
require "global_func.php";
if($_SESSION['loggedin']==0) { header("Location: login.php");exit; }
$userid=$_SESSION['userid'];
require "header2.php";
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'];
}
$domain=$_SERVER['HTTP_HOST'];
global $jobquery, $housequery;
if($jobquery)
{
$is=$db->query("SELECT u.*,us.*,j.*,jr.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN jobs j ON j.jID=u.job LEFT JOIN jobranks jr ON jr.jrID=u.jobrank WHERE u.userid=$userid");
}
else if($housequery)
{
$is=$db->query("SELECT u.*,us.*,h.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN houses h ON h.hWILL=u.maxwill WHERE u.userid=$userid");
}
else
{
$is=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid");
}
$ir=$db->fetch_row($is);
if(!is_numeric($_SESSION['userid']) || !isset($_SESSION['userid']) || $ir['userid'] != $_SESSION['userid'])
{
session_unset();
session_destroy();
header("Location: login.php");
exit;
}
if($ir['force_logout'])
{
$db->query("UPDATE users SET force_logout=0 WHERE userid=$userid");
session_unset();
session_destroy();
header("Location: login.php");
exit;
}
global $macropage;
if($macropage && !$ir['verified'] && $set['validate_on']==1)
{
header("Location: macro1.php?refer=$macropage");
exit;
}
check_level();
$h = new headers;
$h->startheaders();
$fm=money_formatter($ir['money']);
$cm=money_formatter($ir['crystals'],'');
$lv=date('F j, Y, g:i a',$ir['laston']);
global $atkpage;
if($atkpage)
{
$h->userdata($ir,$lv,$fm,$cm,0);
}
else
{
$h->userdata($ir,$lv,$fm,$cm);
}
global $menuhide;
if(!$menuhide)
{
$h->menuarea();
}
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).<br />
Reason: {$r['fed_reason']}</font></b></body></html>");
echo "To appeal the ban mail admin@deathsrow.com state your Userid and why you were banned";
}
print <<<OUT
</div>
</script>
</DIV>
OUT;
?>Now Make
Header2.php copy your header into it and then take this code out and save it:
<div align=left><font color='#0033FF'><b>Name:</b></font> <font color=$t>$u</font> [{$ir['userid']}] $d $topgender<Br>
<font color='#0033FF'><b>Money:</b></font> {$fm}<br />
<font color='#0033FF'><b>Level:</b></font> {$ir['level']}<br />
<font color='#0033FF'><b>Crystals:</b></font> {$ir['crystals']}<br />
<font color='#0033FF'><b>Fish Hooks:</b></font> {$ir['fishing_aloud']} [<b><a href="fish.php">Use</a></b>]<br />
<font color='#0033FF'><b>Casino Credits:</b></font> {$ir['credits']}<br />
<font color='#0033FF'><b>Streets:</b></font> {$ir['turns']} [<b><a href="streets.php"><font color=red>Use*</font></a></b>]</div><br /></td></tr></table>
<table width='200px'><tr><td>
<b>Energy:</b> {$enperc}% <a href='crystaltemple.php?spend=refill'>[Refil]</a><br />
<img src=bar2.gif width=$enperc height=5><img src=bar3.gif width=$enopp height=5><br />
<b>Will:</b> {$wiperc}% <br />
<img src=bar2.gif width=$wiperc height=5><img src=bar3.gif width=$wiopp height=5><br />
<b>Brave:</b> {$ir['brave']}/{$ir['maxbrave']}<br />
<img src=bar2.gif width=$brperc height=5><img src=bar3.gif width=$bropp height=5><br />
<b>Respect:</b> {$experc}%<br />
<img src=bar2.gif width=$experc height=5><img src=bar3.gif width=$exopp height=5><br />
<b>Health:</b> {$hpperc}%<br />
<img src=bar2.gif width=$hpperc height=5><img src=bar3.gif width=$hpopp height=5><hr />
<a href='logout.php'><img src='logout.jpg'></a> <hr />Warning: This code will not be 100% the same in your codes.Ok now add this into your
header.php near the top:
<script type="text/javascript">
var GB_ROOT_DIR = "http://yourgame.com/greybox/greybox/";
</script>
<script type="text/javascript" src="http://yourgame.com/greybox/greybox/AJS.js"></script>
<script type="text/javascript" src="http://yourgame.com/greybox/greybox/AJS_fx.js"></script>
<script type="text/javascript" src="http://yourgame.com/greybox/greybox/gb_scripts.js"></script>
<link href="http://yourgame.com/greybox/greybox/gb_styles.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="http://yourgame.com/greybox/static_files/help.js"></script>
<link href="http://yourgame.com/greybox/static_files/help.css" rel="stylesheet" type="text/css" media="all" />Now Make
viewuserajax.php and add this to it:
<?php
$menuhide=1;
class bbcode {
var $engine="";
function bbcode()
{
require "bbcode_engine.php";
$this->engine= new bbcode_engine;
$this->engine->cust_tag("/</","<");
$this->engine->cust_tag("/>/",">");
//Since \n and <br> screw up preg, convert them out.
$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\)/","&#38;#153;");
$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;/","<br />\n");
}
function bbcode_parse($html)
{
return $this->engine->parse_bbcode($html);
}
}
session_start();
include "globals2.php";
$T="<img src='T.gif'>";
$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['gympass'] == 0) { $gym="<font color=red>No</font>"; } else if($r['gympass'] == 1) { $gym="<font color=green>Yes</font>";}
if ( !$r['married'] )
{
$marital="<font color='white'>No</font>";
}
else
{
$k=mysql_query("SELECT username FROM users WHERE userid={$r['married']}", $c);
$marital="<a href='viewuser.php?u={$r['married']}' style='color:orange;'>".mysql_result($k,0,0)."</a> ";
}
if($r['user_level'] == 1) { $userl="Member"; } else if($r['user_level'] == 2) { $userl="<font color=Gold>Manager</font>"; } else if ($r['user_level'] == 3) { $userl="<font color=lime>Moderator</font>"; } else if($r['user_level'] == 4) { $userl="<font color=aqua>Players Council</font>"; } else {$userl="<font color=aqua>Players Council</font>"; }
$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="";
$vip="";
$staff="";
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['donatordays']) { $r['username'] = "<font color=orange>{$r['username']}</font>";$d="<img src='donator.png' alt='Donator: {$r['donatordays']} Days Left' title='Donator: {$r['donatordays']} Days Left' />"; }
if($r['user_level'] > 1)
{
$staff="<img src='staff.png' alt='Staff' title='Staff' />";
}
if($r['donatordays']) { $d="<img src='donator.png' alt='Donator: {$r['donatordays']} Days Left' title='Donator: {$r['donatordays']} Days Left' />"; }
if($r['laston'] >= time()-15*60) { $on="<img src='online.jpg' border='0' alt='User Online!'>"; } else { $on="<img src='offline.jpg' border='0' alt='User Offline!'>"; }
if($r['userid']==1)
{
$sexy="This is Game Owner Avoid mailing him!";
}
if($r['fedjail'] >0)
{
print"Im Sorry But You Cannot View {$r['username']}'s Profile<br />
Because He Is In Our Federal Jail.";
$h->endpage();
exit;
}
print "<h2>$sexy</h2><center><h3>Profile for {$r['username']}</h3><hr width='100%'></center>";
//begin table
echo "
<center><table width=95% cellspacing=1 class='table'>
<tr>
<td width='50%'>
<b><u>Account Information</b></u><br />
Name: {$r['username']} [{$r['userid']}] $d";
print"
<br />
Online: $on";
print "<br />User Level: $userl<hr />
Duties: <font color=red>{$r['duties']}</font><hr />
Gender: {$r['gender']}<br />
Gym Access: $gym<br />
Player Age: {$r['daysold']}<br />";
$w=mysql_query("SELECT * FROM warnings WHERE user={$r['userid']}",$c);
print "
<font color=red>Warnings: ".mysql_num_rows($w)." </font>";
if($ir['user_level'] > 1)
{
print "|| [<a href=warnings.php?action=index&user={$r['userid']}>Manage</a>]</font>";
}
print "
<br />Level: {$r['level']}<br />
Health: {$r['hp']}/{$r['maxhp']}";
print"<br />gang: ";
if($r['gang'])
{
print "<a href='gangs.php?action=view&ID={$r['gang']}'>{$r['gangNAME']}</a>";
}
else
{
print "N/A";
}
print"<hr />
Times kicked from a gang: {$r['kickedgang']}<br />
Signed Up: $sup<br />
Last Active: $lon<br />
Last Action: $str<br />
Last Login: $str2<hr />
Location: {$r['cityname']} [<a href='monorail.php?to={$r['cityid']}'>Travel</a>]<br>
Married: $marital<br />
Property: {$r['hNAME']}<br />
Referals: ";
$rr=$db->query("SELECT * FROM referals WHERE refREFER={$r['userid']}");
print $db->num_rows($rr);
print"<hr />
<b>Ratings:</b> <a href='ratings.php?ID={$r['userid']}&act=PlusRate'><img src='plus.gif'></a> {$r['ratings']} <a href='ratings.php?ID={$r['userid']}&act=MinusRate'><img src='negative.gif'></a><br />";
$rs=mysql_query("SELECT * FROM friendslist WHERE fl_ADDED={$r['userid']}");
$fr=mysql_num_rows($rs);
print "<hr />
Friends: {$fr}<br />
Enemies: {$r['enemy_count']}<hr />";
if($r['personal'] == ON)
{
print "
<b>Name:</b><font color=red> {$r['name']}</font><br />
<b>Last Name:</b><font color=red> {$r['last']}</font><br />
<b>Age:</b><font color=red> {$r['age']}</font><br />
<b>Aim Of The Game:</b><font color=red> {$r['aog']}</font><br />
<b>MSN:</b><font color=red> {$r['msn']}</font><br />
<b>AIM:</b><font color=red> {$r['aim']}</font><br />
<b>AOL:</b><font color=red> {$r['aol']}</font><br />
<b>Yahoo:</b><font color=red> {$r['yahoo']}</font><br />";
}
else if($r['personal'] == OFF)
{
print " This Person Dose Not Want To Share There Personal Details.";
}
if($r['fedjail'])
{
print "<br /><b><font color=gold>In federal jail for {$r['fed_days']} day(s).<br />
{$r['fed_reason']}</font>";
}
if($r['hospital'])
{
print "<br /><b><font color=white>In hospital for {$r['hospital']} minutes.<br />{$r['hospreason']}</font></b>";
}
if($r['jail'])
{
print "<br /><b><font color=white>In jail for {$r['jail']} minutes.<br />{$r['jail_reason']}</font></b>";
}
Print "<hr /><b><u><font color='gold'>{$r['username']}'s </font>Award Case</b></u><hr />
<img src='{$ir['a1']}'> <img src='{$ir['a2']}'> <img src='{$ir['a3']}'> <img src='{$ir['a4']}'><br />
<img src='{$ir['a5']}'> <img src='{$ir['a6']}'> <img src='{$ir['a7']}'> <img src='{$ir['a8']}'><hr />";
//this will start column 2
print "</td><td valign='top'>
<center><b><u>Profile Image</b></u></center><br />";
if($r['display_pic'])
{
print "<hr /><img src='{$r['display_pic']}' width='360' height='200' alt='User's Display Pic' title='User's Display Pic' /><hr />";
}
else
{print"<hr /><img src='no-avitar.png' width='360' height='200'> <hr />";}
$sh=($ir['user_level'] >1) ? "Staff Info" : " ";
print "<hr />
<b><u>Actions on this Player</u></b><hr />
&#8226; <b><a href='mailbox.php?action=compose&ID={$r['userid']}'>Send Mail</a><br />
&#8226; <a href='sendcash.php?ID={$r['userid']}'>Send Cash</a><br />";
if($set['sendcrys_on'])
{
print "&#8226; <a href='sendcrys.php?ID={$r['userid']}'>Send Crystals</a><br />";
}
if($set['sendbank_on'])
{
if($ir['bankmoney'] > 0 && $r['bankmoney'] > 0)
{
print "&#8226; <a href='sendbank.php?ID={$r['userid']}'>Send money</a><br />";
}
}
print "
&#8226; <a href='attack.php?ID={$r['userid']}'>Attack</a><br />
&#8226; <a href='gallery.php?function=viewgallery&ID={$r['userid']}'>Check Gallery</a><br />
&#8226; <a href='rentaspy.php?ID={$r['userid']}'>Hire Spy</a><br />
&#8226; <a href='hitlist.php?AXID={$r['userid']}'>Add To Hitlist (<font color=red>NEW</font>)</a><br />
&#8226; <a href='contactlist.php?action=add&ID={$r['userid']}'>Add Contact</a></b>";
if($ir['user_level'] > 1)
{
print "<hr />
<b><u>Staff Account Actions</u></b><hr />
&#8226; <b><a href='jailuser.php?userid={$r['userid']}'>Jail</a><br />
&#8226; <a href='mailban.php?userid={$r['userid']}'>MailBan</a><br />
&#8226; <a href='details.php?u={$r['userid']}'>View all details</a></b>
";
}
if($ir['donatordays'] > 0)
{
print "<hr />
<b><u>Donator Account Options</u></b><hr />
&#8226;<b> <a href='friendslist.php?action=add&ID={$r['userid']}'>Add Friends</a><br />
&#8226; <a href='whitelist.php?action=add&ID={$r['userid']}'>Add Enemies</a></b><hr />";
}
print "</td></tr>";
}
}
print "<br /><table cellspacing=2 border=0 class='table' width='95%'><tr style='background:gold'> <th colspan=2>User Comments <a
href=comments.php?ID={$r['userid']}>[Add Comment]</a></th>";
if($ir['userid'] == $r['userid'] || $ir['user_level'] > 1)
{
print"<th width=10%>Delete</th>";
}
print"</tr>";
$blah=mysql_query("SELECT * FROM comments WHERE cmtTO={$r['userid']} ORDER BY cmtTIME
DESC limit 5", $c); while($cmnt=mysql_fetch_array($blah))
{ $they=mysql_query("SELECT * FROM users WHERE userid={$cmnt['cmtFROM']}",$c); $them=mysql_fetch_array($they);
$sent=date('F j, Y , g:i:S a',$cmnt['cmtTIME']);
print"<td width=25%><b>{$them['username']} [{$them['userid']}]</br></br></b>$sent</td><Td>{$cmnt['cmtTEXT']}</td>";
if($ir['userid'] == $r['userid'] || $ir['user_level'] > 1)
{ print"<td width=10%><a href=comments.php?action=delete&ID={$cmnt['cmtID']}>Delete</a></td>"; }
print"</tr>"; }
function checkblank($in)
{
if(!$in) { return "N/A"; }
return $in;
}
echo '</td></tr>';
$r['profileSIG'] = str_replace('&', '&', $r['profileSIG']);
$profile = stripslashes($bbc->bbcode_parse($r['profileSIG']));
if(empty($r['profileSIG']))
{
echo '<table cellspacing=1 border=1 class="table" width="95%"> <tr style="background:gold">
<th><b><center>Profile Signature</center></b></th></tr>
<tr><td><b><center><font color=red>This user has not got a profile signature!</center></font></b></td></tr>';
} else {
echo '<table cellspacing=1 border=1 class="table" width="95%">
<th><b><center>Profile Signature</center></b></th></tr>
<tr><td><center>'.$profile.'</center></td></tr><br /></table>';
}
if($ir['user_level'] >1) {
$r['lastiph']=@gethostbyaddr($r['lastip']);
$r['lastiph']=checkblank($r['lastiph']);
$r['lastip_loginh']=@gethostbyaddr($r['lastip_login']);
$r['lastip_loginh']=checkblank($r['lastip_loginh']);
$r['lastip_signuph']=@gethostbyaddr($r['lastip_signup']);
$r['lastip_signuph']=checkblank($r['lastip_signuph']);
echo '<h3>Internet Info</h3><table width="95%" border="0" cellspacing="1" class="table">
<tr><td class="h"> </td><td class="h">IP</td><td class="h">Hostname</td></tr>
<tr><td class="h">Last Hit</td><td>'.$r[lastip].'</td><td>'.$r[lastiph].'</td></tr>
<tr><td class="h">Last Login</td><td>'.$r[lastip_login].'</td><td>'.$r[lastip_loginh].'</td></tr>
<tr><td class="h">Signup</td><td>'.$r[lastip_signup].'</td><td>'.$r[lastip_signuph].'</td></tr>
</table>';
if ($ir['user_level'] > 1) {
if($r['activated']==1){$activated='Yes';} else{$activated='No';}
echo '<br /><br /><b>Activated?:</b> '.$activated.' <br /><b>Email:</b> '.$r['email'].'<br />
<form action=staff_punit.php?action=ipsub method="post">
IP:<input type="submit" name="ip" value="'.$r['lastip'].'" /></form>'; }
echo '<form action="staffnotes.php" method="post">
Staff Notes: <br />
<textarea rows=10 cols=40 name="staffnotes">'.$r['staffnotes'].'</textarea>
<br /><input type="hidden" name="ID" value="'.$_GET['u'].'" />
<input type="submit" value="Change" /></form>';
}
echo '</td></table></center>';
$h->endpage();
?>Now evertime you want the ajax popup make a link like this one
< a href='viewuserajax.php?u={$r['userid']}' rel='gb_page_fs[]'>Your Profile</a>If i have missed anything please let me know i will post it up
All the ajax was from Ajaxdaddy i think but not 100%
+1 If you like it
