Ok, the ads have to be included on the page through use of a phpinclude. I've included the file in my board wrapper, and the file named include.php just has this code in it. <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network.php'); echo $ad_network[0]; ?> Code (markup): Anywho, I want to try and run multiple ads on the page, but I've come across a bit of a problem. If I add, $ad_network[1]; etc. after that, the same ad just shows up loads of times. If I duplicate the include line in that for every different number, I still get the same effect. I also tried having different include files for each ad, but it didn't particularly like this probably due to the repitition of the include line. Anyway, any suggestions so I can get multiple ads?
No, was a couple days ago it was updated to always queue up 5 ads. If you have the following line in your ad_network.php file, then you have the right file: while (count ($ad_network) < 5) { PHP:
Yeah, I've got the right file alright. Any other ideas as to what it might be. At the moment, I've changed it back to just showing one ad, but I can change it so it shows all 5 so you can have a look if you want?
Instead of echo $ad_network[0];, try this: print_r ($ad_network); PHP: That will output the whole array to see what's up with it.
hmmm, it says that would appear to be right? Ok, update I re-uploaded all the files and cleared the text file, and all appears to be working. One final thing, how would I implement code such as | between the ads from the php file? Thanks