Log in

View Full Version : Help with Plugin for OpenX


epic1
07-21-2010, 02:04 PM
I'm trying to get my old top banner rotation script working with my new vBulletin 4 installation.

This is my plugin code, hook location in global_start

ob_start();

define('MAX_PATH', '/home/sites/fullthrottlev6.com/openx');
if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) {
if (!isset($phpAds_context)) {
$phpAds_context = array();
}
$topbanner = view_local('', 1, 0, 0, '_blank', '', '0', $phpAds_context, '');
ob_end_clean();

$preRegister['topbanner'] = $topbanner;
vB_Template::preRegister('header',$preRegister);


In my header template, I have:
{vb:raw topbanner}

It's returning a blank spot. Any help? Thanks in advance!

--------------- Added 1279762707 at 1279762707 ---------------

Fixed.

fitnesshealth
07-24-2010, 08:08 PM
do you mind showing how to get it working please? thanks!

.

underESTIMATED
07-27-2010, 03:55 PM
+1.

vb4 hates OpenX for me.

My vb3 sites are fine.