Login   Register  
PHP Classes
elePHPant
Icontem

Ads and content limit

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Lee Johnstone
Name: Lee Johnstone is available for providing paid consulting. Contact Lee Johnstone .
Packages: 6 Browse all classes by Lee Johnstone Browse all classes by
Country: Australia Australia - PHP jobs in Australia
Age: 29
All time rank: 5526 in Australia Australia
Week rank: 303 Up3 in Australia Australia Up
Innovation award
Innovation award
Nominee: 2x


  Detailed description   Download .zip .tar.gz  
This class can be used to keeps track of visitors to show limited number of ads or content a day.

It checks the current user IP address in a MySQL database table to determine whether the user has already visited the site.

The class stores the current date and time in the database table if the user has not accessed the site today. Otherwise the class increments the number of accesses of the user.

It returns a condition to determine whether an ad can be displayed if the number of accesses did not exceed a given limit.

Now also blocks via ip list and has much more accurate timing for release of the block.

  Classes of Lee Johnstone  >  Ads and content limit  >  Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Ads and content limit
Base name: limitads
Description: Keeps track of visitors to show limited ads a day
Version: 1.1
PHP version: 3
License: Free To Use But Restricted
All time users: 833 users
All time rank: 3639
Week users: 1 user
Week rank: 2151 Up
 
  Groups   Freshmeat project   Rate classes User ratings  
  Applications   Related links   Files Files  

  Groups  
Group folder image Databases Database management, accessing and searching View top rated classes
Group folder image User Management User records, authentication and session handling View top rated classes
Group folder image Content management Components and tools to manage content View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
January 2009
Number 12

Prize: One copy of Delphi for PHP
Advertising is only useful when the users notice and click on it. If an advertisement was presented to an user a few times and he still does not notice or is not interested, it is pointless to keep showing the advertisement again.

This class provides a solution to limit the number of times that an advertisement or other content is shown to an user.

This way you can show him a different advertisement or some other type of content.

Manuel Lemos

  Freshmeat project  
Project record: ads-and-content-limit
Popularity score: 17.61
Vitality score: 28.16

  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
DEMO full demo
Usage Support and usage

  Files folder image Files  
File Role Description
Plain text file class.Ads_Limiter Class main class file
Accessible without login Plain text file class.MySQL_Connect.php Appl. Mysql connection
Accessible without login Plain text file index Example example file
Accessible without login Plain text file ips.txt Data ip block list
Accessible without login Plain text file license.txt Lic. license file
Accessible without login Plain text file sql.php Aux. sql connection

Download all files: limitads.tar.gz limitads.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.