I'm running V3.1.3 Developer and trying to insert a code generated by phpnewads into my listing.tpl.php site. I looked at another post and the answer this was to put this directly under {include file=$body}.
I have tried doing this and when I re-upload the listing file, I get the following error;
Quote:
Fatal error: Smarty error: [in layout.tpl.php line 59]: syntax error: unidentified token '=' (Smarty_Compiler.class.php, line 1396) in /home/telerot1/public_html/adultads/includes/classes/smarty/Smarty.class.php on line 1095
|
The code i'm trying to insert looks like this;
PHP Code:
if (@include(getenv('DOCUMENT_ROOT').'/phpads/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:1', 0, '', '', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
I would appreciate any help.