Previous Thread
Next Thread
Print Thread
Rate Thread
#48770 07/14/2001 10:04 PM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Is there a way to close the board, but for admins to view it as if it wasn't? Because when trying to hack or update the board, it would be nice if Admins could preview it just to make sure.

Sponsored Links
#48771 07/14/2001 10:25 PM
Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
That would be a good idea. /Runs off to see what he can do

#48772 07/14/2001 10:27 PM
Joined: Mar 2001
Posts: 318
Member
Member
Offline
Joined: Mar 2001
Posts: 318
i was just lookin in ultimatebb.cgi and i found

Code
code:


mabey you can modify that to let admins and mods go through like mabey looks at member status

#48773 07/15/2001 11:42 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
I tried putting this code in there. But kept getting software errors.

Quote
quote:

#48774 07/15/2001 1:12 PM
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
just change:

if ($vars_misc{BBStatus} ne 'ON') {

to:

if (($vars_misc{BBStatus} ne 'ON') && ($this_member[8] ne 'Administrator')) {

Sponsored Links
#48775 07/15/2001 4:20 PM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Didn't work, jordo. At least there wasn't any errors.

#48776 07/15/2001 4:22 PM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
nevermind, didn't work

[ July 15, 2001 04:32 PM: Message edited by: raiyan ]

#48777 07/15/2001 9:56 PM
Joined: Mar 2001
Posts: 318
Member
Member
Offline
Joined: Mar 2001
Posts: 318
please any one figure this out yet?

#48778 07/16/2001 11:23 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
I tried putting eq instead of ne, but that just opened the board up to everyone even though it said it was closed.

#48779 07/16/2001 11:25 AM
Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
Maybe try this:

Code
code:

[ July 16, 2001 11:28 AM: Message edited by: Tech-Ni-Kal ]

Sponsored Links
#48780 07/16/2001 11:59 AM
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
it doesnt work cause the members profile isnt defined yet...

you could try this:
@user_profile = &verify_id_num($username, $password, $user_number);

if (($vars_misc{BBStatus} ne 'ON') && ($user_profile[8] ne 'Administrator')) {


but it will only work if the cookie has been read before then...

#48781 07/16/2001 12:07 PM
Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
What code reads the cookie?

#48782 07/16/2001 12:44 PM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Quote
quote:

Got this error even when board is open

Sorry, we have no one registered with that name. Use your browser's back button to try again.
ยป Please use your browser's back button to return.


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
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
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)