Previous Thread
Next Thread
Print Thread
Hop To
#202701 12/05/2007 10:15 PM
Joined: Nov 2007
Posts: 99
T
journeyman
journeyman
T Offline
Joined: Nov 2007
Posts: 99
I would like to hide the "who's online" and I know how to do that through CP, but my question is, is there a way that I (as admin) can see who is online - users and anon and their IPs whilst still hiding the who's online box from others?

Last edited by toonarrow; 12/05/2007 10:16 PM.
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
yah, a slight tweak to ubbthreads.inc.php to check for 'Administrator' and then display would do the trick smile

Joined: Nov 2007
Posts: 99
T
journeyman
journeyman
T Offline
Joined: Nov 2007
Posts: 99
Apologies in advance for the hand holding Sirdude, but I'm lost. Is that something I can do within the control panel?

Joined: Nov 2007
Posts: 99
T
journeyman
journeyman
T Offline
Joined: Nov 2007
Posts: 99
Ah. Okay. So I found that ubbthreads.in.php file. I presume I must change it in my text editor, save it, upload it to my ftp server to replace existing file, right?

I can do that. Can you tell me what to change check for admin?

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
In situations like this I simply tell the admin to disable the island, and bookmark the "details" page...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
which points out what i deem a flaw. lowly guests can peruse that link, even if the admin doesn't want it.

so what i do for /scripts/online.inc.php is change "admin_only" => 0 to "admin_only" => 1 and that prevents all but admins to view that link.

1 character edit wink

Joined: Nov 2007
Posts: 99
T
journeyman
journeyman
T Offline
Joined: Nov 2007
Posts: 99
so I'm in the ubbthreads.inc.php file and when I do a "find" for "admin_only" i come up with no results?

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
sorry for the misdirect toon.. rather than waddle thru ubbthreads.inc.php, the easiest way is to combine giz idea, but further restrict it to admin only..

sooooooo

1. open /scripts/online.inc.php
2. find "admin_only" => 0 ( ~ line 39ish)
3. change to : "admin_only" => 1
4. save file and upload
5. go to admin cpanel and disable who's online island
6. bookmark (just for you) http://yourforum/ubbthreads/ubbthreads.php?ubb=online

*poof* done smile

note: 'yourforum' is your domain and i assumed it was under the ubbthreads directory.. your mileage may vary wink

note: this will allow YOU (admins too) only to access that URL without getting an access error like "yo dude, no can do that" for all other users, including guests. it's essentially hidden AND protected this way smile

Joined: Nov 2007
Posts: 99
T
journeyman
journeyman
T Offline
Joined: Nov 2007
Posts: 99
Done. Look at me. Programming and stuff cool

Joined: Nov 2007
Posts: 99
T
journeyman
journeyman
T Offline
Joined: Nov 2007
Posts: 99
Oh. PS - THANK YOU smile

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
you are welcome toon.. and i'm glad you asked the question, because i think the way it is now (wide open) isn't the way it should/could be.. dunno... having to edit code ain't what i'd deem the way to do it..

/me checks out 7.3 code to see wink

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
<snicker> yeh, the admin only tick is good too if you want to ensure no one goes there; you can set it mod only or regged only too if you wanted to open things up slightly


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
SD, yeh, I'd definitely have it regged only wink...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
well, we have a group perm 'can view member list' that -- although not the same -- could be used to make it configurable (possibly)..

along with regonly=1

but, that's a Rick call from where i stand wink

2c


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (1 invisible), 920 guests, and 238 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)