vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Blog Categories (https://vborg.vbsupport.ru/showthread.php?t=301589)

Mobeen Janjua 08-25-2013 07:04 AM

Blog Categories
 
Hi,

I have created few categories for my blog.

following are the urls...

&blogcategoryid=1, &blogcategoryid=2, &blogcategoryid=3

Now I have deleted &blogcategoryid=2 for some reason and created another category and its url will be &blogcategoryid=4.

My question is that can I change &blogcategoryid=4 to &blogcategoryid=2

tbworld 08-25-2013 07:27 AM

Quote:

Originally Posted by Mobeen Janjua (Post 2440913)
Hi,

I have created few categories for my blog.

following are the urls...

&blogcategoryid=1, &blogcategoryid=2, &blogcategoryid=3

Now I have deleted &blogcategoryid=2 for some reason and created another category and its url will be &blogcategoryid=4.

My question is that can I change &blogcategoryid=4 to &blogcategoryid=2

First let me say you can by altering the database directly, but it can be tricky depending upon the data and attachments you might already have active.

But --- you shouldn't. Everyone who is new to this kind of software wants to do this kind of thing, when they first get started: keep the database numbering clean. You will realize very quickly that it cannot be done without you stressing over it on a regular basis. The software works by invalidating the old and creating a new ID.

Use a database utility and view the table 'blogcategoryid'. You will see all sorts of inter-dependencies: parent id, parent list, child list. You would have to modify these correctly. If you have no content you could simply empty the table and start again.

In reality you would write a simple php snipet to renumber categories. I don't think there is one, but you can check in the MOD section.

Hopefully, I have convinced you to leave it alone.


All times are GMT. The time now is 02: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.00996 seconds
  • Memory Usage 1,713KB
  • 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
  • (2)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