Ads showing twice on same page

Discussion in 'Co-op Advertising Network' started by zman, Nov 29, 2005.

  1. #1
    zman, Nov 29, 2005 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Are you echoing out $ad_network more than once somehow?
     
    digitalpoint, Nov 29, 2005 IP
  3. zman

    zman Peon

    Messages:
    3,113
    Likes Received:
    180
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Lower right I meant. :cool:

    Shawn, I cannot find it being anywhere a second time.
     
    zman, Nov 29, 2005 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
    Okay... The place you are echoing it (that you know about), change it to:
    echo '<!-- point1 -->' . $ad_network . '<!-- point2 -->';
    PHP:
    Then we can at least see make sure it's not being echoed out again somewhere else.
     
    digitalpoint, Nov 29, 2005 IP
    zman likes this.
  5. zman

    zman Peon

    Messages:
    3,113
    Likes Received:
    180
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Added it in
     
    zman, Nov 29, 2005 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
    It's being echoed out twice somewhere (and not from the same bit of code being called twice). If you look at the source, only the 2nd set has the comment code we just added wrapping it.

    Towards the end of the ad_network PHP file, there is a line that echos out the $ad_network variable, but it's supposed to only be called if you are doing an SSI style include. But just to check to see if for some reason the script thinks it's SSI, try removing that echo line from the ad_network PHP file.
     
    digitalpoint, Nov 29, 2005 IP
  7. zman

    zman Peon

    Messages:
    3,113
    Likes Received:
    180
    Best Answers:
    0
    Trophy Points:
    0
    #7
    That did it. :)

    Thanks so much Shawn!
     
    zman, Nov 29, 2005 IP
  8. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #8
    Hmmmm... weird that it thought it was an SSI page.
     
    digitalpoint, Nov 29, 2005 IP
  9. zman

    zman Peon

    Messages:
    3,113
    Likes Received:
    180
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Either way I'm happy! :D
     
    zman, Nov 29, 2005 IP