The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
|||
|
|||
![]()
Google Ads Manager Give error i try yesterday...
|
#22
|
|||
|
|||
![]() Quote:
My goal was to have OpenX capture the vbulletin $forumid into the "source" parameter, so that I could serve different ads to different forums based on the delivery options in openX. This turned out to be pretty simple. 1. Configure your "local mode" invocation code via OpenX. Put $forumid in the source box so it will show you where in the php openX expects the forumid. The automated generated bannercode should look something like the following. You MUST remove the single quotes from around $forumid ( change '$forumid' to $forumid ). Code:
<?php //<!--/* OpenX Local Mode Tag v2.6.3 */--> // The MAX_PATH below should point to the base of your OpenX installation define('MAX_PATH', '/home/mysite.com/openx'); if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) { if (!isset($phpAds_context)) { $phpAds_context = array(); } // function view_local($what, $zoneid=0, $campaignid=0, $bannerid=0, $target='', $source='', $withtext='', $context='', $charset='') $phpAds_raw = view_local('', 2, 0, 0, '', $forumid, '0', $phpAds_context, ''); } echo $phpAds_raw['html']; ?>
Into the "Plugin PHP Code:", paste the invocation code, but without the php delimiters: Code:
define('MAX_PATH', '/home/mysite.com/openx'); if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) { if (!isset($phpAds_context)) { $phpAds_context = array(); } // function view_local($what, $zoneid=0, $campaignid=0, $bannerid=0, $target='', $source='', $withtext='', $context='', $charset='') $phpAds_raw = view_local('', 2, 0, 0, '', $forumid, '0', $phpAds_context, ''); } echo $phpAds_raw['html']; Code:
<center><div> $phpAds_raw[html] </div></center> <br /> I welcome comments. ![]() |
#23
|
||||
|
||||
![]()
ok I'm confused.. using the instructions in the link below, how would I render an output array to say the ad_global_header2 template? Can someone enlighten me on this?
https://vborg.vbsupport.ru/showthread.php?t=228078 |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|