I have searched through and read every post here with phpadsnew in it but can't find anything that actually tells me how to make it work. I have an installation and put the code in my header template, but no banner. Please help?
Thanks!
I have searched through and read every post here with phpadsnew in it but can't find anything that actually tells me how to make it work. I have an installation and put the code in my header template, but no banner. Please help?
Thanks!
This is probably something you'd need to ask in the phpadsnew forum. The only thing I can do to help you is ensure that you placed the code correctly, otherwise it's a phpadsnew issue.
Right now, that's what I need...to know where to place the code. I've used phpadsnew before and am familiar with it...I just don't think I'm putting the code in correctly to the template.
Thanks!
What template are you using? Can you post the code here? Don't post it all, just the phpadsnew bit plus a few lines above and below it.
I'm using Cleandex. Here's the code. We're headed out so please forgive if I don't respond again for a while.
HTML Code:<div class="header_left"><img src="<%$tpl_base%>/images/logo.gif" alt="" /></div> <div class="header_right"> <div class="block_header"> <div class="block_header_text"><%block_login%></div> </div> </div> <div class="clear_both"></div> <div align="center"><%php%> if (@include(getenv('DOCUMENT_ROOT').'/ads/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%></div> <div class="bgr_menu">
That should work fine where it is. I use google ads on a site that uses Cleandex and I actually put the ads after the </div> from bgr_menu.
I would consider changing getenv('DOCUMENT_ROOT').'/ads/phpadsnew.inc.php' to be the actual path (ie http://www.yoursite.com/ads/phpadsnew.inc.php).
Other than that I haven't used phpadsnew in years so I couldn't help you further.
Its been about a year since I've used phpAdsNew, but if I remember correctly, they had multiple formats you could generate for code. Have you tried using the javascript or HTML code???
I agree with Bruce too, change the path to the full URL![]()
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
Follow Us On Twitter | FaceBook Profile | YouTube Videos
You know, I wondered when I saw it. I used Fantastico for installation so I didn't even download any files and didn't read anything. I'll go back and look at it again.
Thanks!