Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2001
Posts: 128
Member
Member
Joined: Aug 2001
Posts: 128
I need to add to the Who's Online system the ability to hide the main admin account... Can someone please help me...

Last edited by Dave_L; 06/25/2002 1:38 PM.
Sponsored Links
Joined: Mar 2002
Posts: 305
Enthusiast
Enthusiast
Offline
Joined: Mar 2002
Posts: 305
You can't just make it invisible? Are you trying to hide it from mods and other admin as well?

I'm not sure how you'd write it, but you could probably tell it to pull user numbers, then tell it not to show usernumber=2 (or whatever the main admin. is). I'm probably way off base, sorry.

Last edited by Lisa_P; 06/25/2002 1:58 PM.

[:"red"]Lisa[/]
Joined: Aug 2001
Posts: 128
Member
Member
Joined: Aug 2001
Posts: 128
Everyone :-/ Kind of would like to work in private and not be bothered by people even other admins seeing me on-line

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
Ok, here is a quick and dirty one you might want to test:

find in online.php ~ line 52
code:
// ------------------
// Send a html header
$html -> send_header($ubbt_lang['ONLINE_HEAD'],$Cat,"<meta http-equiv="Refresh" content="60;url={$config['phpurl']}/online.php?Cat=$Cat" />",$user);
$query = "
SELECT w3t_Online.O_Username, w3t_Online.O_Last, w3t_Online.O_What,w3t_Online.O_Extra,w3t_Online.O_Read,w3t_Users.U_Status,w3t_Users.U_Visible,w3t_Users.U_Extra1,w3t_Users.U_Title,w3t_Users.U_Color,w3t_Users.U_OnlineFormat
FROM w3t_Online,w3t_Users
WHERE w3t_Online.O_Username = w3t_Users.U_Username
ORDER BY O_Last DESC
";



replace
code:
WHERE w3t_Online.O_Username = w3t_Users.U_Username



with
code:
WHERE w3t_Online.O_Username = w3t_Users.U_Username AND w3t_Users.U_Username!=YOURUSERNAME



Insert "Datal" for YOURUSERNAME.


If you want to be removed from "Friends Online" change in ubbt.inc.php ~ line 1215
code:
// ----------------------------------------
// Grab the entries from their address book
$query = "
SELECT w3t_AddressBook.Add_Member,w3t_Online.O_What
FROM w3t_AddressBook,w3t_Online
WHERE w3t_AddressBook.Add_Member = O_Username
AND w3t_AddressBook.Add_Owner = '$username_q'
";


change to:
code:
// ----------------------------------------
// Grab the entries from their address book
$query = "
SELECT w3t_AddressBook.Add_Member,w3t_Online.O_What
FROM w3t_AddressBook,w3t_Online
WHERE w3t_AddressBook.Add_Member = O_Username
AND w3t_AddressBook.Add_Owner = '$username_q'
AND w3t_AddressBook.Add_Member!=YOURUSERNAME
";


replace YOURUSERNAME here too.

Maybe it works.

Last edited by AllenAyres; 06/26/2002 5:13 PM.
Joined: Aug 2001
Posts: 128
Member
Member
Joined: Aug 2001
Posts: 128
Thank you... That all worked except for the address book...

Sponsored Links
Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
Yep, there's a typo in the last line... Addressbook with 2 "d"...
Can't correct that in my previous post...

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
I edited/added it for you Astaran, in case someone else should try it


- Allen wavey
- What Drives You?
Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
Thx Allen!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)