You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 541 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
learn How to make a simple ad rotation block in phpnuke
Add Onsnuke__evangelist writes "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 "
Posted on Thursday, August 09 @ 04:00:00 CEST by VinDSL
 
Related Links
· More about Add Ons
· News by VinDSL


Most read story about Add Ons:
Release Msn Block Checker 2.0

Article Rating
Average Score: 0
Votes: 0

Please take a second and vote for this article:

Excellent
Very Good
Good
Regular
Bad


Options

 Printer Friendly Page  Printer Friendly Page

 Send to a Friend  Send to a Friend

Threshold
The comments are owned by the poster. We aren't responsible for their content.

No Comments Allowed for Anonymous, please register
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.069 Seconds - 189 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::