Description: This allows you to totally hide a Usergroup from the Who's Online screen. Even from anyone who can see invisible users. You create a usergroup and add yourself or any other super-stealth" users into the user group. If the member is part of that group, then they won't get added into the online table at all. So they are 100% stealth from everyone.
This is a good way for Admins to hide from other admins.
Working Under: UBB.Threads 6.4
Mod Status: Beta
Any pre-requisites:
Author(s): JoshPet
Date: 01/29/04
Credits: Commissioned by a client who remains nameless.
Files Altered: ubbt.inc.php
New Files: none
Database Altered: none
Info/Instructions: NOTE: That you will need to edit the group number to the bit of code that you insert. If you need to find out what the group numbers are, run this query:
SELECT * FROM w3t_Groups
Disclaimer: Please backup every file that you intend to modify. If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
$Board = addslashes($Board);<br /> $query = "<br /> REPLACE INTO {$config['tbprefix']}Online<br /> (O_Username,O_Last,O_What,O_Board,O_Read,O_Type,O_Extra,O_Agent,O_Refer)<br /> VALUES ('$Username','$Last','$What','$Board','$readperm','a','$aux','$Uagent','$Urefer') <br /> ";<br /> // Don't put them in if they are part of X group - by JoshPet<br /> if (!strstr($user['U_Groups'],"-8-")) { // Change the group number as needed<br /> $dbh -> do_query($query,__LINE__,__FILE__);<br /> }<br />
[]Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /Library/Tenon/WebServer/WebSites/www.magle.dk/ubbthreads/ubbt.inc.php on line 1549
Fatal error: Call to undefined function: getmicrotime() in /Library/Tenon/WebServer/WebSites/www.magle.dk/ubbthreads/includes/main.inc.php on line 16[/]
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.