vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   How Do I Edit the Style numbers on my forum? (https://vborg.vbsupport.ru/showthread.php?t=155444)

TroyF2000 08-16-2007 10:14 PM

How Do I Edit the Style numbers on my forum?
 
I have installed & then UN-installed forum styles many times now, and I was wondering about their numerical orders. Like say now, I only have 4 styles up, but my Default is the only one that is numbered correctly. It goes like this:

Default Style--1
OrangeBane--37
OrangeBane Ultra--38
Shadow's Bane--39

How can I reset this so they are just 1,2,3,4 again? Please help?

Dismounted 08-17-2007 10:58 AM

It's the MySQL unique indexes. You've installed 39 styles (and removed many), and therefore, it's currently at 39.

TroyF2000 08-18-2007 08:04 PM

But how do I reset that? I would just delete the entire shabang and reinstall everything. It's just I didn't want to delete all my posts & stuff, too. Is there a way to just reset the index for the styles?

Lynne 08-18-2007 08:16 PM

You could go directly into the database and change the styleid. However, you would have to edit the id everywhere it shows up. It's easy to change it in the table "style", but it is also called out in "user". I don't know which other tables/columns it would show up in.

TroyF2000 08-18-2007 10:28 PM

Sounds like a plan, man.https://vborg.vbsupport.ru/images/smilies/smile.gifThanks. But where all does the id data appear? Anyone know?https://vborg.vbsupport.ru/external/2007/08/15.gif

Marco van Herwaarden 08-20-2007 10:14 AM

Any id in vBulletin is automatically generated by MySQL, and you should never change them. There is also no reason to change them.

snowlion 08-20-2007 10:28 AM

Quote:

You could go directly into the database and change the styleid. However, you would have to edit the id everywhere it shows up. It's easy to change it in the table "style", but it is also called out in "user". I don't know which other tables/columns it would show up in.
After changed you will see white page. As Marco said, you shouldn't change them.

TroyF2000 08-20-2007 10:57 PM

Quote:

Originally Posted by Marco
There is also no reason to change them.

Well, technically, no. But I am planning to upload about 11 more styles later this year and I wanted them numbered consecutively. Forewarned & understood about the potential dangers, can you guys still tell me where all the ids which Lynne mentioned, show up? I would really appreciate it & it will save me from having to reinstall everything just so I can have this ordered right. It's THAT important to me. Please help guys. I promise I'll be careful.

Marco van Herwaarden 08-21-2007 09:16 AM

There is absolutly no (valid) reason to have them renumbered!

Styleid's are stored on many places and i will not even start to name them as i would probably forget a few, and it will totally mes up your board. I really strongly suggest that you forget about this, it is not worth the effort and the risks.


All times are GMT. The time now is 08:34 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.01110 seconds
  • Memory Usage 1,726KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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