The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I've created this global_start plugin to display a list of sponsor images on my forum:
Code:
ob_start();
include('/home/username/site.com/forums/sponsors.php');
$includedphp = ob_get_contents();
ob_end_clean();
|
|
#2
|
||||
|
||||
|
put a condition around it based on THIS_SCRIPT. eg:
PHP Code:
|
|
#3
|
|||
|
|||
|
Thanks for the tip. I'm a little confused. Do I add that to my global_start plugin, sponsors.php, or register.php? I tried:
if (THIS_SCRIPT != 'sponsors.php') { ob_start(); include('/home/username/site.com/forums/sponsors.php'); $includedphp = ob_get_contents(); ob_end_clean(); } I must be missing something.
|
|
#4
|
||||
|
||||
|
Look at the top of your script and you'll see a line like this (example):
PHP Code:
PHP Code:
|
|
#5
|
|||
|
|||
|
Got it, thanks very much Lynne!
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|