PHP Classes

Ad Rotator: Random ad image list rotator

Recommend this page to a friend!
  Info   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 62%Total: 2,496 This week: 2All time: 1,546 This week: 84Up
Version License Categories
adrotator 1.0.0GNU General Publi...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: 43
All time rank: 497 in United States United States
Week rank: 50 Down7 in United States United States Equal
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,496
This week:2
All time:1,546
This week:84Up
 User Ratings  
 
 All time
Utility:77%StarStarStarStar
Consistency:81%StarStarStarStarStar
Documentation:75%StarStarStarStar
Examples:79%StarStarStarStar
Tests:-
Videos:-
Overall:62%StarStarStarStar
Rank:955