I tried to implement my phpadsnew code, which i successfully generated using the invocation code. My website is www.talksox.com, and I want to use phpadsnew to serve the top right ad spot (currently occupied by a second adsense box).
I have those two adsense banners set up in a table in my navigation template. When I went to replace the right one with my phpadsnew code, I get this error message:
I went to the adminfunctions_template.php file and looked on line 3055:
The line in question is the one that begins with "eval". What exactly is wrong with the php code here? I want to get phpadsnew working....
Thanks.
I have those two adsense banners set up in a table in my navigation template. When I went to replace the right one with my phpadsnew code, I get this error message:
The following error occurred when attempting to evaluate this template:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home2/wwwtalk/public_html/forum/includes/adminfunctions_template.php(3055) : eval()'d code on line 112
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home2/wwwtalk/public_html/forum/includes/adminfunctions_template.php(3055) : eval()'d code on line 112
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Code:
$oldlevel = error_reporting(E_PARSE); ob_start(); eval('$devnull = "' . $template . '";'); $errors = ob_get_contents(); ob_end_clean(); error_reporting($oldlevel); return $errors;
Thanks.
Comment