vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   to reorder users (https://vborg.vbsupport.ru/showthread.php?t=277581)

14DH01 01-26-2012 10:14 AM

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 :o
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 ;)

kh99 01-26-2012 11:09 AM

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.

14DH01 01-26-2012 03:19 PM

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:

http://img338.imageshack.us/img338/7747/nomatch.png

kh99 01-26-2012 04:30 PM

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?

Lynne 01-26-2012 04:56 PM

You cannot redo the user table so that every number is used.

14DH01 01-26-2012 07:49 PM

and with impex?
it would work ?

Lynne 01-26-2012 09:48 PM

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.

14DH01 01-27-2012 08:33 AM

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.


All times are GMT. The time now is 06:52 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.01089 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)bbcode_code_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