Top of Page
Top of page

Content - Age Of

headtagA better age display based on date.  Formats past and future dates with prefixes and suffixes.

Simply described, this plugin can take a formatted date and convert it into a textual year/month/day/hour/minute/second display that counts up or down to the formatted date.

{ageof}1/21/1974{/ageof}

 

  • Instructions:
    • Parameter Types:
      • length
        • Value: Integer - can be a quoted or unquoted integer between 1 and 6. Values above 6 are ignored.
        • Sets the number of values to display. For example, if set to 2 and the result is 1 year, 1 month, 1 day, 1 hour, 1 minute - the output would be 1 year and 1 month.
        • Overrides Number of Elements option in the plugin basic settings.
        • Example: {ageof length=2}tomorrow noon{/ageof}
      • pastfuture
        • Value: Boolean - can be a quoted or unquoted 1 or 0. Any value other than 0 is considered true.
        • Enables/Disables the default suffix for the output. If in the past - the output is followed by ago, if in the future - the output is followed by from now.
        • Overrides Past/Future Suffix option in the plugin basic settings.
        • Example: {ageof pastfuture=0}tomorrow noon{/ageof}
      • pastprefix
        • Value: String - Must be quoted unless it is a single word containing no spaces.
        • String to prepend to the output if the date is in the past.
        • Overrides Past Prefix option in the plugin basic settings.
        • Example: {ageof pastprefix='A long time ago, '}yesterday noon{/ageof}
      • pastsuffix
        • Value: String - Must be quoted unless it is a single word containing no spaces.
        • String to apppend to the output if the date is in the past.
        • Overrides Past Suffix option in the plugin basic settings.
        • Example: {ageof pastsuffix=' - in a galaxy far, far away.'}yesterday noon{/ageof}
      • futureprefix
        • Value: String - Must be quoted unless it is a single word containing no spaces.
        • String to prepend to the output if the date is in the future.
        • Overrides Future Prefix option in the plugin basic settings.
        • Example: {ageof futureprefix='Sometime in the near future, maybe in '}tomorrow noon{/ageof}
      • futuresuffix
        • Value: String - Must be quoted unless it is a single word containing no spaces.
        • String to apppend to the output if the date is in the future.
        • Overrides Future Suffix option in the plugin basic settings.
        • Example: {ageof futuresuffix=', I plan on having lunch.'}tomorrow noon{/ageof}
      • before & after
        • Values: date strings - Any date format accepted in the valid date formats below. Be sure that your between value is a date or time before your and value.
        • Display only if the current date/time is before/after or between these two values. Can be used individually, or together.
        • Example: {ageof after='today 17:00' before='tomorrow 8:00'}tomorrow 8:00{/ageof}
    • Valid Date Formats:
    • Just for fun:
      • Michael Richey is {ageof pastfuture=0 length=1 pastsuffix=' old. Yikes!'}1/21/1974{/ageof}
      • Simon Richey is {ageof pastfuture=0 length=1 pastsuffix=' old. Wow!'}12/6/2007{/ageof}
      • {ageof between='today 17:00' and='tomorrow 8:00' pastprefix='The store closed '}today 17:00{/ageof}
        {ageof between='yesterday 17:00' and='today 8:00' pastprefix='The store closed '}yesterday 17:00{/ageof}
        {ageof pastfuture=0 between='today 17:00' and='tomorrow 8:00' futureprefix=' it will re-open in ' pastsuffix='.'}tomorrow 8:00{/ageof}
        {ageof pastfuture=0 between='yesterday 17:00' and='today 8:00' futureprefix=' it will re-open in ' pastsuffix='.'}today 8:00{/ageof}
        {ageof between='today 8:00' and='today 17:00' futureprefix='The store will close in '}today 17:00{/ageof}
      • The United States Declaration of Independence was signed {ageof length=1}7/4/1776{/ageof}

Demo here

RicheyWeb Joomla extensions are free! Additionally, they contain no advertisements or links back to RicheyWeb.com. If you feel that I have blessed you, then you can bless me. Click to make a donation to fund future development.

Top Downloads

Joomla 2.5

  1. AdminExile 17.9%
  2. ByeByeGenerator 10.6%
  3. Top of the Page 9.3%
  4. Favicon Package 8.1%
  5. SplashR 7.7%
  6. e-Privacy 6.5%
  7. CoolClock 5.7%
  8. Authentication - EMail 3.7%
  9. Content - MooAccordion 3.2%
  10. ScriptsDown 2.7%
  11. Browser Update Warning 2.5%
  12. Expires Headers 2.4%
  13. NicePanel 2.3%
  14. Terms of Service Package 1.7%
  15. Clean Response 1.6%
  16. System - Nomad 1.5%
  17. System - CleanFeed 1.2%
  18. Password Strength 1.1%
  19. DomainRestriction 1.1%
  20. Session Keeper 1.0%
  21. Detect Language 1.0%
  22. HeadTag 0.7%
  23. KeepaliveLight 0.6%
  24. Meta Character Count 0.6%
  25. MetaRobots 0.6%
  26. External Favicon 0.6%
  27. MicroBread Module 0.6%
  28. Answer Tips 0.5%
  29. Offline 0.4%
  30. Log Bad Passwords 0.4%
  31. System - SEBLODFeed 0.3%
  32. User - StaticPassword 0.3%
  33. Settler Module 0.3%
  34. Settler Plugin 0.3%
  35. User - StaticEmail 0.3%
  36. Loggie 0.2%
  37. Age Of 0.2%
  38. Content - Before/After 0.2%
  39. Profiler 0.1%
  40. Do Not Track 0.1%

Joomla 1.5

  1. e-Privacy 100.0%
RicheyWeb Extensions have been downloaded 404,492 times.
118 individuals and companies have made donations supporting future development.
Thank you Jeremiah Benes!