PHP Classes
elePHPant
Icontem

new_label: Label new items with "new" for a number of days.

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2005-03-20 (11 years ago) RSS 2.0 feedNot enough user ratingsTotal: 904 All time: 3,764 This week: 1,016Up
Version License Categories
new_label 1.0GNU General Publi...Time and Date, Statistics
Description Author

The class is used to print the label "new" (or something else) as text or graphics if the item labeled is only a certain number of days old.

new_label is able to take the time values directly out of a mysql table "date" field. (no conversion needed for that)

If a certain number of days is over, the "new" label will not show up any more for the labeled item. If you change anything on your page you can label it 'changed' or 'new info' instead of 'new'. The string for 'new' is user defineable and does not really have to be 'new'.

Picture of Peter Klauer
Name: Peter Klauer <contact>
Classes: 18 packages by
Country: Germany Germany
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Plain text file inc_new_label.php Class the class file
Accessible without login Plain text file test_new_label.php Example a demo file

 Version Control Unique User Downloads Download Rankings  
 0%
Total:904
This week:0
All time:3,764
This week:1,016Up