Back to vBulletin 3.5 Add-ons

Average age in forumhome
Mod Version: 1.03, by Lea Verou

This modification is in the archives.
vB Version: 3.5.3 Rating: (2 votes - 5.00 average) Installs: 59
Released: 25 Oct 2005 Last Update: 25 Oct 2005 Downloads: 56
Not Supported Uses Plugins Template Edits  

This is a modification I really wanted for my forum and I am posting it cause I thought that others may find it useful as well. However, I only had the idea as Xenon helped my really much with the query (My SQL knowledge is very basic and this is why this hack isn't supported, I wish I could support it but I don't have the knowledge to do so).
Thanks also to tamarian for fixing the issue with the table prefix.

Instructions


1. Import the attached XML file. It's a plugin, not a product
2. Edit template FORUMHOME:
Find:
HTML Code:
<span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
                </if>
Add below:
HTML Code:
Average Age: $avg_age
You're done!
If you liked this and you are using it, don't forget to click INSTALL!

If you want less or more than 2 decimals at the average then:
  • In the plugin manager click Avg Age in order to edit the plugin code.
  • Find DAYOFYEAR(NOW())) / 365), 2) and change the 2 in green to the number of decimals you like.

Download

This modification is archived and cannot be downloaded.

Supporters / CoAuthors

  • tamarian
  • Xenon

Screenshots

 


vblts.ru supports vBulletin®, 2022-2025