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
  #12  
Old 06-14-2002, 11:49 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, then what you are saying is that anyone who ever deletes any users will never have the right count (like it is on my board), right? This is normal then and nothing to worry about? That's all I want to know. If it is the norm and the way it works for everyone, then everything is fine. I thought maybe I messed something up somewhere, that's all.

Quote:
Originally posted by KuraFire
!!

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
  #13  
Old 06-14-2002, 11:55 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yea, its normal, and works perfect, its is just a cosmetic problem
Reply With Quote
  #14  
Old 06-14-2002, 09:25 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*nods*

boofo, what's important here is this:

try picturing the structure of your forum - a post is defined by someone's user id - after all, you can easily change their usernames in your admin panel, and that doesn't affect their posts or anything.

Now try picturing what would happen if suddenly their user ID would be changed. How else would the system, vBulletin, know which post belonged to them, and which didn't?

Do you see the conflict there?
Reply With Quote
  #15  
Old 06-14-2002, 09:36 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 understand what you are saying. I just never knew how it worked until now. I guess I didn't think about the posts being tied to the userid like that. But you would think there would be a way to have the gaps removed and have all of the messages re-tied to the new user ids. I know it would be a real intense operation, but it could be done, couldn't it?

By the way, KuraFire, on your quote hack, is there a way to take the gaps out of the database when quotes are removed? I have a 4 quote difference in it. I have added more and it doesn't fill in the spaces left by the deletion of the other quotes. Or does this work the same way as the userid thing?

Quote:
Originally posted by KuraFire
*nods*

boofo, what's important here is this:

try picturing the structure of your forum - a post is defined by someone's user id - after all, you can easily change their usernames in your admin panel, and that doesn't affect their posts or anything.

Now try picturing what would happen if suddenly their user ID would be changed. How else would the system, vBulletin, know which post belonged to them, and which didn't?

Do you see the conflict there?
Reply With Quote
  #16  
Old 06-14-2002, 09:44 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it could be done, but it's totally senseless and inefficient to do so.

There is no problem with gaps in user id columns, unless you intend to use certain files which include the user id and would thus have to rename files to match the gaps - but that would be quite a senseless system for users.

So why bother, then? If there's no problem, really, whatsoever, why change the very much winning formula?


And yeah - my Quote hack works exactly the same. Quotes and Users are basically the same except that they hold different information and quotes hold far LESS information a record
Reply With Quote
  #17  
Old 06-14-2002, 09:57 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 don't know if I would go as far to say it is senseless and inefficient to do that. It all depends on what you are trying to do and what you need it for. I am one who likes things in order and where they belong. To have...say...321 users but have a user with a userid of 415 doesn't make a whole lot of sense to me. Not to mention, the avaerage user is going to be confused themselves about it. But, like you said, if it ain't broke, it don't need fixin'. It's just personal preference, I guess.


Quote:
Originally posted by KuraFire
it could be done, but it's totally senseless and inefficient to do so.

There is no problem with gaps in user id columns, unless you intend to use certain files which include the user id and would thus have to rename files to match the gaps - but that would be quite a senseless system for users.

So why bother, then? If there's no problem, really, whatsoever, why change the very much winning formula?


And yeah - my Quote hack works exactly the same. Quotes and Users are basically the same except that they hold different information and quotes hold far LESS information a record
Reply With Quote
  #18  
Old 06-14-2002, 10:09 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm, somehow, user id's that don't match to the Nth member signup don't seem all that odd to me - most users never know how many'th member they are, nor do they care a whim.

Having things orderly is nice - but if you learn enough about it, you'll understand that this way, it's actually far more orderly and useful.

I personally wouldn't go _just_ as far as saying it's senseless and inefficient - no, I would even go as far as saying it's completely retarded, but that's my personal opinion, though
Reply With Quote
  #19  
Old 06-14-2002, 10:19 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 guess that's where you and I differ. I don't think anyone's idea is "retarded", no matter how much I might disagree with it.

Quote:
Originally posted by KuraFire
hmm, somehow, user id's that don't match to the Nth member signup don't seem all that odd to me - most users never know how many'th member they are, nor do they care a whim.

Having things orderly is nice - but if you learn enough about it, you'll understand that this way, it's actually far more orderly and useful.

I personally wouldn't go _just_ as far as saying it's senseless and inefficient - no, I would even go as far as saying it's completely retarded, but that's my personal opinion, though
Reply With Quote
  #20  
Old 06-14-2002, 10:35 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I never said I found your idea retarded - I said I found my picturing of doing vbulletin without auto_incrementing user id's retarded.

Yours was a general musing. And if you feel offended, I'm sorry - I definitely wasn't thinking about you while saying that....
Reply With Quote
  #21  
Old 06-14-2002, 10:40 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry I took it personally. I knew you weren't talking directly to me when you said that, it just hit a nerve, I guess.

I agree with you on the auto-incrementing. I think that is the best way to go. I also think that talking gaps out of the auto-incrementing (or even filling in the gaps with the next new user) is something to take a look at too.

Quote:
Originally posted by KuraFire
I never said I found your idea retarded - I said I found my picturing of doing vbulletin without auto_incrementing user id's retarded.

Yours was a general musing. And if you feel offended, I'm sorry - I definitely wasn't thinking about you while saying that....
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 11:59 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.04701 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
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
  • (5)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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