I used a code from a torrentstrike Theme and a Tbdev mod of showing user class image!
here it goes:
in your header.php find:
<?
if (!$CURUSER){
echo "[<a href=\"account-login.php\" class=link2>". LOGIN . "</a>]<B> or </B>[<a href=\"account-signup.php\" class=link2>" . SIGNUP . "</a>] ";
}else{
print ("".LOGGEDINAS.": ".$CURUSER["username"]."");
echo " [<a href=\"account-logout.php\" class=link2>".LOGOUT."</a>] ";
if ($CURUSER["control_panel"]=="yes") {
}
//check for new pm's
$res = mysql_query("SELECT COUNT(*) FROM messages WHERE receiver=" . $CURUSER["id"] . " and unread='yes' AND location IN ('in','both')") or print(mysql_error());
$arr = mysql_fetch_row($res);
$unreadmail = $arr[0];
if ($unreadmail){
print("<font color=#FF0000><B>New PM (<a href=mailbox.php?inbox class=link2>$unreadmail</a>)</b></a></font> ");
}else{
print("[<a href=mailbox.php class=link2>Messages</a>] ");
}
//end check for pm's
}
?>
and replace by:
<?
if (!$CURUSER){
echo "[<a href=\"account-login.php\" class=link2>". LOGIN . "</a>]<B> or </B>[<a href=\"account-signup.php\" class=link2>" . SIGNUP . "</a>] ";
}
?>
<?if($CURUSER){?>
<td class="info" height="0" align="left" valign="left">
<?
$time = date("H");
if(($time >= 6) && ($time < 12)){ $hai = "GOOD MORNING"; }
if(($time >= 12) && ($time < 19)){ $hai = "GOOD AFTERNOON"; }
if(($time >= 18) && ($time < 24)){ $hai = "GOOD NIGHT"; }
if(($time >= 0) && ($time < 6)){ $hai = "GOOD MORNING"; }
?>
<?
$usrclass = " <img src=".get_user_class_image($CURUSER['class'])."> ";
print(" <b>$hai</b>, <font color=gray><b>$CURUSER[username]</b></font> <font color=white>
[url="
http://devscorner.xyz/applications/core/interface/file/attachment.php?id=2111"]pic.rar[/url]