Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Search by User ID (admin panel) Details »»
Search by User ID (admin panel)
Version: 1.00, by KuraFire KuraFire is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 06-08-2002 Last Update: Never Installs: 38
 
No support by the author.

** Updated April 9th, 5:01 PM, CET **

For those of you who want to search users by their ID directly:


open admin/user.php and find this line:

PHP Code:
makeinputcode("User Name contains","ausername"); 
Add ABOVE that, this bit:

PHP Code:
  // user id search hack
  
makeinputcode("User ID is","auserid");
  
// end user id search hack 

Then, in the same file, find:

PHP Code:
if ($usergroupid!=-and $usergroupid!="") { 
Add ABOVE that, this bit:

PHP Code:
  // user id search hack
  
if ($auserid!="" && !is-numeric($auserid)){
      echo 
"Invalid user ID, please go back and try again.";
      exit;
  }
  if (
is-numeric($auserid)) {
    
$condition.=" AND user.userid=$auserid";
  }
  
// end user id search hack 
** BECAUSE vB.ORG IS BEING A BIATCH, YOU WILL HAVE TO CHANGE THE - IN is-numeric (2 occurances) TO AN UNDERSCORE ( _ ) IN THE ABOVE SECTION OF CODE!!! **

Save & upload admin/user.php - that's it. :up:

You can now search users by their ID and get sent to their edit page right away.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-09-2002, 08:21 PM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about adding this for moderators? To search by userid in the mod/index.php
Reply With Quote
  #3  
Old 06-09-2002, 08:21 PM
Kickstand Kickstand is offline
 
Join Date: Oct 2001
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks KF !!
Great turn around time. What 5 minutes?
Reply With Quote
  #4  
Old 06-09-2002, 08:48 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lessee, I received your request at 11:01 PM, and posted this thread at 11:07.

6 minutes, that's pretty doable


Smoothie: erm, I might look into that, but then, I might not. It's not much use, really, if you ask me...
Reply With Quote
  #5  
Old 06-10-2002, 09:20 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice...

*installs*

Satan
Reply With Quote
  #6  
Old 06-10-2002, 11:45 AM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Eek! I made a big oopsy in the above code, which caused the search function in your AP to, well, not work.

The first post is improved now, it's a tiny alteration:

PHP Code:
  if (!intval($auserid)){ 
should be:

PHP Code:
  if (($auserid!="") AND (!intval($auserid))){ 
That's the fix, it's error-free, now
Reply With Quote
  #7  
Old 06-12-2002, 08:50 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have 21 users (new board, not open to public yet) and it shows the 18th user fine but if I try to find ID 19, 20 or 21 it says there is no matches. Any ideas?
Reply With Quote
  #8  
Old 06-14-2002, 09:21 AM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

your 19th, 20th and 21st members have higher ID's because you deleted some accounts?

I just checked your board and your 22nd member has the id 25, so you clearly deleted some users along the way.
Reply With Quote
  #9  
Old 06-14-2002, 09:39 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thta is apparently what the problem is. Is there any way to take the gaps out of the user table in the database for that?

Quote:
Originally posted by KuraFire
your 19th, 20th and 21st members have higher ID's because you deleted some accounts?


I just checked your board and your 22nd member has the id 25, so you clearly deleted some users along the way.
Reply With Quote
  #10  
Old 06-14-2002, 11:21 AM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

!!

why on EARTH would you want that?!

that would make your whole system unstable and illogical and (insert 25 other bad aspects here).

In other words: doing that is like unleashing hell on your board. It's Extremely impractical, too..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:41 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04575 seconds
  • Memory Usage 2,307KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete