PDA

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


wolfe
10-09-2002, 10:00 PM
I requested this here

Request (https://vborg.vbsupport.ru/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-10-2002, 12:15 PM
I'll test it out ... I'm glad you took the time to fix it! :D

wolfe
10-10-2002, 12:16 PM
np's d00d it works great :D

Bison
10-10-2002, 12:37 PM
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-10-2002, 02:07 PM
Cool. I will install later on.

Dean C
10-10-2002, 03:45 PM
do you have any screenies for us?

- miSt

lordofgun
10-10-2002, 03:57 PM
yep...screenies would be great.

wolfe
10-10-2002, 08:09 PM
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
10-11-2002, 03:19 AM
I would love a screen shot also.

Thanks alot,

/DJ

dadymac
10-11-2002, 05:07 AM
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
10-11-2002, 10:57 AM
here is the forumhome screen :D

wolfe
10-11-2002, 10:59 AM
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
10-11-2002, 01:11 PM
This is a fun hack. I will add it shortly to my board (somewhere this weekend)

Floris
10-11-2002, 05:33 PM
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
10-12-2002, 02:26 AM
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
10-12-2002, 02:30 AM
it should work it did on my board :D

Katman
10-12-2002, 08:40 PM
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
10-12-2002, 10:30 PM
thanx for the fix d00d :D

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

wolfe
10-16-2002, 10:03 PM
will do :D

maverick1969
10-16-2002, 11:04 PM
Merci pour ce hack il a l'air genial

wolfe
10-17-2002, 12:13 PM
also i got a BIG release on its way :D

XtReMaTriX
12-16-2002, 05:47 AM
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
12-17-2002, 10:17 PM
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
06-08-2003, 11:54 PM
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
01-03-2004, 12:35 AM
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