The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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 |
#2
|
|||
|
|||
![]()
I got this added to the phpinclude_start
Code:
require("C:/../../phpadsnew/phpadsnew.inc.php"); if (!isset($phpAds_context)) $phpAds_context = array(); $phpAds_raw = view_raw ('', 0, '', '', '0', $phpAds_context); $variable_name = $phpAds_raw['html']; 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. ![]() Code:
<?php if (@include('C:/../../phpadsnew/phpadsnew.inc.php')) { if (!isset($phpAds_context)) $phpAds_context = array(); $phpAds_raw = view_raw ('', 2, '', '', '0', $phpAds_context); echo $phpAds_raw['html']; } ?> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|