vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Forum Access masking (https://vborg.vbsupport.ru/showthread.php?t=55105)

Shepski 07-08-2003 10:51 AM

Forum Access masking
 
hiya

been trying to get this to work and its now doing my head in. I have a particular forum on my site that I want people to complete a subscriptioon page in-order to access. The subscription page I have done works 100% but what i can seem to do is when the user (who is usergroup 2 - registered) goes into this form I want it to instead of displaying the threads, display an error template (which I have dont already) which contains a link to the subscription form. now i thought i had done it by editing forumdisplay.php

under require ("./global.php"); i added :
Code:

if (($forumid=="6") && ($bbuserinfo[usergroupid]=="5") || ($bbuserinfo[usergroupid]=="6")
|| ($bbuserinfo[usergroupid]=="7") || ($bbuserinfo[usergroupid]=="14")){

I thought this would allow admins, mods, super mods and the new group I had created (14) to all have access to this forum. Then right at the bottom of forumdisplay.php just before the ?> I put:
Code:

} else {
          $templatesused='error_adult,';
    eval("standarderror(\"".gettemplate("error_adult")."\");");
    exit;
}

now i thought this was working, i access this particualr forum (which is forumid 6) and it displays the message etc etc...great :)

BUT!

it also displays this message for every other forum aswell :(

where have I gone wrong? help!

Shepski 07-08-2003 01:50 PM

i think i have sorted it, me being dumb, needed to step back and look at it again and then it was plainly obvious what i had done.

please close

Erwin 07-08-2003 01:51 PM

Closed as requested. :)


All times are GMT. The time now is 01:39 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.01090 seconds
  • Memory Usage 1,710KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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