Site Won't Validate (but ads in my archives appear)???

Discussion in 'Co-op Advertising Network' started by LeeD, Feb 15, 2005.

  1. #1
    Software: vBulleting 3.0.6

    Site: www.performancepark.com/forums

    Ads: Text Only

    Okay, I spent 3 hours with a friend of mine trying to install everything for the ad network. We have triple checked everything and we cannot figure it out. On our archived pages, the ads show up great (at the bottom - text only ads), but on the main forum pages all we see is commas (like 4 of them). We have gone back through each of the steps in the instructions and it seems we have it all right. What do I do?

    Thanks for you help!

    Lee
    Speedpro50
     
    LeeD, Feb 15, 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
    Are you sure you have the include statement in your phpinclude_start template?
     
    digitalpoint, Feb 15, 2005 IP
  3. LeeD

    LeeD Well-Known Member

    Messages:
    686
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    110
    #3
    /*
    // Example of how to include a seperate file:

    ob_start();
    include('yourheader.html');
    $your_code = ob_get_contents();
    ob_end_clean();

    include ('ad_network.php');

    // Now place a reference to $your_code where you want the resulting HTML to be displayed.
    // This will most likely be the header or footer template.
    */

    This is what it says in the phpinclude_start...
     
    LeeD, Feb 15, 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
    That should be all you need. What's the code you added to your footer template?
     
    digitalpoint, Feb 15, 2005 IP
  5. SportsOutlaw

    SportsOutlaw Active Member

    Messages:
    952
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    70
    #5
    <center>

    $ad_network[0], $ad_network[1], $ad_network[2], $ad_network[3], $ad_network[4]
    </center>

    this is what he has. He copied it straight from what was put in my file.
     
    SportsOutlaw, Feb 15, 2005 IP
  6. LeeD

    LeeD Well-Known Member

    Messages:
    686
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    110
    #6
    Here is the portion of the footer code containing your code...

    </if>
    <script type="text/javascript">
    <!--
    // Main vBulletin Javascript Initialization
    vBulletin_init();

    // Initialize 'Active' Table Cells
    //activecells_init();
    //-->
    </script>

    <center>

    $ad_network[0], $ad_network[1], $ad_network[2], $ad_network[3], $ad_network[4]

    </center>


    This is all from the very end of the footer...Thanks for your help as I am eager to get this up and running.
     
    LeeD, Feb 15, 2005 IP
  7. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #7
    the footer template is PHP parsed (for variables), so it should be fine.
     
    digitalpoint, Feb 15, 2005 IP
  8. LeeD

    LeeD Well-Known Member

    Messages:
    686
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    110
    #8
    I tried what you said and now instead of 4 commas at the bottom of the page, it shows ?> and that is it...
     
    LeeD, Feb 15, 2005 IP
  9. LeeD

    LeeD Well-Known Member

    Messages:
    686
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    110
    #9
    So what do you think the problem is?
     
    LeeD, Feb 15, 2005 IP
  10. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #10
    Sorry, I don't...
     
    digitalpoint, Feb 15, 2005 IP
  11. LeeD

    LeeD Well-Known Member

    Messages:
    686
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    110
    #11
    Who will be able to help me then?
     
    LeeD, Feb 15, 2005 IP
  12. SportsOutlaw

    SportsOutlaw Active Member

    Messages:
    952
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    70
    #12
    I can understand why this isnt working. If it works in the archives, what could cause it to not work in other places? The php and txt files have to be in the right place if ads show up in the archives, don't they?
     
    SportsOutlaw, Feb 15, 2005 IP
  13. SportsOutlaw

    SportsOutlaw Active Member

    Messages:
    952
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    70
    #13
    For anyone who was watching on and had no clue like the rest of us... :)

    The above code in the include file is where the problem was. Changed it to
    // Example of how to include a seperate file:
    // ob_start();
    // require("yourheader.html");
    // $header = ob_get_contents();
    // ob_end_clean();
    include ('ad_network.php');
    Code (markup):
    and that fixed the problem. I don't know enough about this stuff to understand why that fixed it, but it did.
     
    SportsOutlaw, Feb 15, 2005 IP
  14. LeeD

    LeeD Well-Known Member

    Messages:
    686
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    110
    #14
    Yeah, what he said! YEAH! IT WORKS!
     
    LeeD, Feb 15, 2005 IP