XHTML Validation of Ads

Discussion in 'Co-op Advertising Network' started by THT, Jun 4, 2005.

  1. #1
    The links in the Ads are in this format:

    
    
    <a href="http://cheese.com" />Cheese</a>
    
    
    Code (markup):
    The W3c Validator cries at this, as the anchor tag is closed twice.

    Or am i just being an idiot?
     
    THT, Jun 4, 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
    They don't look like that to me. Are you using the unmodified PHP version?
     
    digitalpoint, Jun 4, 2005 IP
  3. THT

    THT Peon

    Messages:
    686
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    THT, Jun 4, 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
    Hmmm... something is strange with your setup. Are you running a back-end proxy server by chance?
     
    digitalpoint, Jun 4, 2005 IP
  5. THT

    THT Peon

    Messages:
    686
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    no idea... it used to work... a few versions ago
    how can i fix this?

    is it worth clearing out my ads.txt file?
     
    THT, Jun 4, 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
    No... doesn't look like it's an issue with the cache file, but how the server is setup. You may want to check if they have a caching or proxy server between the Internet and the physical server.
     
    digitalpoint, Jun 4, 2005 IP
  7. THT

    THT Peon

    Messages:
    686
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #7
    SHawn,

    its to do with this bit of code:

    if ($output) {
    				$ad_network[$key] = str_replace ('" />', '" class="' . $ads_temp[2] . '" />', $ad);
    			} else {
    				$ad_network[$key] = str_replace ('" />', '">', $ad);
    			}
    PHP:
    I replaced it so it just did:

    $ad_network[$key] = str_replace ('" />', '">', $ad);
    PHP:
    and it fixed it...
     
    THT, Jun 5, 2005 IP
  8. THT

    THT Peon

    Messages:
    686
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #8
    but now it doesnt validate - HELP!!!
     
    THT, Jun 5, 2005 IP
  9. THT

    THT Peon

    Messages:
    686
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Shawn:

    if ($output) { 
                    $ad_network[$key] = str_replace ('" />', '" class="' . $ads_temp[2] . '" />', $ad); 
                } else { 
                    $ad_network[$key] = str_replace ('" />', '">', $ad); 
                } 
    PHP:

    changed to:
    
    if ($output) { 
                    $ad_network[$key] = str_replace ('" />', '" class="' . $ads_temp[2] . '" >', $ad); 
                } else { 
                    $ad_network[$key] = str_replace ('" />', '">', $ad); 
                } 
    PHP:

    works and validates.

    The code actually replaces in a "/>" symbol....
     
    THT, Jun 6, 2005 IP