PDA

View Full Version : 0 Posters, None Active Members, Active Members and 1 Posters Display Hack.


wolfe
10 Oct 2002, 13:03
I requested this here

Request (http://www.vbulletin.org/forum/showthread.php?postid=300570#post300570)

But since no one helped me out i went @ it alone and i have fixed several problems and one main problem that was in the other on was that if you added all the numbers togeather it equeled more members than you got but i sorted it now :D

and on the old on the Author never helped anyone out but here it is now :D

if you like it and it works great please click the Install Button :D

Bison
10 Oct 2002, 13:15
I'll test it out ... I'm glad you took the time to fix it! :D

wolfe
10 Oct 2002, 13:16
np's d00d it works great :D

Bison
10 Oct 2002, 13:37
Did you use the same variables on the index page from the previous hack?

If so them this would be considered a update ... and all that needs to be changed is the code inside both files ... right?

Neo
10 Oct 2002, 15:07
Cool. I will install later on.

Dean C
10 Oct 2002, 16:45
do you have any screenies for us?

- miSt

lordofgun
10 Oct 2002, 16:57
yep...screenies would be great.

wolfe
10 Oct 2002, 21:09
Originally posted by Rolodex
Did you use the same variables on the index page from the previous hack?

If so them this would be considered a update ... and all that needs to be changed is the code inside both files ... right?

d00d its a new version

also @ mist i will do a screen l8r on busy now sorry :D

digitalJE5U5
11 Oct 2002, 04:19
I would love a screen shot also.

Thanks alot,

/DJ

dadymac
11 Oct 2002, 06:07
ok, installed, the 1 post and 0 post is working fine (gj) but the non-active seems to be really sensitive, and the active thing is really picky, hence of my 300 members, 6 are active, when in truth it should be near like 80 or so at the very least.

wolfe
11 Oct 2002, 11:57
here is the forumhome screen :D

wolfe
11 Oct 2002, 11:59
Originally posted by dadymac
ok, installed, the 1 post and 0 post is working fine (gj) but the non-active seems to be really sensitive, and the active thing is really picky, hence of my 300 members, 6 are active, when in truth it should be near like 80 or so at the very least.


d00d the none active memberslist makes users who aint posted for 1 mounth show and the Active list shows everyone else who has posted within 1 mounth :D

Floris
11 Oct 2002, 14:11
This is a fun hack. I will add it shortly to my board (somewhere this weekend)

Floris
11 Oct 2002, 18:33
I have installed it, and I have a few comments.
The active members show up as a negative number,
and when I click on a list, it displays from Z-A, and not from A-Z, which has my preference. I changed the DESC to ASC in the memberlist.php code to reflect those changes.
However, users who are set as active, show up on the inactive list too. I can't see what is wrong there though.
Your readme says VBB- but it is vB but that is really besides the point. It works on 2.2.7

wolfe
12 Oct 2002, 03:26
Originally posted by xiphoid
I have installed it, and I have a few comments.
The active members show up as a negative number,
and when I click on a list, it displays from Z-A, and not from A-Z, which has my preference. I changed the DESC to ASC in the memberlist.php code to reflect those changes.
However, users who are set as active, show up on the inactive list too. I can't see what is wrong there though.
Your readme says VBB- but it is vB but that is really besides the point. It works on 2.2.7

d00d to fix this in the memberlist

find in memberlist.php


// start 0-poster display hack v1.0 by Wolfe
if ($what=="0-posters") {
$condition.=" AND posts < '1'";
$orderby="DESC";
$direction="";
}
if ($what=="oneposters") {
$condition.=" AND posts < '2' AND posts > '0'";
$orderby="DESC";
$direction="";
}
if ($what=="active") {
$condition.=" AND posts>'0'";
$orderby="lastactivity";
$direction="DESC";
}
if ($what=="inactive") {
$lastmonth = mktime (0,0,0,date("m")-1,date("d"),date("Y"));
$lastmonth2 = date("Y-m-d", $lastmonth);
$condition.=" AND joindate<UNIX_TIMESTAMP('".addslashes(strtolower($lastmonth2))."') AND lastpost<UNIX_TIMESTAMP('".addslashes(strtolower($lastmonth2))."')";
$orderby="lastactivity";
$direction="DESC";
}
// end 0-poster display hack v1.0 by Wolfe


and replace with


// start 0-poster display hack v1.0 by Wolfe
if ($what=="0-posters") {
$condition.=" AND posts < '1'";
$orderby="username";
$direction="ASC";
}
if ($what=="oneposters") {
$condition.=" AND posts < '2' AND posts > '0'";
$orderby="username";
$direction="ASC";
}
if ($what=="active") {
$condition.=" AND posts>'0'";
$orderby="username";
$direction="ASC";
}
if ($what=="inactive") {
$lastmonth = mktime (0,0,0,date("m")-1,date("d"),date("Y"));
$lastmonth2 = date("Y-m-d", $lastmonth);
$condition.=" AND joindate<UNIX_TIMESTAMP('".addslashes(strtolower($lastmonth2))."') AND lastpost<UNIX_TIMESTAMP('".addslashes(strtolower($lastmonth2))."')";
$orderby="username";
$direction="ASC";
}
// end 0-poster display hack v1.0 by Wolfe


Hope it works :D

wolfe
12 Oct 2002, 03:30
it should work it did on my board :D

Katman
12 Oct 2002, 21:40
To get a positive number you need to replace the following:

Find in index.php:
$activemembers=$numbermembers-$nonposters-$inactive;

Replace with:
$activemembers=$nonposters+$inactive-$numbermembers;

Now you'll get a positive number for the "Active Members" count.

wolfe
12 Oct 2002, 23:30
thanx for the fix d00d :D

CeleronXL
16 Oct 2002, 18:37
Has all of this been updated in the directions? If so, I'll be isntalling.

wolfe
16 Oct 2002, 23:03
will do :D

maverick1969
17 Oct 2002, 00:04
Merci pour ce hack il a l'air genial

wolfe
17 Oct 2002, 13:13
also i got a BIG release on its way :D

XtReMaTriX
16 Dec 2002, 06:47
OK, so on my bored there are 7 active users, but when i click on it there are 36 users that come up... whats up with that???

XtReMaTriX
17 Dec 2002, 23:17
OK, in addition to that, there is another problem. I replied to a post using an account that i use for testing (i havent used it in a while) and the number of active users just went down by one. I did have to do this:
To get a positive number you need to replace the following:

Find in index.php:
$activemembers=$numbermembers-$nonposters-$inactive;

Replace with:
$activemembers=$nonposters+$inactive-$numbermembers;

Because it was -7 before... well i am just wondering whats going on now...

For a temp fix i did this:
$activemembers=$numbermembers-$inactive;

would that display the correct #??? please help...

blackice912
09 Jun 2003, 00:54
I like this hack, but it seems that there are quite a few problems.

Hope that they are resolved so that I can install it. :)

wolfe
03 Jan 2004, 01:35
I like this hack, but it seems that there are quite a few problems.

Hope that they are resolved so that I can install it. :)
this hack will be updated as soon as i get a few hours free time