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
/* // 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...
<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.
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.
I tried what you said and now instead of 4 commas at the bottom of the page, it shows ?> and that is it...
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?
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.