vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Allow mods and supermods to view a closed boards (https://vborg.vbsupport.ru/showthread.php?t=38038)

geniuscrew 04-29-2002 07:26 PM

Allow mods and supermods to view a closed boards
 
Hi peeps,

Our boards are closed for renovating, so is there a way to allow mods and supermods to view a board that is closed? At the moment only admins can, but i'd like other colleagues to see it as well.

Thanx for any help!

scsa20 04-29-2002 07:33 PM

I think that also super mods can see the close board, but I don't know

Neo 04-29-2002 07:36 PM

Smods cannot see the board when it is closed... I was just thinking about making this :)

geniuscrew 04-29-2002 07:36 PM

I was told it'd require a hack over at vbulletin.com :-/

If someone can possibly do it, it'd be great big help.

geniuscrew 04-29-2002 07:42 PM

Quote:

Originally posted by neo
Smods cannot see the board when it is closed... I was just thinking about making this :)
you managed to post before me lol - i've installed loads of your hacks btw, neo

this one would be very useful

Neo 04-29-2002 07:56 PM

In global.php find around line 333

PHP Code:

  if (!$permissions['cancontrolpanel']) {
    eval(
"standarderror(\"".str_replace("\'""'"addslashes($bbclosedreason))."\");");
    exit;
  } 

replace it with

PHP Code:

  if (!$permissions['cancontrolpanel'] && ($bbuserinfo[usergroupid]!=&& $bbuserinfo[usergroupid]!=5)) {
    eval(
"standarderror(\"".str_replace("\'""'"addslashes($bbclosedreason))."\");");
    exit;
  } 


geniuscrew 04-30-2002 08:46 AM

Quote:

Originally posted by neo
In global.php find around line 333

PHP Code:

  if (!$permissions['cancontrolpanel']) {
    eval(
"standarderror(\"".str_replace("\'""'"addslashes($bbclosedreason))."\");");
    exit;
  } 

replace it with

PHP Code:

  if (!$permissions['cancontrolpanel'] && ($bbuserinfo[usergroupid]!=&& $bbuserinfo[usergroupid]!=5)) {
    eval(
"standarderror(\"".str_replace("\'""'"addslashes($bbclosedreason))."\");");
    exit;
  } 


Thanx a lot neo, that totally works and is sooo brilliant!

thanx again


All times are GMT. The time now is 10:06 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.01134 seconds
  • Memory Usage 1,736KB
  • 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
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete