vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Closed forum Permissions (https://vborg.vbsupport.ru/showthread.php?t=38276)

Beams 05-05-2002 06:12 PM

Closed forum Permissions
 
I have asked on vbulletin.com and was told to ask here :)


Turn Your vBulletin on and off
Bulletin Board Active
From time to time, you may want to turn your bulletin board off to the public while you perform maintenance, update versions, etc. When you turn your BB off, visitors will receive a message that states that the bulletin board is temporarily unavailable. Administrators will still be able to see the board


Is there away to allow mods access to the forum when its closed plz

Thanks

Beams

Admin 05-05-2002 07:14 PM

In global.php replace this:
Code:

  $permissions=getpermissions();
  if (!$permissions['cancontrolpanel']) {

With this:
Code:

  $permissions=getpermissions();
  if (!$permissions['cancontrolpanel'] and !$permissions['ismoderator']) {

:)

Beams 05-05-2002 08:13 PM

Hi FireFly

worked a treat m8

Thanks a lot

Beams :D

Admin 05-06-2002 11:28 AM

No problem, Beams. :)

Marulatree 05-20-2003 08:08 AM

FF - I have tried this and still my mod's can't get in? Any ideas

Xenon 05-20-2003 09:16 AM

this is just for supermods :)

if you change it into this:
PHP Code:

$permissions=getpermissions();
  if (!
$permissions['cancontrolpanel'] and !$permissions['ismoderator'] and !$DB_site->query_first("SELECT userid FROM moderator WHERE userid=$bbuserinfo[userid]") { 

it should work for normal mods also

Marulatree 05-21-2003 08:59 AM

Great thanks for the super quick reply -I had changed my one mod to a supermod and relised ithas work with the origal code ajustment. I will change it over to you MOD code adjustment.

Is it possible to set it up for both mod's and supermods

Xenon 05-21-2003 10:31 AM

my code is for mods and supermods :)

the ismoderator clause is for supermods, i just alloewd another group to get through the barrier ;)

Marulatree 05-21-2003 01:08 PM

I get a parse error with the updated code?
I'm using VB2.3.0

Xenon 05-21-2003 01:11 PM

after ") add another ) i've forgotten it it seems ;)


All times are GMT. The time now is 12:32 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01095 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete