Quote:
Originally Posted by tuslic
I tried to add this under the navbar but I keep gettin an error
Code:
<?php
if (@include(getenv('DOCUMENT_ROOT').'/adver/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('', 0, '', '', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
?>
and this is the error i get
The following error occurred when attempting to evaluate the template 'headinclude':
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/tuslic/public_html/board/includes/adminfunctions_template.php(3596) : eval()'d code on line 45
This is likely caused by a malformed conditional statement.
how would i add the ad under the navbar?
|
that code is buggy.If you use an adserver like phpAdsNew you should let phpAdsNew generate the code and carefull look for missing {'"}() etc etc also be carefull with spaces & blank lines last but not least not so long ago a serious security hole whas found in phpAdsNew make sure you are running the latest version
also .....
you cannot run raw php code in a vBulletin template (not by default) .... the "@" has a special meaning and should not be used normally