Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-25-2016, 01:54 PM
talhatc talhatc is offline
 
Join Date: Jul 2016
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Remove "forum" from the url /forums/forum/ - VB 5.2.2

Hi,

We upgraded from VB 4 to VB 5.2.2 and we've expereinced many many broken links. Also, the biggest issue right now is to get rid of the "forum" from the url.

Our forums are located under the /forums/ directory which makes the url www.xyz.com/forums/forum/

We would like it to be
www.xyz.com/forums/ and that's it.

Can please someone point us in the right direction?
Reply With Quote
  #2  
Old 09-25-2016, 04:10 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The short answer is you cannot.

Technically you can change it to something else (not remove) if you do some direct edits in the route table.

I've heard of someone doing it via .htaccess redirects, but I would think that quite flakey.
Reply With Quote
  #3  
Old 09-26-2016, 12:56 AM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OR, you can open site builder on each forum page, edit the url and save. I did it on mine, about 60 forums/categories (at the time), took a couple hours.
Reply With Quote
Благодарность от:
Lynne
  #4  
Old 09-26-2016, 12:34 PM
talhatc talhatc is offline
 
Join Date: Jul 2016
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Replicant View Post
OR, you can open site builder on each forum page, edit the url and save. I did it on mine, about 60 forums/categories (at the time), took a couple hours.
I have 10,000+ forum threads, so should I be changing each page? Or just the category page and all only?
Reply With Quote
  #5  
Old 09-26-2016, 02:38 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Enjoy the vbulletin 5 feature

Also id you can edit the url path like mentioned above, you should be able to put together a db query to run it in the database. Quicker if you have 100's of edits.
Reply With Quote
  #6  
Old 09-26-2016, 04:51 PM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by talhatc View Post
I have 10,000+ forum threads, so should I be changing each page? Or just the category page and all only?
Categories and forums. Not threads thread.
Reply With Quote
  #7  
Old 09-26-2016, 05:24 PM
talhatc talhatc is offline
 
Join Date: Jul 2016
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Replicant View Post
Categories and forums. Not threads thread.

So the individual posts url will remove the /forum/ from it too?
Reply With Quote
  #8  
Old 09-26-2016, 06:45 PM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The individual threads will have the url path of their parent.

On my forum:
before changing the 69-72-first-gen forum url
Code:
http://www.k5blazersplus.com/forums/forum/main-forum/build-threads/chevy/69-72-first-gen/nodeid-thread-name
after changing the url in sitebuilder

Code:
http://www.k5blazersplus.com/forums/69-72-first-gen/nodeid-thread-name
Reply With Quote
  #9  
Old 09-28-2016, 10:04 AM
Mattwhf Mattwhf is offline
 
Join Date: May 2016
Posts: 190
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I also have a same question like yours for my forum but it is impossible to change that unless you have to do custom codes for it like I am using for my forum now.
Reply With Quote
  #10  
Old 09-28-2016, 10:16 PM
talhatc talhatc is offline
 
Join Date: Jul 2016
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Replicant View Post
The individual threads will have the url path of their parent.

On my forum:
before changing the 69-72-first-gen forum url
Code:
http://www.k5blazersplus.com/forums/forum/main-forum/build-threads/chevy/69-72-first-gen/nodeid-thread-name
after changing the url in sitebuilder

Code:
http://www.k5blazersplus.com/forums/69-72-first-gen/nodeid-thread-name
I've edited the page and removed the extra /forum/ but the Sub-forums in the Activity stream still shows the extra /forum/ but once clicked, it removes the extra /forum/.

Let me know how i can get rid of the extra /forum/ from the Activity Stream module
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 07:37 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08850 seconds
  • Memory Usage 2,265KB
  • Queries Executed 13 (?)
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
  • (4)bbcode_code
  • (4)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
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete