Results 1 to 8 of 8

Thread: phpadsnew...where are my banners?

  1. #1
    Join Date
    Jan 2008
    Posts
    46

    Default phpadsnew...where are my banners?

    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!

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    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.

  3. #3
    Join Date
    Jan 2008
    Posts
    46

    Default

    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!

  4. #4
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    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.

  5. #5
    Join Date
    Jan 2008
    Posts
    46

    Default

    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">

  6. #6
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    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.

  7. #7
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    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

  8. #8
    Join Date
    Jan 2008
    Posts
    46

    Default

    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!

Similar Threads

  1. Banners
    By Webfriend in forum Tutorials, Hints & Tips
    Replies: 7
    Last Post: 08-31-2007, 06:29 PM
  2. Banners/ads
    By Bruceper in forum v5.x
    Replies: 3
    Last Post: 03-09-2007, 04:32 PM
  3. phpadsnew?
    By persut in forum v5.x
    Replies: 6
    Last Post: 01-03-2004, 10:09 PM
  4. Replies: 3
    Last Post: 07-26-2003, 11:07 PM
  5. Banners relevant to category
    By Phil Latio in forum v5.x
    Replies: 1
    Last Post: 01-24-2002, 07:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •