May 21 2012 23:15:03
Languages
Navigation
Friends & Affiliates
Roadmap
[N] User Profile Wall
[N] Error log like in P...
[N] Submit photo - Subc...
[N] Warnings - who can ...
[N] [edit profile]Save ...
[N] Moving panels with ...
[N] Forum thread deform...
[N] Thumbnails in downl...
[N] [Locale German] New...
[N] Warnings only for a...
Users Online
· Guests Online: 2

· Members Online: 0

· Total Members: 494
· Newest Member: budisantoso
Last Seen Users
· budisantoso15:26:59
· lidaer15:37:31
· Yodix 1 day
· mr-casino 1 day
· dos5 3 days
· Machello93 3 days
· Leonardo_master 3 days
· ezgi 3 days
· xxyy 4 days
· lilin0402 5 days

Login
 Username  Password  
View Thread: Latest Users
Who is here? 2 Guests
 Print Thread
Latest Users
fouldsy
How can super admin not be displayed in last seen users?
 
slaughter
last_seen_users_panel/last_seen_users_panel.php

Line 44
Download source  Code
$result = dbquery("SELECT user_id, user_name, user_status, user_lastvisit FROM ".DB_USERS." WHERE user_level < ".nSUPERADMIN." AND user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,".($settings['last_seen_users_show'] + $settings['last_seen_users_show_more']));


 
fouldsy
That didn't work for me, here is the code for my panel. The bold is the code you gave me

thanks

<?php
/*---------------------------------------------------+
| PHP-Fusion 7 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
| Panou modificat de eWe. Vizitati www.gfxpixel.info!
+----------------------------------------------------*/
//if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (!defined("IN_FUSION")) { die("Access Denied"); }

if (file_exists(INFUSIONS."last_seen_users_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."last_seen_users_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."last_seen_users_panel/locale/English.php";
}

openside($locale['lsup000']);
$result = dbquery("SELECT * FROM ".DB_USERS." WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,5");
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
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 = $locale['lsup001'];
} elseif ($lastseen < 360){
$lastseen = $locale['lsup002'];
} elseif ($iW > 0){
if ($iW == 1) {
$text = $locale['lsup003'];
} else {
$text = $locale['lsup004'];
}
$lastseen = $iW." ".$text;
$result = dbquery("SELECT user_id, user_name, user_status, user_lastvisit FROM ".DB_USERS." WHERE user_level < ".nSUPERADMIN." AND user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,".($settings['last_seen_users_show'] + $settings['last_seen_users_show_more'])); } elseif ($iD > 0){
if ($iD == 1) {
$text = $locale['lsup005'];
} else {
$text = $locale['lsup006'];
}
$lastseen = $iD." ".$text;
} else {
$lastseen = $iH.":".$iM.":".$iS;
}
if ($data['user_avatar'] && file_exists(IMAGES."avatars/".$data['user_avatar'])) {
$img = "<img src='".BASEDIR."images/avatars/".$data['user_avatar']."' title='".$data['user_name']."' alt='".$data['user_name']."' style='border:0' align='left' width='40px' height='40px' >";
}
else { $img = "<img src='".INFUSIONS."last_seen_users_panel/images/noAvatar.png' title='".$data['user_name']."' style='border:0' width='40px' height='40px' >";
}
echo "<tr>\n<td class='side-small' align='left'>\n";
echo "<table><td><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' >".$img."</a></td>\n";
echo "<td class='side-small'>".$locale['lsup007']." <a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' >".$data['user_name']."</a><br />".$locale['lsup008']." ".showdate("%d.%m.%y", $data['user_joined'])."<br>\n";
echo "".$lastseen."</td>\n</table></td></tr>\n";
}
}
echo "</table>";
closeside();
?>
Edited by fouldsy on 11-09-2010 20:14
 
slaughter
I see you have any other panel, it is not the one from PiF.

Can you post the original code from your panel?

And please use code or quote tag and dissable smilies Wink
 
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Users group profile and Welcome Message settings bugs Suspected Bugs and Errors 8 02-03-2012 04:10
Latest Threads Panel Suspected Bugs and Errors 2 02-03-2012 04:07
Howto chage appearing of online users General Questions 9 01-03-2012 03:59
Users + admin General Questions 11 21-02-2012 04:24
Latest Active Forum Threads General Discussion 2 01-12-2010 17:31
Share this thread
URL:
BB-Code:
HTML:
AddThis:
Share |
Render time: 0.12 seconds - 92 Queries 994,261 unique visits