The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help in creating shared login system...
Ok, i have my vb 3.5 forum on subdomain A of my domain, and a related site on subdomain B. I'm trying (unsuccessfully thus far) to use the vbulletin usergroup permission system to enable members of the forum to view the site, but for non-members to be re-directed to my portal login page (using vbadvanced for that).
So far, i've been trying variants of this code to add to my non-vb pages. I have the global.php file in with the test file i've been trying the code on: Code:
<?php include('./global.php'); if (!in_array($bbuserinfo['usergroupid'], array(1,3,4,8))){ ?> <META HTTP-EQUIV="refresh" content="0; URL=http://forum.oioplus.com/cmps.php"> <? }else { ?> <--- Page Code ---> <? } ?> I did change the cookie setting to cover the whole domain, rather than just the subdomain that the forum is in. Can anyone advise me on how to make this work? |
#2
|
|||
|
|||
You need to surround "include('./global.php');" with chdir() to the correct directories:
chdir('/path/to/forum/'); require('/path/to/forum/global.php'); chdir('/path/to/subdomain/'); |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|