Previous Thread
Next Thread
Print Thread
Rate Thread
#48770 07/14/2001 9:04 PM
Joined: May 2001
Posts: 1,042
Likes: 7
B
Brett Offline OP
Moderator
OP Offline
Moderator
B
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 9:25 PM
Joined: May 2001
Posts: 2,798
T
Member
Offline
Member
T
Joined: May 2001
Posts: 2,798
That would be a good idea. /Runs off to see what he can do

#48772 07/14/2001 9:27 PM
Joined: Mar 2001
Posts: 318
M
Member
Offline
Member
M
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 10:42 AM
Joined: May 2001
Posts: 1,042
Likes: 7
B
Brett Offline OP
Moderator
OP Offline
Moderator
B
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 12:12 PM
Joined: Aug 2000
Posts: 874
J
Moderator / Developer
Offline
Moderator / Developer
J
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 3:20 PM
Joined: May 2001
Posts: 1,042
Likes: 7
B
Brett Offline OP
Moderator
OP Offline
Moderator
B
Joined: May 2001
Posts: 1,042
Likes: 7
Didn't work, jordo. At least there wasn't any errors.

#48776 07/15/2001 3:22 PM
Joined: May 2001
Posts: 1,042
Likes: 7
B
Brett Offline OP
Moderator
OP Offline
Moderator
B
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 8:56 PM
Joined: Mar 2001
Posts: 318
M
Member
Offline
Member
M
Joined: Mar 2001
Posts: 318
please any one figure this out yet?

#48778 07/16/2001 10:23 AM
Joined: May 2001
Posts: 1,042
Likes: 7
B
Brett Offline OP
Moderator
OP Offline
Moderator
B
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 10:25 AM
Joined: May 2001
Posts: 2,798
T
Member
Offline
Member
T
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 10:59 AM
Joined: Aug 2000
Posts: 874
J
Moderator / Developer
Offline
Moderator / Developer
J
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 11:07 AM
Joined: May 2001
Posts: 2,798
T
Member
Offline
Member
T
Joined: May 2001
Posts: 2,798
What code reads the cookie?

#48782 07/16/2001 11:44 AM
Joined: May 2001
Posts: 1,042
Likes: 7
B
Brett Offline OP
Moderator
OP Offline
Moderator
B
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
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Forum Statistics
Forums63
Topics37,557
Posts293,856
Members13,847
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,819
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 70
Gizmo 16
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2021 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Snapshot build 20210915)
Responsive Width:

PHP: 7.3.29 Page Time: 0.021s Queries: 40 (0.012s) Memory: 0.8400 MB (Peak: 0.9117 MB) Data Comp: Zlib Server Time: 2021-12-06 14:34:02 UTC
Valid HTML 5 and Valid CSS