Framed page exclusion

Discussion in 'Co-op Advertising Network' started by nightmare5liter, Jun 3, 2005.

  1. #1
    Could someone help me please? I need some code to exclude ads from showing inside a framed page. I'm not good with php but i tried to get this to work with no luck. Initially the framed pages were not meant to be viewed outside of the frame page but for my site to validate ads had to be on these pages. Not much of an issue yet since I dont get much traffic but if or when I get out of the sandbox it may be an issue.

    I'm looking for something along the lines of if frame=0 (skip ad network code)
    else (show ad network code)

    Co-op adds are included in a footer with ssi.

    I am sure there is a simple solution here but like I said I just started learning php.
     
    nightmare5liter, Jun 3, 2005 IP
  2. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I believe they need to be in every distinct file that is viewable on the site...
     
    ServerUnion, Jun 3, 2005 IP
  3. nightmare5liter

    nightmare5liter Guest

    Messages:
    79
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Right but I am looking for code that will exclude the ads only when the page is shown outside the framed page. Framed page will still have ads because it includes the same footer.
     
    nightmare5liter, Jun 3, 2005 IP
  4. wendydettmer

    wendydettmer Peon

    Messages:
    1,462
    Likes Received:
    70
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If google ever indexes the page though, then you run the risk of not validating because it technically wont' be on the page.
     
    wendydettmer, Jun 3, 2005 IP
  5. nightmare5liter

    nightmare5liter Guest

    Messages:
    79
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    O.K. I guess there is some confusion here. All the pages are indexed by google, that is why I had to put the ads on all the pages but I want some code that will allow the ads to show only when the pages are viewed individually. When the pages are loaded into the frame the page with the frame has ads on it but the framed pages are also showing the ads. Look at the page and you will see what I mean http://www.dvdwebzone.com/main/dvdrentaltool.shtml
     
    nightmare5liter, Jun 3, 2005 IP
  6. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #6
    We understand the concept. Might want to try a design that doesn't use frames, will help the useability of the site...
     
    ServerUnion, Jun 3, 2005 IP
  7. nightmare5liter

    nightmare5liter Guest

    Messages:
    79
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Yes I suppose the design should be changed. Guess I could use mysql and php to get the same effect. Still would like to know a way to do this though with the original design.
     
    nightmare5liter, Jun 3, 2005 IP
  8. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #8
    That would be pushing the TOS of the coop
     
    ServerUnion, Jun 6, 2005 IP