What does this part of the ad_network.php code do?

Discussion in 'Co-op Advertising Network' started by mream, Mar 22, 2005.

  1. #1
    I'm getting funny "class" parameters inserted into my links at:

    http://www.raiseyourpulse.com

    I'm using the same code that, by itself, shows the ads correctly. However, in my template, this extra class variable is inserted. I suspect it may be coming from this part of the code. Can anyone tell me why?

    This is the html code it's generating:

    Does anyone know what I can do?

    Thanks,
     
    mream, Mar 22, 2005 IP
  2. john_loch

    john_loch Rodent Slayer

    Messages:
    1,294
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    138
    #2
    That's certainly an odd one. I think the classes are/were present to uniquely id the ads when a site is validated. The class references were (the last time i looked) numeric in nature though - unless your post has been munged to enforce formatting).

    Either way - what you've posted shouldn't be happening.

    Perhaps you have it - but I'd be inclined to see that you have the lastest code.

    Cheers,

    JL
     
    john_loch, Mar 22, 2005 IP
  3. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #3
    You sure you are using an up to date ad_network file?
     
    digitalpoint, Mar 22, 2005 IP
  4. mream

    mream Guest

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    This is the start of the file I'm using:

     
    mream, Mar 22, 2005 IP
  5. mream

    mream Guest

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    That's the most recent file, right?
     
    mream, Mar 23, 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
    Yep... are you sure you didn't edit it?
     
    digitalpoint, Mar 23, 2005 IP
  7. mream

    mream Guest

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    No editing. Copied it straight into Notebook and saved it as a php file.
     
    mream, Mar 23, 2005 IP
  8. mream

    mream Guest

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yep. No changes whatsoever. Nada. Nichts. Zip. el Zilcho.
     
    mream, Mar 24, 2005 IP
  9. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #9
    No idea, sorry...
     
    digitalpoint, Mar 24, 2005 IP
  10. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #10
    Interesting footer ya got there...

    
    e design by: 2TC Network 	Copyright © 2002-2005 RaiseYourPulse.com  
    ad_network.php file needs updating" />Black light posters | ad_network.php file needs updating" />DVD Rental | ad_network.php file needs updating" />Sony PSP | ad_network.php file needs updating" />Black light posters | ad_network.php file needs updating" />Elliptical Trainers
    
    
    PHP:
     
    noppid, Mar 24, 2005 IP
  11. mream

    mream Guest

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Exactly what I'm trying to get rid of... The "ad_network..." stuff gets added with the "class" variable.
     
    mream, Mar 24, 2005 IP
  12. mclaymon

    mclaymon Peon

    Messages:
    12
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Try to clear your txt file
     
    mclaymon, Mar 24, 2005 IP
  13. mream

    mream Guest

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I started with a clean text file, and got the error.

    I cleared it out to make sure, and it looked like it was working at first, however, when I opened a new window, I was still getting the error. And when I refresh the original window, where it was working, it stopped working.

    It appeared to be about when I went from one ad being shown five times, to having different ads. Would that have anything to do with it?
     
    mream, Mar 25, 2005 IP
  14. mream

    mream Guest

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    I know, it seems strange, but nevertheless, that's what seems to be happening.
     
    mream, Mar 26, 2005 IP
  15. mream

    mream Guest

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    It's very curious, indeed.
     
    mream, Mar 28, 2005 IP
  16. sadcox66

    sadcox66 Spirit Walker

    Messages:
    496
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Have not studied the code in depth.

    Is it possible a variable (global like $ads_temp ) is used both by Shawns coop files and the one generated by your template

    Have not looked at your site yet
     
    sadcox66, Mar 28, 2005 IP
  17. mream

    mream Guest

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Still no solution to this...

    One other thing... in the week or whatever it was since I started with a new .txt file, I only got two ads in it. Shouldn't that be a bunch more?

    Just now I did a test... I have a file, coop.php, that just runs the ads:

    http://www.raiseyourpulse.com/coop.php

    That works fine. When I first go to my main site: http://www.raiseyourpulse.com, the ads from the coop.php file are there and look normal. However, upon refresh, I start getting that error. So as far as the low number of ads in the .txt file, it appears to be a result of the code not working on my main site, just on the coop.php page.

    Does that give anyone any ideas on what I can check next?
     
    mream, Mar 31, 2005 IP
  18. Cyber-SEO

    Cyber-SEO Member

    Messages:
    68
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #18
    If it works alone and not within your site them there may be some sort of issues with the variables. Try changing the varible names and see if that helps any.
     
    Cyber-SEO, Mar 31, 2005 IP