This works really well. I've only had it online for a few minutes and I must say I'm happy to have something worthwhile in that hole I had in my site. I do have one suggestions. It would be very helpful, and not too difficult to do, to have a place in the ad_network.php file to setup some color vars to pass to the text ads and text banners. In that way the add can be tweaked to have the same color scheme as the site. Nick
The background color of the banners can be set in the setup instructions (where it generates the PHP code for ad_network.php). For the rest, the best option would be to surround the ad(s) in your pages with <span> tags and do it with CSS.
Ok, I guess I missed something when I looked at the code that ended up in the text file. I order to do what I want to do I'd have to change the color and other attributes in the table tags. I'll spend some time on it tomorrow and see what I can come up with. Nick
The span solution is doing nothing for me. I am using the html version of the script, and when I set the class using <span class="somethinguseful"> nothing happens. I have also dried <div class="somethinguseful">. Also nothing. It sure would make the site look better if I could forrmat the ads. Any suggestions?
You can format the ad's. By default the ad's pick up the A refrence from any stylesheet. I ran into the issue of wanting the coop links different from the other links on the page. You can add this to your stylesheet - SPAN A:LINK { font-family: Arial; font-size: 10px; font-style: normal; text-decoration: none; color: #939090;} SPAN A:VISITED { font-family: Arial; font-size: 10px; font-style: normal; text-decoration: none; color: #939090;} SPAN A:HOVER { font-family: Arial; font-size: 10px; font-style: normal; text-decoration: none; color: #666666;} Make sure the COOP code is inside the SPAN tag (you don't need to add a class to it...I just did a align=center" on my page. You can see mine here www.stormfrontproductions.net (at the bottom) for a working example. Let me know if you have any problems.
Thank you for the help. It worked well for the link, but the description and the yucky grey background are unaffected. Cheers
You would add code similiar to this for the "|". $ad_network[0]   | $ad_network[1] However, I tried this myself and sometime it puts the "|" before and after the first and last ad's.....which looks bad in my opinion. So I just left 3 spaces between the ads and they look pretty good (www.stormfrontproductions.net). Hope this helps.
That isn't working for me... this is what my code looks like: <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network.php'); include ('ad_network.php'); include ('ad_network.php'); include ('ad_network.php'); include ('ad_network.php'); echo $ad_network[0], $ad_network[1], $ad_network[2], $ad_network[3], $ad_network[4]; ?>
Try putting it in quotes similiar to this: echo "$ad_network[0]  |   $ad_network[1]  |   $ad_network[2]  |   $ad_network[3]  |   $ad_network[4]";
Make sure the COOP code is inside the SPAN tag (you don't need to add a class to it...I just did a align=center" on my page. You can see mine here www.stormfrontproductions.net (at the bottom) for a working example. Let me know if you have any problems.[/QUOTE] Rookie question: So it should look like: <span align="center"> All the Co-op PHP code here </span> ????