learn How to make a simple ad rotation block in phpnuke
Date: Thursday, August 09 @ 04:00:00 CEST
Topic: Add Ons


in a new article [click me now] :: you can learn How to make a simple ad rotation block in phpnuke

ENACAE writes "Here is a simple ad rotator script that you can use in a phpnuke block. You will need to create some php files and put them insite the block directory of you phpnuke installation.
0.php
1.php
2.php
3.php
4.php
Inside each of these php files will be your ad code. It can be google ads, Adzoogle ect. Note: You should add a tags at the beginning and end of each code so it will center in the ad block.

* Create a new block. Call it block-Advertisment (or whatever you like)
* inside this block file you need to put the following script inside.
* ob_start();
srand ((double) microtime( )*1000000);
$numbanners = 5;
$banner = rand(0,$numbanners);
include("$banner.php");
$output = ob_get_contents();
ob_end_clean();
$content = $output;
* ?>
* This script works great for me. You can also use Flash ads too! Enjoy. see more HowTos at karakas-online.de







This article comes from NukeCops
http://www.nukecops.com

The URL for this story is:
http://www.nukecops.com/modules.php?name=News&file=article&sid=6661