vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Don't show users with 0 posts in memberlist (https://vborg.vbsupport.ru/showthread.php?t=59763)

Gary King 01-05-2004 10:00 PM

Don't show users with 0 posts in memberlist
 
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:
PHP Code:

$condition '1=1'

Below, add:
PHP Code:

$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

Quote:

Originally Posted by FleaBag
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

Quote:

Originally Posted by Diva
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

Quote:

Originally Posted by rebelsrock06
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
Quote:

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

Quote:

Originally Posted by rebelsrock06
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

Quote:

Originally Posted by mini2
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

Quote:

Originally Posted by Eternal2u
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 :)

[high]* turbidblue finally clicks install ;)[/high]

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..


All times are GMT. The time now is 10:40 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01322 seconds
  • Memory Usage 1,769KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete