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.

Ads not showing

Discussion in 'Co-op Advertising Network' started by toddmc, Dec 8, 2004.

  1. #1
    I can't get the Ads to show up. I'm not familiar with PHP at all.

    I created the following and placed them in the root:
    ad_network.php
    ad_network_ads.txt

    Here's what I'm trying to paste into my PHP file:

    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('http://www.countrycritter.com/ad_network.php');
    echo $ad_network[0];

    Am I missing something? I still can't get it to validate my URL.
     
    toddmc, Dec 8, 2004 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
    #2
    Don't modify the PHP code you paste (why did you add your domain into the include path?)
     
    digitalpoint, Dec 8, 2004 IP
  3. toddmc

    toddmc Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I thought that's what I needed to do? I'm not familiar with PHP at all.
     
    toddmc, Dec 8, 2004 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
    #4
    Nope... don't change the PHP code. :)
     
    digitalpoint, Dec 8, 2004 IP
  5. toddmc

    toddmc Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    if you click on the "recover password" link at the bottom on the left hand side you can see it's not working properly. I'm not sure how to fix that.
     
    toddmc, Dec 8, 2004 IP
  6. toddmc

    toddmc Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Actually I just update the file and now the ads are not showing at all. Before it was just showing the code <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    echo $ad_network[0];
    ?>

    now it's not showing anything.
     
    toddmc, Dec 8, 2004 IP
  7. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #7
    Not sure what to look for, I don't see any errors or anything when I look. Is your existing PHP system suppressing errors by default maybe?
     
    digitalpoint, Dec 8, 2004 IP
  8. toddmc

    toddmc Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Here's what my code looks like:

    <tr height=22 valign=center align=right>
    <td class=Bottom>
    <table border=0 width=100% cellpadding=0 cellspacing=0><tr>
    <td class=Bottom></td>
    <td class=Bottom align=center>{include file="copyright.tpl"}</td>
    </tr></table>
    </td>
    </tr>
    </table>

    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    echo $ad_network[0];
    ?>

    It may not be a code issue...I may be missing a file or something.

    I've got the ad_network.php in the root and the ad_network_ads.txt in the root.

    Now the file that I'm adding the

    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    echo $ad_network[0];
    ?>

    is not in the root it's a couple of directories down. Would that make a difference? Should I add the ad_network.php and the ad_network_ads.txt in the directory with the file that is displaying the:

    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    echo $ad_network[0];
    ?>
     
    toddmc, Dec 8, 2004 IP
  9. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #9
    It looks like it's a template system rather than an actual PHP file. In that case, you might have to dig a little deeper into your template system in order to figure out how to pass variables to a template.
     
    digitalpoint, Dec 8, 2004 IP
  10. toddmc

    toddmc Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Can I create just a php file and have it included in that template?
     
    toddmc, Dec 8, 2004 IP
  11. toddmc

    toddmc Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Strange. I got it to work in my links directory you can view the links page at the bottom of any page. When I went to validate my site it's still giving me a:

    Account not not yet activated. | Site failed automatic validation as of 2004-12-08 (make sure URL and site type is correct - if everything is correct, make a request in the forum for assistance).
     
    toddmc, Dec 8, 2004 IP
  12. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #12
    If your template system supports it, yes.
     
    digitalpoint, Dec 8, 2004 IP