You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 49 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Hide Online Status (User Info Block) [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
lost3
Lieutenant
Lieutenant


Joined: Aug 16, 2004
Posts: 163


PostPosted: Wed Jun 14, 2006 5:30 am Reply with quoteBack to top

Hello,

I was wondering if there's a way to hide your online status in the User Info block?

I went to edit the settings in my account from Your Account module and it has the option. I select YES to hide my online status. I still show up in the USER INFO BLOCK. I think that's just for the Forums.

Please anyone let me know if this is possible or if there's a certain mod or whole block.

Thanks for the read.
Find all posts by lost3View user's profileSend private message
webjunky
Lieutenant
Lieutenant


Joined: May 11, 2003
Posts: 167


PostPosted: Wed Jun 14, 2006 7:00 am Reply with quoteBack to top

USe this in the block:
(you may have to mod it a bit... comes from my heavily mod phpnuke)

$listhiddenmembers = "";
$i = 1;
$result = $db->sql_query("SELECT ".$prefix."_session.uname, ".$user_prefix."_users.user_allow_viewonline FROM ".$prefix."_session, ".$user_prefix."_users WHERE ".$prefix."_session.uname=".$user_prefix."_users.username AND user_allow_viewonline='0' AND guest=0");
$member_hiddenonline_num = $db->sql_numrows($result);
while ($row = $db->sql_fetchrow($result)) {
if ($i < 10) {
$listhiddenmembers .= "$row[uname]";
} else {
$listhiddenmembers .= "$row[uname";
}
$i++;
}

$listshowmembers = "";
$i = 1;
$result2 = $db->sql_query("SELECT ".$prefix."_session.uname, ".$user_prefix."_users.user_allow_viewonline FROM ".$prefix."_session, ".$user_prefix."_users WHERE ".$prefix."_session.uname=".$user_prefix."_users.username AND user_allow_viewonline='1' AND guest=0");
$member_online_num = $db->sql_numrows($result2);
while ($row = $db->sql_fetchrow($result2)) {
if ($i < 10) {
$listshowmembers .= "$row[uname]";
} else {
$listshowmembers .= "$row[uname]</a></TD></TR>";
}
$i++;
}

_________________
- Do not pm me for help -
Find all posts by webjunkyView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.346 Seconds - 155 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::