![]() |
phpAdsNew 2 beta 7
Has anyone been able to successfully use local invocation in phpAdsNew 2 beta 7 with vBulletin? Everything worked fine with 2 beta 6, but with 7 the forum comes up as a blank page. Any ideas or suggestions? Anyone else experiencing this?
Here is the code I've put in the PHP Parsed code: ob_start(); require(getenv('DOCUMENT_ROOT').'/a/phpadsnew.inc.php'); if (!isset($phpAds_context)) $phpAds_context = array(); $phpAds_raw = view_raw ('B', 3, '', '', '0', $phpAds_context); $header = ob_get_contents(); ob_end_clean(); When I add $phpAds_raw['html'] to the header template, I get the following error: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/www/public_html/forums/global.php(306) : eval()'d code on line 24 Line 306 of global.php is the following: eval("\$header .= \"".gettemplate('header')."\";"); (where the header template is parsed, and where I'm adding the $phpAds_raw array) If I change the array to $phpAds_raw[html] (without the single quotes) the error goes away, however no advertisement is displayed. What I'm not sure of is what's expecting T_STRING, T_VARIABLE, etc... is that vBulletin or phpAdsNew? Jakeman suggested I ask over at vb.org since it involves a third-party product. I'm hoping someone here can help me with this :) Thanks, Paul |
I got this added to the phpinclude_start
Code:
require("C:/../../phpadsnew/phpadsnew.inc.php"); But not sure where I need to put the local invocation code generated by phpadsnew. Do you know where I need to put them? I would greatly appreciated if you can point me to the right direction. :confused: Thanks. Code:
<?php |
All times are GMT. The time now is 08:45 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|