February 04 2012 15:47:44
Languages
Navigation
Friends & Affiliates
Roadmap
[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...
[N] Different avatar sizes
Users Online
· Guests Online: 9

· Members Online: 0

· Total Members: 464
· Newest Member: Erikutis
Last Seen Users
· dalem20:40:25
· Erikutis22:48:02
· videry 1 day
· inflames 1 day
· SilverAngel 2 days
· jebajseti 2 days
· outchorn 2 days
· uygarozan 4 days
· deejay-erik 5 days
· DJSimse 5 days

Login
 Username  Password  
View Thread: Latest Users
Who is here? 1 Guest
 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 + admin General Questions 11 21-08-2011 18:25
Howto chage appearing of online users General Questions 9 23-07-2011 01:40
Latest Active Forum Threads General Discussion 2 01-12-2010 17:31
Users group profile and Welcome Message settings bugs Suspected Bugs and Errors 8 12-06-2010 15:04
Latest Threads Panel Suspected Bugs and Errors 2 27-04-2010 16:29
Share this thread
URL:
BB-Code:
HTML:
AddThis:
Share |
Render time: 0.11 seconds - 92 Queries 831,075 unique visits