Site displaying "Array" where ads should be

Discussion in 'Co-op Advertising Network' started by duilen, Feb 19, 2005.

  1. #1
    I followed all the instructions from this forum to get my forum to display ads for Invision 1.3.1. No matter what I do my site diplays "array" where the ads should be.

    This is the link to my forum http://free-seo.lyonscraft.com

    Any ideas?
     
    duilen, Feb 19, 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
    What is the code you put on your pages exactly?
     
    digitalpoint, Feb 19, 2005 IP
  3. photo_shooter

    photo_shooter Guest

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I had that problem once when upgrading to a newer version of the file.

    You will need to display the ad with and array element like: echo $ad_network[0];
     
    photo_shooter, Feb 19, 2005 IP
  4. duilen

    duilen Active Member

    Messages:
    354
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #4
    This is the code I added to functions.php.

    	$ibforums->skin['template'] = str_replace( "<% NAVIGATION %>"     , $nav                     , $ibforums->skin['template']);
    // Second custom mod for coop ad network - places ad in skin wrapper
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    $ibforums->skin['template'] = str_replace( "<% COOP.AD.NETWORK %>"	 , $ad_network					 , $ibforums->skin['template']);
    Code (markup):
    I copied the 2 files and placed them in the appropriate dir with chmod 777 on the text file. (ads work on another section of my site so I doubt this is the problem)

    Then I edited my board wrapper to look like this.

    <% BOARD %> 
    
    <% STATS %> 
    
    <% COOP.AD.NETWORK %>
    <div class='border'><% COPYRIGHT %></div>
    
    </div>
    
    </body> 
    
    </html>
    Code (markup):
     
    duilen, Feb 19, 2005 IP
  5. duilen

    duilen Active Member

    Messages:
    354
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #5
    Still no reply...
     
    duilen, Feb 26, 2005 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    You would need to be using a supported method (from the setup instructions) in order to receive help.
     
    digitalpoint, Feb 26, 2005 IP
  7. photo_shooter

    photo_shooter Guest

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You can try replacing $ad_network in your code with $ad_network[0]
     
    photo_shooter, Mar 1, 2005 IP