View Full Version : Don't show users with 0 posts in memberlist
Gary King
06 Jan 2004, 03:08
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:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Below, add:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
That's it! All done! :D
thank You Gary to divide it :)
FleaBag
06 Jan 2004, 15:15
Nice and simple, but effective. Thanks.
Dark_Wizard
06 Jan 2004, 15:18
Nice and simple, but effective. Thanks.
Agreed! Nice little hack....
Gary King
07 Jan 2004, 14:38
Thanks :)
Chris Gwynne
07 Jan 2004, 14:40
Sweet little hack, will use this. :)
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
16 Jan 2004, 17:11
^^ nice
SmasherMaster
22 Mar 2004, 03:31
This hack rocks, thanks for it!
/me hits install.
This is fantastic! My list went from 15 pages to 5.
rebelsrock06
22 Mar 2004, 03:40
This is fantastic! My list went from 15 pages to 5.
theres an option for this in the admin Cp
rebelsrock06
22 Mar 2004, 03:43
theres an option for this in the admin Cp
heres a screeny
its in VB options > user listing and profile viewing
Thx Gary, i've taken it for translating into french.
Aleksey
28 Mar 2004, 16:45
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
28 Mar 2004, 16:49
nvm I fixed it.
Man, so small, yet so useful!
Eternal2u
25 Apr 2004, 08:09
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
29 Apr 2004, 13:13
Good job, this hack will definitely come in handy.
PEOPLE!!!! YOU`re DEFINITLY BLIND :)
Keyser Söze
23 May 2004, 01:42
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
23 May 2004, 01:44
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
05 Jun 2004, 16:01
Thanks this is great
Infopro
10 Jun 2004, 14:37
Yep its built in already. No need to hack.
Noiz Pollution
11 Jun 2004, 10:48
You'd think people might read the rest of the thread before replying...
turbidblue
15 Jul 2004, 23:13
thanks! i meant to click reply last week but forgot!!
very nice :)
/me finally clicks install ;)
nexialys
17 Jul 2004, 15:23
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
18 Jul 2004, 17:19
Thanks mate, this comes in handy!
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..
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.