Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Average age in forumhome Details »»
Average age in forumhome
Version: 1.03, by Lea Verou Lea Verou is offline
Developer Last Online: Jul 2012 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 10-24-2005 Last Update: 10-24-2005 Installs: 59
Uses Plugins Template Edits
 
No support by the author.

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.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 05-01-2006, 09:23 AM
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Location: Greece
Posts: 1,856
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Triple_T
Unfortunatly a funny little thing that adds 1 query, and imho, that's not really worth it.
Then don't install it.
In what particular way can your comment be considered "constructive"?
Reply With Quote
  #33  
Old 05-01-2006, 12:43 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Michelle
Then don't install it.
In what particular way can your comment be considered "constructive"?
Don't worry, Michelle, I'll install this. If he can come up with another way to get this info without a query, then he'll be doing magic.
Reply With Quote
  #34  
Old 05-28-2006, 01:14 PM
dutchbb dutchbb is offline
 
Join Date: Nov 2003
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Michelle
Then don't install it.
I didn't

Quote:
In what particular way can your comment be considered "constructive"?
Because people should know this.

I didn't mean to be offensive or anything.
Reply With Quote
  #35  
Old 09-08-2006, 09:36 PM
Protonus Protonus is offline
 
Join Date: Aug 2005
Location: Rochester, NY
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wanted to let ya'll know this works in 3.6. However I didn't like where it displayed the age, thought it was kinda of weird, makes it look like it's implying it's the age of the members currently signed in.

Instead, I wanted it next to the member total in the navbar. See here for instructions on how to do this, I think it looks a lot better:
http://www.vbstyles.com/forum/showthread.php?t=3155
Reply With Quote
  #36  
Old 10-23-2006, 01:40 AM
adwade adwade is offline
 
Join Date: Aug 2006
Location: SouthEast, TN
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Protonus
See here for instructions...
For the benefit of those who don't have a vbstyles login...

Quote:
Originally Posted by dlutt View Post
Yes, it in template "navbar".

Please try it like this (works for me):

open template "navbar" and search for:

Code:
$vbphrase[active_members]: $activemembers</span></if></div>
Modify this line that it looks like:

Code:
$vbphrase[active_members]: $activemembers</if>, Average Age: $avg_age</span></div>
Daniel
Great to know this works with vB3.6 and FWIW, Miko makes GREAT Skins for vB!
Reply With Quote
  #37  
Old 04-15-2009, 09:37 AM
The Coon The Coon is offline
 
Join Date: Aug 2008
Location: Germany
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great ... still works with 3.8.2! THX!
Reply With Quote
  #38  
Old 05-28-2009, 01:01 AM
alfaowner alfaowner is offline
 
Join Date: Jul 2003
Location: London
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Coon View Post
Great ... still works with 3.8.2! THX!
Agreed, thanks!
Reply With Quote
  #39  
Old 11-15-2009, 07:30 PM
The Coon The Coon is offline
 
Join Date: Aug 2008
Location: Germany
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unfortunately it don`t works with vBulletin 4.

Could please someone take a look on this cool Plug-in?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:52 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10548 seconds
  • Memory Usage 2,287KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_html
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete