vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - View Offline Board Usergroup Permissions (https://vborg.vbsupport.ru/showthread.php?t=137021)

Selven 01-19-2007 10:00 PM

View Offline Board Usergroup Permissions
 
This mod allows administrators to decide which user group(s) can view the board while offline (disabled).
(Works with custom user groups as well.)

This is an updated version of Mephisteus's Mod.

Installation consists of:
1) Simple Code Modification (In Instructions.txt within the attached zip.)
2) Simple Product Installation (XML is within the attached zip.)

Distance 01-20-2007 11:53 AM

Although i dont need to use this now, i have needed somethign like this in the past

Nice work

Surviver 01-20-2007 03:36 PM

Why a Code Modification. I saw a hack which didnt need a code Modification.

Greetings Surviver

Snake 01-20-2007 05:34 PM

Thanks for this. Might come in handy.

EnIgMa1234 01-20-2007 08:37 PM

thanks. nice mod

fattony69 03-10-2009 01:17 AM

Does this work for 3.8.1?

KevinGupta 05-15-2009 03:30 PM

Quote:

Originally Posted by fattony69 (Post 1764517)
Does this work for 3.8.1?

I dont think it will work in 3.8.x ... because in global.php there is nothing ..

Selven asked for this code...
Code:

if (!$vbulletin->options['bbactive'] AND THIS_SCRIPT != 'login')
{
        if (!($permissions['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']))

but the closest thing which I could find in 3.8.x global.php is

Code:

if (!$vbulletin->options['bbactive'] AND THIS_SCRIPT != 'login')
{
        if (!($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']))

but not sure.. what to do now..? LOL

This mod in vB 3.8.x would be just wonderful!

Davidx3 07-06-2009 02:08 PM

I want this on v3.8.x (or v.3.8.2), so the same as the guy above.

Project Boredom 07-06-2009 08:09 PM

that's weird...i just installed it and it worked fine for me. i'm running on 3.8.2 i just found the codes and replaced them like he said :/

Mecho 07-16-2009 06:30 AM

for Version 3.8.X :

in Global.php :

find :
Code:

if (!$vbulletin->options['bbactive'] AND THIS_SCRIPT != 'login')
{
        if (!($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']))

Replace With:
Code:

if (!$vbulletin->options['bbactive'] AND THIS_SCRIPT != 'login')
{
        $viewdisabledboard = explode(",", $vbulletin->options["viewdisabledboard"]);
        if (!($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']) AND  !is_member_of($vbulletin->userinfo, $viewdisabledboard))

Works Fine .
Thanks


All times are GMT. The time now is 10:27 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.01131 seconds
  • Memory Usage 1,729KB
  • 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_code_printable
  • (1)bbcode_quote_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