PDA

View Full Version : Don't show users with 0 posts in memberlist


Gary King
01-05-2004, 10:00 PM
Please click on INSTALL if you installed this hack! Thanks!

What does this hack do?

It will remove all users with 0 posts from the members list, so that they can't be found by other members. This is useful if you want to show only the active users, who have made at least one post, instead of the ones who only register to use member-only functions ;)

*NOTE: Ported over from my own version of this hack for vBulletin 2.

Instructions

Open memberlist.php and find:
$condition = '1=1';


Below, add:$condition.=" and user.posts != 0";


That's it! All done! :D

Allan
01-06-2004, 06:45 AM
thank You Gary to divide it :)

FleaBag
01-06-2004, 01:15 PM
Nice and simple, but effective. Thanks.

Dark_Wizard
01-06-2004, 01:18 PM
Nice and simple, but effective. Thanks.

Agreed! Nice little hack....

Gary King
01-07-2004, 12:38 PM
Thanks :)

Chris Gwynne
01-07-2004, 12:40 PM
Sweet little hack, will use this. :)

mini2
01-07-2004, 11:04 PM
You could do this with conditionals too?

Edit memberlist_resultsbit.

For the first line put: <if condition="$userinfo[posts] != 0">
For the last line put: </if>

Job done, no files edited.

Just an alternative. A nice idea too, never thought of doing that but it could save on a lot of "noise" or useless entries.

subduck
01-16-2004, 03:11 PM
^^ nice

SmasherMaster
03-22-2004, 01:31 AM
This hack rocks, thanks for it!

/me hits install.

Diva
03-22-2004, 01:38 AM
This is fantastic! My list went from 15 pages to 5.

rebelsrock06
03-22-2004, 01:40 AM
This is fantastic! My list went from 15 pages to 5.
theres an option for this in the admin Cp

rebelsrock06
03-22-2004, 01:43 AM
theres an option for this in the admin Cp
heres a screeny


its in VB options > user listing and profile viewing

Gizmo
03-24-2004, 02:07 PM
Thx Gary, i've taken it for translating into french.

Aleksey
03-28-2004, 02:45 PM
It says

Database error in vBulletin 3.0.0:

Invalid SQL:
SELECT COUNT(*) AS users
FROM user AS user
LEFT JOIN userfield AS userfield USING (userid)
WHERE and user.posts != 0
AND user.usergroupid IN (0,6,7,2,5)

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'and user.posts != 0
AND user.usergroupid IN (0,6,7,2,5)' at

mysql error number: 1064

Date: Sunday 28th of March 2004 09:45:09 PM
Script: http://www.hellforums.com/memberlist.php?
Referer: http://www.hellforums.com/
Username: Aleksey
IP Address: xx.xxx.xxx.x


why does it say that?

Aleksey
03-28-2004, 02:49 PM
nvm I fixed it.

JaNa
04-22-2004, 03:41 PM
Man, so small, yet so useful!

Eternal2u
04-25-2004, 06:09 AM
heres a screeny


its in VB options > user listing and profile viewing


Read that guyz post..

this mod is REALLY un-nessary..i'm running vb 3.01 and it ++++s it when i tried rpling it through ftp..so yea..

And as rebelsrock said, it's already built into the admin panel, and it gives ALOT more options then this "simple" mod..

..Sorry man, but a big thumb's down on this one..

Gossamer175
04-29-2004, 11:13 AM
Good job, this hack will definitely come in handy.

M.C.
04-29-2004, 11:27 PM
PEOPLE!!!! YOU`re DEFINITLY BLIND :)

JagFan
05-04-2004, 07:43 PM
Nice mod! :)

Keyser S?ze
05-22-2004, 11:42 PM
You could do this with conditionals too?

Edit memberlist_resultsbit.

For the first line put: <if condition="$userinfo[posts] != 0">
For the last line put: </if>

Job done, no files edited.

Just an alternative. A nice idea too, never thought of doing that but it could save on a lot of "noise" or useless entries.


IMO this is much much better, template mods rock :D

but question what if i wanted to not display anyone under 7 posts? i tried !<7 but that didnt work

Keyser S?ze
05-22-2004, 11:44 PM
Read that guyz post..

this mod is REALLY un-nessary..i'm running vb 3.01 and it ++++s it when i tried rpling it through ftp..so yea..

And as rebelsrock said, it's already built into the admin panel, and it gives ALOT more options then this "simple" mod..

..Sorry man, but a big thumb's down on this one..


gah i feel dumb ;p, need to go read the manual

Flow Fusion
06-05-2004, 02:01 PM
Thanks this is great

Infopro
06-10-2004, 12:37 PM
Yep its built in already. No need to hack.

Noiz Pollution
06-11-2004, 08:48 AM
You'd think people might read the rest of the thread before replying...

turbidblue
07-15-2004, 09:13 PM
thanks! i meant to click reply last week but forgot!!

very nice :)

* turbidblue finally clicks install ;)

nexialys
07-17-2004, 01:23 PM
can we tag this thread as "INCLUDED IN 3.0.1" ??

btw, would be good to tag all hacks that already include in the last release...

HakkieDEV
07-18-2004, 03:19 PM
Thanks mate, this comes in handy!

Polo
03-16-2005, 02:40 PM
This should stay here... even though is already in the admincp I believe is only available on 3.0.1 and newer versions.. this might come handy for those who havent updated their vbulletin board..