vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Possible to Rebuild IDs? (https://vborg.vbsupport.ru/showthread.php?t=305447)

Amaury 12-05-2013 03:19 AM

Possible to Rebuild IDs?
 
With deleting styles, spam bots and whatever else, there are now big gaps in IDs. For example, User 1, User 2, User 3, User 15 and User 50.

Is there a query that would rebuild all IDs (threads, posts, users, styles, etc.)? So going by the example above, User 15 would become User 4 and User 50 would become User 5.

Thanks!

Max Taxable 12-05-2013 03:23 AM

I purposely don't have a user #1. That's the first one the script kiddies go after because they know that's usually the super admin.

tbworld 12-05-2013 04:03 AM

Quote:

Originally Posted by Amaury (Post 2465864)
With deleting styles, spam bots and whatever else, there are now big gaps in IDs. For example, User 1, User 2, User 3, User 15 and User 50.

Is there a query that would rebuild all IDs (threads, posts, users, styles, etc.)? So going by the example above, User 15 would become User 4 and User 50 would become User 5.

Thanks!

You need to forget about this one, but I know it is hard. What happens when a third party 'mod' uses the users 'userid' in their table/field. If a query was written it would not know about that particular 'mod' and the field would not be updated -- things would break. It is why you will not find such a query easily, dangerous in the wrong hands. :)

ozzy47 12-05-2013 04:16 AM

Yeah there is waaaaaay to much that can go wrong trying to do something like that, best to forget about it. :)

Zachery 12-05-2013 04:17 AM

The amount of effort, and work required to do this is not worth it. You basicly need to install a fresh copy of the software, use impex, and lose anything that isn't default. Is that really worth getting some ids back? No.


All times are GMT. The time now is 11:25 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.01243 seconds
  • Memory Usage 1,710KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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