Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-25-2009, 11:53 AM
bluidkiti bluidkiti is offline
 
Join Date: Dec 2006
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Change the forum ID number for the forum here f=?

I have an old forum that has had forums deleted off of it. Now the forums do not run in numerical order. Example below of what you may now have:
http://www.yourforum.com/forums/forumdisplay.php?f=1
http://www.yourforum.com/forums/forumdisplay.php?f=3
http://www.yourforum.com/forums/forumdisplay.php?f=4
http://www.yourforum.com/forums/forumdisplay.php?f=8
http://www.yourforum.com/forums/forumdisplay.php?f=10
and so on and so forth instead of:
http://www.yourforum.com/forums/forumdisplay.php?f=1
http://www.yourforum.com/forums/forumdisplay.php?f=2
http://www.yourforum.com/forums/forumdisplay.php?f=3
http://www.yourforum.com/forums/forumdisplay.php?f=4
http://www.yourforum.com/forums/forumdisplay.php?f=5
because you have deleted forums in the past.

Is there a way to change the forum ID number of the forums in the first group so you can once again have the forums in numerical order like the last group?

The real question I have is: Is there a way to change the 10 in this link http://www.yourforum.com/forums/forumdisplay.php?f=10 to a 5 so it reads http://www.yourforum.com/forums/forumdisplay.php?f=5?
Reply With Quote
  #2  
Old 03-25-2009, 12:11 PM
nexialys
Guest
 
Posts: n/a
Default

hum, what would it change on your site?

there is no real need for this, as you can basically show your forums the order you want by the settings in your forum manager?!
Reply With Quote
  #3  
Old 03-25-2009, 12:39 PM
bluidkiti bluidkiti is offline
 
Join Date: Dec 2006
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would like to have them in order if possible.

Would doing this break my forum?
Reply With Quote
  #4  
Old 03-25-2009, 12:52 PM
nexialys
Guest
 
Posts: n/a
Default

not breaking, but each threads posted in each forum is attached to the forumID they are in... you would have to have a code that also change that detail... (and the database is "auto-increment", that means it would give a higher number to the next forum you create anyway, breaking your order again)

having them in order is always possible inside the forum manager itself, check this:

Admin CP+>> Forums & Moderators >> Forum Manager

at the right side of each forum you have a field with a number, and you see on top of the list that the field is named "Display Order" ... you simply have to change the number for each forum, ordering them the way you want...
Reply With Quote
  #5  
Old 03-25-2009, 01:07 PM
bluidkiti bluidkiti is offline
 
Join Date: Dec 2006
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
but each threads posted in each forum is attached to the forumID they are in
True, but we are able to move threads from forum to forum therefore changing the original forum ID that the thread was originally in. The same with posts, we are able to move posts.
Reply With Quote
  #6  
Old 03-25-2009, 01:09 PM
nexialys
Guest
 
Posts: n/a
Default

yeap, because someone coded the engine that do the trick... actually there is no such code for what you need, so you will have to find someone to make it so..
Reply With Quote
  #7  
Old 03-25-2009, 01:20 PM
bluidkiti bluidkiti is offline
 
Join Date: Dec 2006
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually I figured out how to do it just a moment ago. You can go into your database and change the forumID there for the forums you wish to do so but you have to keep in mind that when you do so you either need to change all the other information in there so the threads and posts move with the forum once you change the forumID. If you don't change the other information then after you hit save you have to go back to your board and move your threads and posts back into the forum you changed the ID for. Oh yeah, you also have to update your forum information in the admin CP. btw I am trying all this out on a test forum.
Reply With Quote
  #8  
Old 03-25-2009, 01:59 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't forget your access masks and your moderators and there are probably other things too.

Nobody is going to care about the forumid. Believe me, only the admin cares. How often do you look at the forumid at any site you go to that isn't yours? I could tell you the forumids of all my forums on my site, but not a single one here.
Reply With Quote
  #9  
Old 03-25-2009, 02:16 PM
bluidkiti bluidkiti is offline
 
Join Date: Dec 2006
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Lynne for bringing up those other 2 things. I will recheck those when I am done. There is some work involved in doing this but I am willing. I have my reasons for wanting it like this and that's enough for me. I also have the time to do this. If anyone else has anything else they think of that I might need to change in doing this or suggestions, I am very open to them. Thank you for your help with this. It is very much appreciated. :-)
Reply With Quote
  #10  
Old 03-25-2009, 02:37 PM
nexialys
Guest
 
Posts: n/a
Default

a detail about the dB... you'll have to play with the auto-increment element to make it the same number you're at, because you would have a gap in-between your old forums and the new ones you will create... ok, it's mostly impossible to be logical in this: you have to complete your forum restructuration, then export your actual forum table only, with the content, and then check the auto-increment at the end of the table creation. you delete the table and import back the new modified one... test it before on your test forum.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:21 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.07681 seconds
  • Memory Usage 2,243KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete