View Full Version : Forum Home Enhancements - Active Members Percentage
Gray Matter
03-05-2007, 10:00 PM
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:
$activemembers_percent%
So if you want it to show up right after the number (like in the screenshot), then replace
$activemembers
with
$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.
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
there is some error for me..
Members: 7,099, Active Members: 3,902 (0.04%)
the code is....
$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...
$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?
is this, works for ver 3.7.3 ??
To fix the incorrect number, edit the plugin and find:
$activemembers_p = vb_number_format($vbulletin->userstats['activemembers'])/($vbulletin->userstats['numbermembers'])*100;
Replace it with:
$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
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.