Log in

View Full Version : Total Members AFTER prune


DeMiNe0
06-02-2004, 10:00 PM
Dont you hate it, when you prune your members and your member count of pushed back down to a lower number? Kinda makes you feel small. Well i felt the same way after i pruned my 17k member forum down to a 4k member forum.

The basic idea of this hack is to show how many users have actauly signed up on the website. Then you can use the old member count variable and make it into somthing like a Active Member Count like i did(look at the screen shots).

This hack will work on any page of the website as long as you have global included in the file.

Also this hack was a really really easy one, im capable of doing more complex things, but since i am under a new name, i wanted to make my first post a hack, so i needed to think of somthing :). My old name was VeoMorphine.

DeMiNe0
06-03-2004, 09:28 PM
ok... for some reasen attachments arn't working on this forum, so just check out:
http://www.wowforge.net and http://www.wowforge.net/forums/ for live demo's. As for the hack:

#==========================================
#Open forums/index.php and find:
#==========================================

$userstats = unserialize($datastore['userstats']);
$numbermembers = vb_number_format($userstats['numbermembers']);
$newusername = $userstats['newusername'];
$newuserid = $userstats['newuserid'];

#=============================================
#If you want to put this hack in any other VB
#files that include the forums global.php then
#look at the below.
#Open the file you want to put this in.
#=============================================
#goto right before you evaluate your Template or before you
#start using html code and put:

$userstats = unserialize($datastore['userstats']);
$numbermembers = vb_number_format($userstats['numbermembers']);
$newusername = $userstats['newusername'];
$newuserid = $userstats['newuserid'];
// Total Users - By DeMiNe0
$totalallmembers=number_format($newuserid);
// Total Users - By DeMiNe0


#==========================================
#Under it put:
#==========================================
// Total Users - By DeMiNe0
$totalallmembers=number_format($newuserid);
// Total Users - By DeMiNe0

#==========================================
#In ANY template
#==========================================
#Put $totalallmembers where ever you want to display the total number of #members.
there it is.

Boofo
06-03-2004, 10:15 PM
I did this in my forumhome stats cache hack a while back. Good release! ;)