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.


All times are GMT. The time now is 06:25 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.01074 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete