Ads don't want to show up in some directories?

Discussion in 'Co-op Advertising Network' started by cspot, Jan 29, 2006.

  1. #1
    My ads work well in the root directory and some sub directories but don't work in some others?

    The code is the same in two directories but only work ok in one.

    Any answer?
     
    cspot, Jan 29, 2006 IP
  2. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #2
    No answer unless you post the url so we can know what you are talking about
     
    fryman, Jan 29, 2006 IP
  3. cspot

    cspot Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Well.. It sure can help if you can see the site. :)

    So here it is.

    The site: www.cartoonspot.net

    Everything is ok in the site's root and in this direcroty:
    http://www.cartoonspot.net/cartoons-directory/

    but in other directories like this one:

    It doesn't work? :confused:
    http://www.cartoonspot.net/looney-tunes/looney-tunes-picture.php

    and yes, I did "copy and paste" the same code from the (cartoons-directory/) to this direcrory (looney-tunes/).

    What can be the problem?
     
    cspot, Jan 30, 2006 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    Try using the full file path in your include statement and also when referencing your .txt file in the ad network PHP file.
     
    digitalpoint, Jan 30, 2006 IP
  5. cspot

    cspot Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It still doesn't work.

    I have tried :
    <--------

    if (!isset($_SERVER)) $_SERVER = $HTTP_SERVER_VARS;

    $ad_file = 'http://www.cartoonspot.net/ad_network_ads_151.txt';
    for ($i = 0; $i <= 11; $i++) {

    -------->


    I wonder if the domain and sub domain could be the problem?

    The "looney-tunes" directory is a sub domain too. (www.looney-tunes.cartoonspot.net)

    May be the Digital Point ads system see it as an other site.


    Is it possible?

    thanks.

    It really looks to be what I tought.

    According to DP:

    """"
    Create a file named ad_network_153.php in the main directory of your site (if your registered site URL is a sub-directory of the domain, it should go in that sub-directory):

    """"

    well... If I have registred a Domain (www.mydomain.com) but one of my directory is a sub-domain like: www.lalala.mydomain.com

    Do I have to create an other account for this sub-domain? (www.lalala.mydomain.com)

    At first sight, I think so.
     
    cspot, Jan 31, 2006 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    The full FILE path (not URL) in the include statement.

    Yes, you would need a different account per subdomain.
     
    digitalpoint, Jan 31, 2006 IP
  7. cspot

    cspot Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks for your help!

    I'll work on it.
     
    cspot, Feb 1, 2006 IP