slight different than what i stated earlier in the post, but kinda along the same lines. this is the welcome message panel and the last seen 15 users panel in one center panel, but doesnt seem to work.
hope you can help....
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]$result = dbquery("SELECT * FROM ".DB_USERS." WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,15"
;
opentable('Welcome to Welshblackball.com'
;
echo '<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='65%'>".stripslashes($settings['siteintro'])."</td>
<td width='35%'><center>";
if (dbrows($result) != 0) {
while ($data = dbarray($result)) {
$lastseen = time() - $data['user_lastvisit'];
$iW=sprintf("%2d", floor($lastseen / 604800));
$iD=sprintf("%2d", floor($lastseen / (60 * 60 * 24)));
$iH=sprintf("%02d", floor((($lastseen % 604800) % 86400) / 3600));
$iM=sprintf("%02d", floor(((($lastseen % 604800) % 86400) % 3600) / 60));
$iS=sprintf("%02d", floor((((($lastseen % 604800) % 86400) % 3600) % 60)));
if ($lastseen < 60){
$lastseen = '<center><img src="http://www.wrexham8ball.com/images/icon_last.gif"></center>\';
} elseif ($lastseen < 360){
$lastseen = '<5mins';
} elseif ($iW > 0){
if ($iW == 1) {
$text = 'Week';
} else {
$text = 'Weeks';
}
$lastseen = $iW." ".$text;
} elseif ($iD > 0){
if ($iD == 1) {
$text = 'Day';
} else {
$text = 'Days';
}
$lastseen = $iD." ".$text;
} else {
$lastseen = $iH.":".$iM.":".$iS;
}
echo "<tr>\n<td class='side-small' align='left'>".THEME_BULLET."\n";
echo "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' title='".$data['user_name']."' class='side'>\\n";
echo trimlink($data['user_name'], 15)."</a></td><td class='side-small' align='right'>".$lastseen."</td>\\n</tr>\n";
}
}
echo "</table>";
@closetable();
?>[/syntaxhighlighter]