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.

ad_network PHP File Update

Discussion in 'Co-op Advertising Network' started by digitalpoint, Mar 31, 2005.

  1. zmsan

    zmsan Active Member

    Messages:
    90
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #161
    Are people receiving less weight if they haven't updated to this yet? Sites seem to still validate. Just wondering.
     
    zmsan, May 7, 2005 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #162
    Yes... but they will son stop validating.
     
    digitalpoint, May 7, 2005 IP
  3. zmsan

    zmsan Active Member

    Messages:
    90
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #163
    Yes they are receiving less weight? Or yes they are still validating.
     
    zmsan, May 8, 2005 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #164
    Yes they still validate.
     
    digitalpoint, May 8, 2005 IP
  5. mjewel

    mjewel Prominent Member

    Messages:
    6,693
    Likes Received:
    514
    Best Answers:
    0
    Trophy Points:
    310
    #165
    The sticky talks about a new version and the need to update but doesn't give the version number. I am sure I have updated since this post was first made, but the absense of a version number makes it a little confusing.

    What is the difference between the file names ad_network_265.php and ad_network_268.php?

    I added a site the other day and the version was 265.php with "Last update: May 2, 2005 8:45 pm"

    Now I see it it is showing 268.php with "Last update: May 2, 2005 8:45 pm"?

    I also have a site using ad_network_235.php. Is it critical to update with every version change?

    Would it be possible to have the first post in the sticky show the version number that MUST be updated to?

    Thanks.
     
    mjewel, May 26, 2005 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #166
    There isn't specific version numbers, just the stamp it was last updated.
     
    digitalpoint, May 26, 2005 IP
  7. mjewel

    mjewel Prominent Member

    Messages:
    6,693
    Likes Received:
    514
    Best Answers:
    0
    Trophy Points:
    310
    #167
    Ok, so there is no difference between 265 and 268 because they have the exact creation date and time....... but what is the critical update "creation date" i.e. the 233.php file says "Apr 5, 2005" should I go and change all my pages to the May 2, update because the April 5 version will soon stop working?
     
    mjewel, May 26, 2005 IP
  8. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #168
    I think the May 2 one was just dropping the file_get_contents function for people that has servers not setup for it, so you should be fine.
     
    digitalpoint, May 26, 2005 IP
  9. mjewel

    mjewel Prominent Member

    Messages:
    6,693
    Likes Received:
    514
    Best Answers:
    0
    Trophy Points:
    310
    #169
    Gotcha. Thank you.
     
    mjewel, May 26, 2005 IP
  10. Haichi

    Haichi Well-Known Member

    Messages:
    293
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    128
    #170
    I'm about to update my code to the latest ad_network_269.php

    can someone help me with the code to add to my html pages for 5 ads
    with this set up?

    ad1 | ad2 | ad3 | ad4 | ad5


    I have about 2,000 pages to do copy paste style :)
    I don't want to mess up and having to do it over again thanks
     
    Haichi, May 27, 2005 IP
  11. l234244

    l234244 Peon

    Messages:
    1,225
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    0
    #171
    l234244, May 27, 2005 IP
  12. Haichi

    Haichi Well-Known Member

    Messages:
    293
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    128
    #172
    it never worked for me last time I tried it...

    maybe I should give it another try it would help when the co-op updates again

    I just need to know how to make it a 5 ads code
     
    Haichi, May 27, 2005 IP
  13. l234244

    l234244 Peon

    Messages:
    1,225
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    0
    #173
    Below the ad_network.php code in the setup instructions there is a box which allows you to choose how many text links you want to display.
     
    l234244, May 27, 2005 IP
  14. lakrasia

    lakrasia Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #174
    Firstly, you should really put the code into either an include file or the template - you surely aren't serious about copy pasting 2,000 times.

    Use ad type - only text link
    Number of ads - 5
    Then type | in the "separate ads with" box.
     
    lakrasia, May 27, 2005 IP
  15. Haichi

    Haichi Well-Known Member

    Messages:
    293
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    128
    #175
    I just tried the passthru method but my pages are showing no ads

    I have to find a way to get the passthru to work I know I must be making an error that I have not been able to see

    using this

    <?php

    if (!function_exists('file_get_contents')) {
    function file_get_contents($url) {
    $handle = fopen($url, 'r');
    $string = fread($handle, 4096000);
    fclose($handle);
    return $string;
    }
    }

    include ('ad_network_269.php');
    echo preg_replace ("/<\/body>/i", '<p class="mnlinkbar">' . $ad_network[0]. ' - ' . $ad_network[1]. ' - ' . $ad_network[2] . ' - ' . $ad_network[3] . ' - ' . $ad_network[4] . '</p></body>', file_get_contents(str_replace ('../', '', $_REQUEST['file'])));
    ?>


    all I get on every page is

    < - a - - h - r
     
    Haichi, May 27, 2005 IP
  16. l234244

    l234244 Peon

    Messages:
    1,225
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    0
    #176
    What is the url?
     
    l234244, May 27, 2005 IP
  17. Haichi

    Haichi Well-Known Member

    Messages:
    293
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    128
    #177
    I quit the passthru


    http://www.digitalpoint.com/tools/ad-network/setup.php?type=99

    text only 5 ads but the code never updates or refresh in my browser

    edit:

    so I found my stupid mistake it refreshed the box above it I was trying to see the code for 5 ads. but the ad_network_269.php
     
    Haichi, May 27, 2005 IP
  18. SpeedyDomainRegistration

    SpeedyDomainRegistration Peon

    Messages:
    170
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #178
    Shawn,

    Is there any chance that the code will be ported to perl?
     
  19. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #179
    Nope, no chance (not by me anyway).
     
    digitalpoint, Jun 8, 2005 IP
  20. a389951l

    a389951l Must Create More Content

    Messages:
    1,885
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    140
    #180
    Have you tried this thread for perl - it works great so far.
     
    a389951l, Jun 8, 2005 IP