1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

AdNetwork ASP Code

Discussion in 'Co-op Advertising Network' started by Cyber-SEO, Dec 28, 2004.

  1. michail1

    michail1 Peon

    Messages:
    86
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #121
    The file is only 184 lines, so the error is within the file you are including from. You will have to check your code to see what is at 193.
     
    michail1, Oct 18, 2005 IP
    LaCabra likes this.
  2. LaCabra

    LaCabra Goats R Us

    Messages:
    1,954
    Likes Received:
    241
    Best Answers:
    0
    Trophy Points:
    0
    #122
    Michail1 - Great job on the ASP script. I really appreciate your efforts!
    cheers
    Frank
     
    LaCabra, Oct 20, 2005 IP
  3. michail1

    michail1 Peon

    Messages:
    86
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #123
    Hello,
    No problem; however, I didn't write it. I just kind of support it and help people.
    It's been working for a long time, so, mostly I just tell people it is still working. :)
     
    michail1, Oct 20, 2005 IP
  4. LaCabra

    LaCabra Goats R Us

    Messages:
    1,954
    Likes Received:
    241
    Best Answers:
    0
    Trophy Points:
    0
    #124
    Hi Michail,:)

    It is great to see that you have taken the initiative to do so. Many months ago when the functionality of the script went down the toilet, I offered to pay or hire someone to write/modify/maintain the script and no one seemed interested at the time. I don't know if it is because they didn't take me seriously or what?

    That being said, I am EXTREEMLY APPRECIATIVE of your efforts and I am willing to make this offer to you in order to maintain the ASP version of the COOP functional for all members. If you are interested in maintaining the script and getting paid for it please PM me. My intentions are NOT to make members pay for the script but to have a stable and well maintained script which in the long run will benefit all of us in the COOP.

    Please PM or email me to discuss and make arrangements.

    Thanks again!
    Frank
     
    LaCabra, Oct 22, 2005 IP
  5. Dan

    Dan Active Member

    Messages:
    317
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #125
    Thanks Michail1 that works brilliantly... I was up and running in 30 minutes! :)
     
    Dan, Oct 25, 2005 IP
  6. michail1

    michail1 Peon

    Messages:
    86
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #126
    sayles - Ummm, I will keep supporting it for as long as I can. Hey, if nothing changes, then all is good. Most of my sites are now PHP. Only 2 are ASP and one of them is going to convert soon. :( Guess we will see what happens.

    Dan - No problem. Glad you got it running.
     
    michail1, Oct 26, 2005 IP
  7. Dan

    Dan Active Member

    Messages:
    317
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #127
    Hi michail1,

    I'm just going through the ASP code, and I've noticed that within the ad_network() function, it seems to allways execute the line 'Response.Write "<img src=""http://ads.digitalpoint.com/t" & id_string & ".gif"" width=""1"" height=""1"">"'.

    If the tracking code is always created like this, won't it mean that hits by spiders will contain the co-op network footprint, and be ignored / penalised?

    Also, this will mean that spider page hits will be counted by the network as regular page impressions and distort people's stats.

    Is there any way to only include the tracking image link when the user agent isn't a spider like the PHP version apparently does?
     
    Dan, Nov 2, 2005 IP
  8. michail1

    michail1 Peon

    Messages:
    86
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #128
    Dan,
    The same code it output on the PHP version as well.
    asp 213 is the same results as the php 213 version.

    I have both running and pulling from the same caching file. Same source on both pages. So, yes, it could be seen as a footprint to dps, but that's the way it is for both php and asp versions.

    Being that they are both the same, yes, the site could be ignored/penalized based this footprint. A LOT of people would be upset about it to.

    Spiders: I guess this would be the case; however, it will evenly distort.

    Topic: The ASP code is converted from PHP to ASP. So, I think your questions would be best answered on the PHP side of the forum since 99% of people are looking over there. (More likely to get a good answer regarding blocking spiders)
     
    michail1, Nov 2, 2005 IP
  9. Dan

    Dan Active Member

    Messages:
    317
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #129
    Hi michail1,

    I've just taken a quick look at the current PHP code, and it DOES differentiate between spiders & humans, and only displays the tracking image to the latter.

    This is an example of the first entry from the cache (up to the first '<ad_break>');

    03/11/2005 00:45:03|216.9.35.51|us82jsdd|1000|1800|4|1|MSIE-Firefox-Safari-Netscape-Opera

    The section after the last pipe symbol defines the acceptable user agents.

    The PHP code only displays the tracking image if the user agent contains one of the terms in the dash seperated list at the end. That way the footprint is invisible to spiders, and stats will not be distorted.

    The fix should only be a couple of lines of code, and I'd be a lot happier personally to loose the co-op footprint for spiders!
     
    Dan, Nov 2, 2005 IP
  10. Dan

    Dan Active Member

    Messages:
    317
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #130
    Hi michail1,

    I've just implemented this change in my code;

    At the bottom of the ad_network() function replace this line;

    Response.Write "<img src=""http://ads.digitalpoint.com/t" & id_string & ".gif"" width=""1"" height=""1"">"

    With this;

    'Add tracking image only if the user is human not a spider
    if lcase(Request.ServerVariables("HTTPS")) <> "on" and ubound(spParam) >= 7 then
    arrAgents = split(spParam(7), "-")
    for iLoop = 0 to ubound(arrAgents)
    if instr(1, Request.ServerVariables("HTTP_USER_AGENT"), arrAgents(iLoop)) > 0 then
    Response.Write "<img src=""http://ads.digitalpoint.com/t" & id_string & ".gif"" width=""1"" height=""1"">"
    exit for
    end if
    next
    end if

    That will bring the ASP code in line with the latest PHP code and only display the tracking image when the user is human.
     
    Dan, Nov 3, 2005 IP
  11. michail1

    michail1 Peon

    Messages:
    86
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #131
    Hello. As you said, you looked at the current version. Again, this ASP version was a port from Version 213, not 248.

    Guess I will upgrade the ASP code I am using too. :)
     
    michail1, Nov 3, 2005 IP
  12. Design1

    Design1 Active Member

    Messages:
    388
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    78
    #132
    For all the .asp users out there.. i believe this thread needs a bump! I'm not a thread bumper, but I've seen a lot of requests for the code.
    :)
     
    Design1, Mar 15, 2006 IP
  13. michail1

    michail1 Peon

    Messages:
    86
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #133
    Hello,
    The ASP Code hasn't changed in forever. Still working strong.
     
    michail1, Mar 16, 2006 IP
  14. Design1

    Design1 Active Member

    Messages:
    388
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    78
    #134
    I added the code to all of my sites last night and it's all perfectly functional.
    Now all that is left is some praying to the Google Gods.
    Thanks!!! :)
     
    Design1, Mar 16, 2006 IP
  15. LaCabra

    LaCabra Goats R Us

    Messages:
    1,954
    Likes Received:
    241
    Best Answers:
    0
    Trophy Points:
    0
    #135
    you'll do fine!
    good luck!
     
    LaCabra, Mar 16, 2006 IP
  16. Openg

    Openg Peon

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #136
    I seem to have been around the forum ten times looking for the instructions on how to get the ASP code up and running, so sorry to be a pain, but where is it :D
     
    Openg, Apr 25, 2006 IP
  17. vividearth

    vividearth Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #137
    Is this code still valid?
     
    vividearth, May 18, 2008 IP
  18. vividearth

    vividearth Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #138
    Oh, and if so where can I get a copy?

    Thanks
     
    vividearth, May 18, 2008 IP
  19. indianseo

    indianseo Peon

    Messages:
    208
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #139
    I am also in search of a working ASP coop code. Please share with me if any one got it..
     
    indianseo, Jun 16, 2008 IP