The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Send Guests to an External URL or Static Page
We're working on a heavily customized site for a client. This is a closed, "invitation-only" site.
So all guests need to go to a static HTML page with information and a login form. The external page works fine, and the login works fine. Right now, I'm able to force guests to log in with a custom plugin hooked on global_state_check Code:
if ($vbulletin->userinfo['usergroupid'] == 1) { if ((THIS_SCRIPT == 'login') or ($_POST['do'] == 'login')) { } else { $templater = vB_Template::create('custom_login'); print_output( $templater->render()); } } Running vBulletin 4.1 (Still porting our customized navigation to 4.2.) |
#2
|
|||
|
|||
You want to redirect them with header location?
Code:
header( 'Location: http://www.foobar.net/login' ) ; |
#3
|
|||
|
|||
Exactly.
But I don't know how to get vBulletin 4.1 to send that header. |
#4
|
||||
|
||||
Try this:
HTML Code:
exec_header_redirect('http://www.foobar.net/login'); |
#5
|
|||
|
|||
Thanks so much!
That was exactly the magic that was needed. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|