Login   Register  
PHP Classes
elePHPant
Icontem

Ad Rotator: Random ad image list rotator

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2006-05-17 (8 years ago) RSS 2.0 feedStarStarStarStar 60%Total: 2,319 All time: 1,553 This week: 1,438Up
Version License Categories  
adrotator 1.0.0GNU General Public Lice...Algorithms
Description Author  

This is a simple class that can be used to create ads that rotate according to a random order.

The class takes an array of image files name strings as parameter but it could also be HTML tags for rich media ads.

Then it shuffles the numbers assigned to each ad array position in a way that the shuffled array does not contain repeated ad numbers.
It displays randomized images from a group of specified images, without repetition.

Finally the class can return a new array of ads sorted by order determined by the shuffled ad numbers array. The returned array can be used to display one or more ads in the same page.

Picture of Vedanta Barooah
Name: Vedanta Barooah <contact>
Classes: 11 packages by
Country: United States United States
Age: 34
All time rank: 466 in United States United States
Week rank: 376 Down39 in United States United States Down
Innovation award
Innovation award
Nominee: 2x

Winner: 2x

  Files folder image Files  
File Role Description
Files folder imageold (2 files)
Plain text file adrotator.class.php Class Main Class File
Accessible without login Plain text file CHANGELOG Doc. Change Log
Accessible without login HTML file doc.html Doc. Documentation
Accessible without login Plain text file sample_ads.php Example Example (images with links)
Accessible without login Plain text file sample_rotate.php Example Example Usage
Accessible without login Plain text file sample_target.php Example Example with Targets

  Files folder image Files  /  old  
File Role Description
  Plain text file adrotator.class.php_1.0 Class Class Source
  Plain text file adrotator.class.php_1.1 Class Class Source

 Version Control Unique User Downloads Download Rankings  
 0%Total:2,319All time:1,553
 This week:0This week:1,438Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:79%StarStarStarStar
Documentation:72%StarStarStarStar
Examples:77%StarStarStarStar
Tests:-
Videos:-
Overall:60%StarStarStarStar
Rank:848