View Full Version : quick help with php adsnew
mmastation
10-10-2006, 03:35 PM
is is possible to use phpadsnew inside phpld? There is a banner spot on my site www.mmatoday.com (http://www.mmatoday.com) and I want to rotate a few banners there is it possible to use phpadsnew so that it shows random banners Ive selected or is there another method?
mmastation
10-10-2006, 04:02 PM
I believe this is the code I have to insert in the banner spot
<?php
if (@include(getenv('DOCUMENT_ROOT').'/advertising/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:1', 0, '', '', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
?>
what do I have to do to get it to work?
try:
{php}
if (@include(getenv('DOCUMENT_ROOT').'/advertising/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:1', 0, '', '', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
{/php}
mmastation
10-10-2006, 04:39 PM
and insert that in the banner spot?
mmastation
10-10-2006, 04:43 PM
got it. thank you very much kind sir.
eurodata
10-13-2006, 07:39 PM
i was reading this and i find it interesting point, so could you please clarify where to insert the code, you said the banner spot, but in which file?
thank you and most appreciated
http://www.autotrader-direct.com free site submissions to these sites..
http://www.theclassifieds.org.uk
http://www.eurodatagb.com/directory
banner should be in top_bar.tpl
vBulletin® v3.8.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.