vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Refresh Style IDs (https://vborg.vbsupport.ru/showthread.php?t=70109)

Omega Prime 10-02-2004 08:18 PM

Refresh Style IDs
 
Hi,

I'm not sure if this is possible, but I've been wondering this for some time: say, for example, I have 3 styles on my forum. Later on, I decide to delete the 3rd style. If I were to add a style again, the style IDs would be 1, 2, and 4. What I'm wondering is whether or not it's possible to refresh vbulletin so that the style IDs will appear as 1, 2, and 3, even though a style was already deleted. Perhaps a modification to the database might fix this, but I'm hoping that there can somehow be a way to have vbulletin rebuild the data like it does with other functions (rebuilding postcounts, etc). Thanks in advance for any help :)

Zachery 10-02-2004 08:21 PM

vBulletin can rebuild post counters, because they are auto_incremented by MySQL. You could manually renumber the styles, but i am not sure what else would be nessary considering the ammount of templates there are. The Id's should not matter that much...

nexialys 10-02-2004 08:54 PM

it's easy to do it with your mysql manager... you change your style id, in the style table, and the styleid field in the template table... after making all the changes, you refresh all your templates...


All times are GMT. The time now is 08:31 AM.

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.00947 seconds
  • Memory Usage 1,705KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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