PHP Classes

Ad Rotator: Random ad image list rotator

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 62%Total: 2,497 All time: 1,546 This week: 65Up
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: 44
All time rank: 497 in United States United States
Week rank: 43 Up5 in United States United States Up
Innovation award
Innovation award
Nominee: 2x

Winner: 2x

  Files folder image Files (8)  
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 (8)  /  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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,497
This week:0
All time:1,546
This week:65Up
 User Ratings  
 
 All time
Utility:77%StarStarStarStar
Consistency:81%StarStarStarStarStar
Documentation:75%StarStarStarStar
Examples:79%StarStarStarStar
Tests:-
Videos:-
Overall:62%StarStarStarStar
Rank:959