Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

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
  #22  
Old 06-14-2002, 11:05 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no worries


I dunno, I prefer gaps myself, for several reasons... which I don't feel like listing now, at 2 am, so I'll leave it at this and bid thee good night
Reply With Quote
  #23  
Old 06-15-2002, 07:10 PM
The Ghost's Avatar
The Ghost The Ghost is offline
 
Join Date: Feb 2002
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi,

works fine on 2.2.6!!

thx, nice hack!

Greetz

The Ghost
Reply With Quote
  #24  
Old 07-18-2002, 04:23 AM
clouds_kid's Avatar
clouds_kid clouds_kid is offline
 
Join Date: Mar 2002
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where's the ID hack?
Reply With Quote
  #25  
Old 07-18-2002, 04:17 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What on earth are you babbling about, Clouds kid??
Reply With Quote
  #26  
Old 04-09-2003, 01:49 PM
Snapperhaed Snapperhaed is offline
 
Join Date: Mar 2003
Location: Argentina
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed this hack on v2.3.0 and it gave me a parse error.

This hack:

// user id search hack
if (($auserid!="") AND (!$auserid))){
echo "Invalid user ID, please go back and try again.";
exit;
}
if ($auserid!="") {
$condition.=" AND user.userid=$auserid";
}
// end user id search hack

To get it to work, I had to remove this part:

if (($auserid!="") AND (!$auserid))){
echo "Invalid user ID, please go back and try again.";
exit;
}

Short of that, seems to work fine. Thanks for the hack. Much needed!
Reply With Quote
  #27  
Old 04-09-2003, 02:14 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

snapperhead: yeah, that's vb.org's fault. Stupid hack here is making the php-functions disappear, so if you copied from the post before I edited it just now, you were copying incomplete code :/
Reply With Quote
  #28  
Old 06-09-2003, 06:17 PM
-Sidekick- -Sidekick- is offline
 
Join Date: May 2002
Location: Cudahy, Wi
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I use Teck's addon for the Admin CP.

How would I add this right above search for a user at Control Panel Home?

https://vborg.vbsupport.ru/showthrea...threadid=43232
Reply With Quote
Reply

Thread Tools

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 03:03 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.04653 seconds
  • Memory Usage 2,272KB
  • Queries Executed 22 (?)
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
  • (4)bbcode_php
  • (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
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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