The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
PHP Redirect
I'm writing a conditional script that uses vB's global.php, and I'm attempting to redirect unregistered users to the user cp login screen. However, since I am using a header include on the page, I get a Cannot modify header information - headers already sent error. I've tried commenting out the line that requires the header, and the redirect works fine. With the require line intact, I get the error and no redirect.
PHP Code:
Edit-I guess putting the header and footer requires in the "else" part of the conditional would work. Is there another way to do this that I am missing? |
#2
|
||||
|
||||
use a javascript redirect, not sure what it is exactly but it works, or you could try a meta redirect but im not sure if that'll work
|
#3
|
||||
|
||||
Output Buffering
Use output buffering with ob_start() and ob_end_flush(). Although ob_end_flush() isn't needed in MOST cases because it is called automatically at the end of script execution by PHP itself when output buffering is turned on either in the php.ini or by calling ob_start() PHP Code:
|
#4
|
|||
|
|||
check your global.php for any spaces or new lines after the ?> and before the <?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|