vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Home Enhancements - Active Members Percentage (https://vborg.vbsupport.ru/showthread.php?t=141243)

Gray Matter 03-05-2007 10:00 PM

Active Members Percentage
 
Want to display what percentage of your members are active? This little mod will do the trick. ;)

About
0 template edits
0 phrases
0 file changes
1 plugin

Installation Time

<1 minute

Simply upload the plugin and you're ready to go! See below for a screenshot.

Atakan KOC 03-06-2007 05:01 AM

Hımmmm. Nice idea. Thanks.

Mudvayne 03-06-2007 03:59 PM

I really like it :).

Snake 03-06-2007 05:28 PM

Thanks!

Hornstar 03-06-2007 10:14 PM

Pretty cool, although I wont be using this as im sure my percentage will be low with 60k+ members lol

LisaD1 03-06-2007 10:31 PM

I can't get it to work. I think it must be because of mods I have on my site. But I LOVE the idea!!

danward 03-07-2007 10:16 AM

Nice idea! :)

MThornback 03-24-2007 07:06 PM

Great Idea...but its not compatable with VBtrends so I can't keep it :( sorry!

Subah 03-24-2007 07:30 PM

Thanks

MeMySelfNi 03-24-2007 08:43 PM

installed but wouldnt work...oh well

Gray Matter 03-25-2007 07:59 PM

I'm not sure why this wouldn't work for some of you.

The plugin will automatically replace the active members number on your forum home page with the active members number and percentage.

Try uploading the plugin and then adding this wherever you want the percentage to show up:

Code:

$activemembers_percent%
So if you want it to show up right after the number (like in the screenshot), then replace

Code:

$activemembers
with

Code:

$activemembers ($activemembers_percent%)
Let me know if that works for you. :)

LisaD1 03-25-2007 08:53 PM

<div align="left">That didn't work either, but I have vbtrends in and I see they don't work together. But before I didn't have vbtrends and it still didn't work.
Still great idea though! </div>

daddygrim 03-29-2007 12:15 PM

Threads: 3,587, Posts: 63,922, Members: 289, Active Members: 153 (52.94%) mine works.

vics 04-11-2007 04:49 PM

Quote:

Originally Posted by LisaD1 (Post 1212158)
That didn't work either, but I have vbtrends in and I see they don't work together. But before I didn't have vbtrends and it still didn't work.
Still great idea though!

Won't work for me either.... ug:mad:

MeMySelfNi 05-06-2007 02:02 AM

Did anybody ever find out why this didnt work for some?

Mrdby 10-11-2007 01:41 AM

still works fine for me

asj 10-11-2007 05:14 AM

Thanks

ndut 03-14-2008 11:54 PM

there is some error for me..

Members: 7,099, Active Members: 3,902 (0.04%)

the code is....
Quote:

$activemembers_p = vb_number_format($vbulletin->userstats['activemembers'])/($vbulletin->userstats['numbermembers'])*100;
$activemembers_percent = number_format($activemembers_p, 2, '.', '');
$vbulletin->templatecache['FORUMHOME'] = str_replace("\$activemembers", "\$activemembers (\$activemembers_percent%)", $vbulletin->templatecache['FORUMHOME']);
i change to...
Quote:

$activemembers_p = vb_number_format($vbulletin->userstats['activemembers'])/($vbulletin->userstats['numbermembers'])*100000;
$activemembers_percent = number_format($activemembers_p, 2, '.', '');
$vbulletin->templatecache['FORUMHOME'] = str_replace("\$activemembers", "\$activemembers (\$activemembers_percent%)", $vbulletin->templatecache['FORUMHOME']);
Members: 7,099, Active Members: 3,902 (42.26%)
is there something wrong??? i think the percentage.. should be greater than 50% ??
anybody can help me?? :)

mikkitine 03-15-2008 04:25 AM

Thank you. I like this.

CarterMarkham 08-20-2008 10:42 PM

Anyway to get this to work with 3.7.2?

ndut 08-29-2008 02:36 PM

is this, works for ver 3.7.3 ??

R-D 09-26-2008 08:34 AM

To fix the incorrect number, edit the plugin and find:

PHP Code:

$activemembers_p vb_number_format($vbulletin->userstats['activemembers'])/($vbulletin->userstats['numbermembers'])*100

Replace it with:

PHP Code:

$activemembers_p vb_number_format(($vbulletin->userstats['activemembers']/$vbulletin->userstats['numbermembers'])*100,2); 


Total number of members: 4,375
Total active members: 1,645
Mod now returns 37.60% instead of 0.02%.

This is a 3.7.3 PL1 board.

SVTCobraLTD 09-26-2008 05:16 PM

Installed and working on 3.6.10pl3


All times are GMT. The time now is 04:53 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01110 seconds
  • Memory Usage 1,758KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete