vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Request hidden member name in member list (https://vborg.vbsupport.ru/showthread.php?t=49618)

MugenSi00 03-04-2003 03:49 AM

Request hidden member name in member list
 
I'm looking for a hack that would allow me to hide an account from being listed in the visible member list for all members. I have an special account I don't want anyone to know about.

Boofo 03-04-2003 05:11 AM

Is the account in a separate usergroup?

MugenSi00 03-04-2003 05:12 AM

Quote:

Originally posted by Boofo
Is the account in a separate usergroup?
it's an admin account. userid=1

I tried some of the past hacks for this and they don't work with 2.2.9

Boofo 03-04-2003 05:14 AM

Which hacks did you try? We might be able to modify one of them to work with it. I also run 2.2.9.

MugenSi00 03-04-2003 05:33 AM

https://vborg.vbsupport.ru/showthrea...threadid=38312

https://vborg.vbsupport.ru/showthrea...threadid=35044

https://vborg.vbsupport.ru/showthrea...threadid=41689

none worked

Boofo 03-04-2003 05:58 AM

Ok, I got it for you.

In memberlist.php, find:

PHP Code:

  $users=$DB_site->query("SELECT *
                          FROM user,userfield
                          WHERE 
$condition AND
                                user.userid = userfield.userid
                                "
.iif($memberAllGood" AND usergroupid NOT IN (1,3,4,8) """)."
                          ORDER BY 
$orderby $direction
                          LIMIT "
.($limitlower-1).",$perpage"); 

and change it to:

PHP Code:

  $users=$DB_site->query("SELECT *
                          FROM user,userfield
                          WHERE 
$condition AND
                                user.userid = userfield.userid
                                "
.iif($memberAllGood" AND usergroupid NOT IN (1,3,4,8) """)."
                          AND user.userid != 1
                          ORDER BY 
$orderby $direction
                          LIMIT "
.($limitlower-1).",$perpage"); 


This is the line where you add the userid to not show up. Just change the 1 to whatever you want.

AND user.userid != 1

Boofo 03-04-2003 06:19 AM

Don't forget to do this one, too, or your usercount for the pagenav will be off by one.

In memberlist.php, find:

PHP Code:

  $userscount=$DB_site->query_first("SELECT COUNT(*) AS users
                                     FROM user,userfield
                                     WHERE 
$condition AND
                                           user.userid = userfield.userid
                                           "
.iif($memberAllGood" AND usergroupid NOT IN (1,3,4,8) """)."
                                           "
); 

and change it to:

PHP Code:

  $userscount=$DB_site->query_first("SELECT COUNT(*) AS users
                                     FROM user,userfield
                                     WHERE 
$condition AND
                                           user.userid = userfield.userid
                                           "
.iif($memberAllGood" AND usergroupid NOT IN (1,3,4,8) """)."
                                     AND user.userid != 1
                                           "
); 


MugenSi00 03-04-2003 07:02 AM

thanks, worked like a charm


All times are GMT. The time now is 08:40 AM.

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.01812 seconds
  • Memory Usage 1,747KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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