vBulletin 3.0.6 Problem

Discussion in 'Co-op Advertising Network' started by arlene, Mar 24, 2005.

  1. #1
    I am using VB 3.0.6, but in your setup it states to use:

    
    include ('ad_network_205.php');
    
    Code (markup):
    VB states you have to use this variable for includes to work:

    
    /*
    // Example of how to include a seperate file:
    
    ob_start();
    include('yourheader.html');
    $your_code = ob_get_contents();
    ob_end_clean();
    
    // 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.
    */
    
    Code (markup):
    So I made it like this....

    
    ob_start(); 
    include ('ad_network_205.php');
    $ad_network[0] = ob_get_contents();
    ob_end_clean(); 
    
    Code (markup):
    I set the ad_network_205.txt file to 666, included $ad_network[0] on all the required pages and added the following to the index.php file in the archive folder:

    
    <div class="pagebody">
    <?php
    
    include ('ad_network_205.php');
    echo $ad_network[0];
    
    Code (markup):
    No ads are displayed. Could it be that vb 3.0.6 requires a different way of including files?
     
    arlene, Mar 24, 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
    Use the instructions from the setup page.
     
    digitalpoint, Mar 24, 2005 IP
  3. arlene

    arlene Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I already did. From my post above, what am I missing?
     
    arlene, Mar 24, 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
    You don't need any of that ob_* stuff...
     
    digitalpoint, Mar 25, 2005 IP