Previous Thread
Next Thread
Print Thread
Hop To
#183671 05/02/2007 1:01 PM
Joined: Nov 2006
Posts: 191
Likes: 1
T
Member
Member
T Offline
Joined: Nov 2006
Posts: 191
Likes: 1
How do I disable the viewing of profiles by members and moderators but not admin? Thankyou.

Joined: Dec 2003
Posts: 1,796
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,796
All scripts have at the top of their page the setting about who can view/run the file - can be set to admin-only


- Allen
- ThreadsDev | PraiseCafe
Joined: Jul 2006
Posts: 51
journeyman
journeyman
Joined: Jul 2006
Posts: 51
go to /scripts/showprofil.inc.php

find
Code
"admin_only" => 0,

replace with
Code
"admin_only" => 1,

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Actually, since he wants it enabled for admin's AND mod's, he should edit showprofile.inc.php and increase:

"admin_or_mod" => 0,
vs
"admin_only" => 0,

Which should allow mod's to access as well.

Last edited by Gizmo; 05/02/2007 7:30 PM.

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: Jul 2006
Posts: 51
journeyman
journeyman
Joined: Jul 2006
Posts: 51
Originally Posted by Gizmo
showprofile.inc.php
Oopss, next time i c&p wink

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Originally Posted by Firstone
Oopss, next time i c&p wink
Lol don't sweat it, I made the same mistake a couple of times with several mod's at UBBDev ol


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!

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
0 members (), 502 guests, and 178 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)