The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Private Forum - Make Homepage redirect to Login.php page If not-logged in
Hi,
We have a Private forum, and every forum is hidden in case user is not logged-in. I want to make homepage show login.php login form if user is not logged in... I tried to set .htaccess directory index to login.php but it redirects back to forum.php! Looking for some help in this regard. Thank you! |
#2
|
|||
|
|||
If all of your forums are already hidden, you can re-direct users that aren't logged in from the forum home page to the login page with a plugin...
Go to ACP->Plugins & Products. Click Add Plugin Product: vBulletin Hook Location: forumhome_start Title: Force Login Page Execution Order: 5 Plugin PHP Code: Code:
global $vbulletin; if(!$vbulletin->userinfo['userid']) { print_no_permission(); } Click Save |
#3
|
|||
|
|||
Hi,
Thank you very much for your assistance. I created and activated a plugin as above but its not working, i mean it is still showing me homepage when not logged in, instead of the login page. Can you please see what i maybe missing? I followed exact steps as you have kindly explained above, everything worked fine in the admin side.. Plugin is active.. but in the front-end it does not redirect me to login page when not logged in. Thanks again for your help! |
#4
|
|||
|
|||
Are you using vBulletin Forum Classic or vBulletin Publishing Suite?
If you're using the Publishing Suite, create a second plugin with exactly the same content but change the Hook Location to: vbcms_content_populate_start (vBulletin CMS) |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|