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.
webjunky Lieutenant
Joined: May 11, 2003
Posts: 167
Posted:
Wed Jun 14, 2006 7:00 am
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++;
}
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