The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
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")){ Code:
} else { $templatesused='error_adult,'; eval("standarderror(\"".gettemplate("error_adult")."\");"); exit; } BUT! it also displays this message for every other forum aswell where have I gone wrong? help! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|