Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 01-26-2012, 10:14 AM
14DH01 14DH01 is offline
 
Join Date: Sep 2010
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default to reorder users

Hello,
I am looking for a way to reorder the users deleted

After deletion of accounts, my forum is at 1080 users.
Before around 3400.
The problem is that each new registration, the user table increments from 3400
So I'm looking for a mod that allows to put in order all the ID's ghost.
For the counter off again from 1080.

I asked the question on this thread but I do not think this mod solve my problem

https://vborg.vbsupport.ru/showthread.php?t=244707


thank you in advance for your support
Reply With Quote
  #2  
Old 01-26-2012, 11:09 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The userid isn't meant to be reused and the fact that you have a gap in the id range won't affect anything, so I'd recommend leaving it alone. However, if you still want to do it, you can execute a query like:

Code:
ALTER TABLE user AUTO_INCREMENT = 1080;

Also you should always have a recent backup of your database before messing with it.
Reply With Quote
  #3  
Old 01-26-2012, 03:19 PM
14DH01 14DH01 is offline
 
Join Date: Sep 2010
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you my friend

Your query did not work

if there is a mod to replace all the id in order as the image ? :erm:

Reply With Quote
  #4  
Old 01-26-2012, 04:30 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh...then you will want to reset your auto_increment field because I think I misunderstood what you wanted. You need to figure out what the highest userid value is, then rerun that query and set it to highest + 1 (or else users trying to register may get an error).

As far as the actual question you're asking, I don't think that mod was intended to do that, and I think you will probably end up causing yourself a lot of trouble if you try to do that. Is there some specific reason you need the ids to be like that?
Reply With Quote
  #5  
Old 01-26-2012, 04:56 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You cannot redo the user table so that every number is used.
Reply With Quote
  #6  
Old 01-26-2012, 07:49 PM
14DH01 14DH01 is offline
 
Join Date: Sep 2010
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

and with impex?
it would work ?
Reply With Quote
  #7  
Old 01-26-2012, 09:48 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, that would probably work. But you may lose other information when doing that, along with messing up any links on your site to threads or posts or users.
Reply With Quote
  #8  
Old 01-27-2012, 08:33 AM
14DH01 14DH01 is offline
 
Join Date: Sep 2010
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok so no other way to get what I ask.

there is not a script that can do this by taking into account the messages.

I drop.
I need the user id, to assign a number to the member.

A long number is not faficle to say about the calling frequency

for example
QRZ 14DH01 ID2= my call id "Charlie France 02".

Call user ID 3989 "charlie France 3989" = is no good

Each year the user trials to reach the QRG and give their ID to identify to forum.
Reply With Quote
Reply

Thread Tools
Display Modes

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 07:26 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.05346 seconds
  • Memory Usage 2,216KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete