The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to include a php file for ad rotator?
Hi!
I've a problem to include a php file in my postbit_legacy. I follow this -> https://www.vbulletin.com/docs/html/..._externalfiles I create a Plug-in for global_start with these contents: Code:
ob_start(); include('/var/www/vhosts/domain.ext/httpdocs/adrotator/adrotator.php'); $adrotator = ob_get_contents(); ob_end_clean(); Code:
$adrotator Have you any suggestion? PS: sorry for my bad english. PSS: I use vBulletin 3.8.7 |
#2
|
|||
|
|||
In the postbit_legacy template, try using $GLOBALS[adrotator]. (Also make sure you are using the same style that you're editing).
|
#3
|
||||
|
||||
I've changed global_start with postbit_display_start and it works.
Thank you. It works with this solution too. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|