vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Limit forum access by userid... (https://vborg.vbsupport.ru/showthread.php?t=39839)

Chris M 06-14-2002 01:09 PM

Limit forum access by userid...
 
Is there a hack out there that can limit the access to certain forums by Userid?

I am going to start up a specific clan forum, and I only want the people who I want to see it to be able to...

If this could be intergrated into the Admin CP, that would be great!

Satan

Admin 06-14-2002 01:11 PM

It's called ACCESS MASKS. :)

Chris M 06-14-2002 02:30 PM

Yeh...

But Access Masks take too long to edit...

Satan

Admin 06-14-2002 03:03 PM

LOL But access masks is exactly what you're asking for. The hack will also take a long time to edit... :p

Chris M 06-14-2002 03:07 PM

Ah ok...

Its just that other admins can edit Access Masks anyway...

Satan

JoshFink 06-16-2002 10:55 PM

Quote:

Originally posted by hellsatan
Yeh...

But Access Masks take too long to edit...

Satan

Easiest way that I've found to do access masks is to make up a SQL script that will put in all the corect data you want into the tables for you. Then you just need to modify it for the different forum id's and redo.

Josh

Zzed 06-16-2002 11:45 PM

We have the same thing on our forums.

Just create a new user group and give them permission to access the forum you are talking about. No need to fiddle with access masks. ;)

SWRoleplay.com 06-17-2002 03:49 AM

Quote:

Its just that other admins can edit Access Masks anyway...
That's easily fixed. Credit goes to Firefly for this code.

Open forumpermissions.php.

Find:

PHP Code:

require("./global.php"); 

After That, Put:

PHP Code:

if ($bbuserinfo['usergroupid'] != 1) {
    
show_nopermission();



Xenon 06-17-2002 12:06 PM

if ($bbuserinfo['usergroupid'] != 1) ???

in general all admins have usergroupid 6, so every admin will get this error.

if ($bbuserinfo['userid']!=1)
should be the correct syntax

Chris M 06-17-2002 12:56 PM

Thanks:)

Satan


All times are GMT. The time now is 07:59 PM.

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.00957 seconds
  • Memory Usage 1,726KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete