![]() |
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) Running vBulletin 4.1 (Still porting our customized navigation to 4.2.) |
You want to redirect them with header location?
Code:
header( 'Location: http://www.foobar.net/login' ) ; |
Exactly.
But I don't know how to get vBulletin 4.1 to send that header. |
Try this:
HTML Code:
exec_header_redirect('http://www.foobar.net/login'); |
Thanks so much!
That was exactly the magic that was needed. :) |
All times are GMT. The time now is 09:18 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|