Quote:
Originally Posted by onliner7
Hi i finally made it work by myself for vbulletin 3.6.0
1. Make a new plugin with the code phpAdsNew generates OMMITING the last echo command.
ex
PHP Code:
ob_start();
if (@include(getenv('DOCUMENT_ROOT').'/ads/phpadsnew.inc.php')) { if (!isset($phpAds_context)) $phpAds_context = array(); $phpAds_raw = view_raw ('', 0, '_blank', '', '0', $phpAds_context); }
ob_end_clean();
2. Set the hook to global start, execution 1, active YES
3. Save the plugin
Now find the template you want and add:
PHP Code:
{$phpAds_raw['html']}
this was the actual error i was getting with other posts requiring to add this line of code without the {} .. i always got an error and got frustrated.. dont forget them !
Finished! it works ! (i tested it) (check www.pbzone.net)
if you want more info email me onliner AT pbzone.net
thanks
|
I don't see this working on your site with the link you provided.
Also, I made my local mode code:
?php
if (@include(getenv('DOCUMENT_ROOT').'/phpadsnew/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('', 23, '_blank', '', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
?>
Integrated it into the code you put out:
ob_start();
if (@include(getenv('DOCUMENT_ROOT').'/phpadsnew/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('', 23, '_blank', '', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
ob_end_clean();
Added this code into my global_start.
Then, added:
{$phpAds_raw['html']}
Into my forumhome template.
Still not working, but then again, I'm using vB 3.6.1
Ideas?
Thanks
Thanks