original source: in the Nucleus Forum at http://forum.nucleuscms.org/viewtopic.php?t=4728 (Author: TrenT)
This template plugin is used to calculate the current age of the poster. It is similar in the formatting options to NP_ItemAge with formatting tags for both the text and the calculation in your template.
There are 5 parameters for this plugin:
<%CurrentAge(detail level,year poster born,month poster born,day poster born,text before calculation)%>
<%CurrentAge(4,2004,08,19,Today I'm)%>
This would display: Today I'm 2 months, 2 weeks, and 6 days old
The 1st parameter is detail with:
Formatting options in the plugin options.
This is my second version of this plugin as I got rid of the formatting in years, days, hours and seconds because they were useless…..
Copy and paste the code from the nucleus forum at this posting into a file called NP_CurrentAge.php. Upload the file into the nucleus plugin directory, than install or update the subscription list. Include usage code (shown above) in your template where you want the output to appear.