UBB.Dev
Posted By: Brett Board closing hack idea - 07/15/2001 5:04 AM
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.
Posted By: Tech-Ni-Kal Re: Board closing hack idea - 07/15/2001 5:25 AM
That would be a good idea. /Runs off to see what he can do
Posted By: Mr.Clean Re: Board closing hack idea - 07/15/2001 5:27 AM
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
Posted By: Brett Re: Board closing hack idea - 07/15/2001 6:42 PM
I tried putting this code in there. But kept getting software errors.

Quote
quote:
Posted By: jordo Re: Board closing hack idea - 07/15/2001 8:12 PM
just change:

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

to:

if (($vars_misc{BBStatus} ne 'ON') && ($this_member[8] ne 'Administrator')) {
Posted By: Brett Re: Board closing hack idea - 07/15/2001 11:20 PM
Didn't work, jordo. At least there wasn't any errors.
Posted By: Brett Re: Board closing hack idea - 07/15/2001 11:22 PM
nevermind, didn't work

[ July 15, 2001 04:32 PM: Message edited by: raiyan ]
Posted By: Mr.Clean Re: Board closing hack idea - 07/16/2001 4:56 AM
please any one figure this out yet?
Posted By: Brett Re: Board closing hack idea - 07/16/2001 6:23 PM
I tried putting eq instead of ne, but that just opened the board up to everyone even though it said it was closed.
Posted By: Tech-Ni-Kal Re: Board closing hack idea - 07/16/2001 6:25 PM
Maybe try this:

Code
code:

[ July 16, 2001 11:28 AM: Message edited by: Tech-Ni-Kal ]
Posted By: jordo Re: Board closing hack idea - 07/16/2001 6:59 PM
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...
Posted By: Tech-Ni-Kal Re: Board closing hack idea - 07/16/2001 7:07 PM
What code reads the cookie?
Posted By: Brett Re: Board closing hack idea - 07/16/2001 7:44 PM
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.
© UBB.Developers