Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 04-26-2013, 05:10 PM
ghostofkc ghostofkc is offline
 
Join Date: Jul 2009
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Changing vb5.0 urls

I just set up a new install of VB5.0 after a recent upgrade. Not even sure what this is called to search for it. Sorry for the probably duplicated post -

My problem is this -

I renamed the default forum from "main-forum" to "new_name" but the url still says
"mysite.com/forum/main-category/main-forum"
when I want it to say
"mysite.com/forum/new_name"

This seems like something that should automatically update or there should be an update tool somewhere for the links.

Anyone know what I should do?


Thanks!
Reply With Quote
  #2  
Old 04-26-2013, 06:48 PM
Ben.Smith Ben.Smith is offline
 
Join Date: Apr 2013
Location: Germany
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not that sure whether that can be configured in vB itself or not.

So once looking through the options, i'd go for a url-rewrite in your .htaccess file
Reply With Quote
  #3  
Old 04-26-2013, 07:00 PM
ghostofkc ghostofkc is offline
 
Join Date: Jul 2009
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

but the link is being generated by vbulletin its not something i am making by hand. I just renamed an existing forum but it did not change the name in the URL.

http://knightsofchaos.org/forum/main-category that link points to a forum called "public news" not main-category. Can I not rename existing forums anymore?
Reply With Quote
  #4  
Old 04-26-2013, 07:34 PM
Ben.Smith Ben.Smith is offline
 
Join Date: Apr 2013
Location: Germany
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just tried it and it works for me.

Did you try clearing the system cache?
Reply With Quote
  #5  
Old 04-26-2013, 07:46 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's a bug - http://tracker.vbulletin.com/browse/VBV-6125

It needs to be done via that database - the routenew table, field regex - and there should be two rows to change (the routeids should be consecutive). Actually, if it is a parent forum, then you would have to also change it for all the rows of the child forums also.

Make sure you do a database backup prior to making ANY changes to your database!!!!
Reply With Quote
  #6  
Old 04-26-2013, 08:50 PM
ghostofkc ghostofkc is offline
 
Join Date: Jul 2009
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the information - I will just switch back to version 4 and upgrade when 5 is ready. Its not worth messing around with the database. Hopefully a fix comes out in the next few weeks:up:
Reply With Quote
  #7  
Old 05-29-2018, 03:25 AM
JesusSuarz's Avatar
JesusSuarz JesusSuarz is offline
 
Join Date: Jun 2009
Location: Venezuela
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello

The best way to achieve this is with a sql statement.

run this on phpmyadmin to leave your forum at yourforum.com/

Code:
UPDATE routenew SET prefix = REPLACE(prefix, 'forum/', '');
UPDATE routenew SET regex = REPLACE(regex, 'forum/', '');
the url will remain as yourforum.com/sub-forum/asdasdasd

if you want your forum to be otherwise.

For example: yourforum.com/foro2/sub-forum

then it will be like this:


Code:
UPDATE routenew SET prefix = REPLACE(prefix, 'forum/', 'foro2');
UPDATE routenew SET regex = REPLACE(regex, 'forum/', 'foro2');

please remember to create backup of your database before doing this.


You can see a demo on my site.

https://hastlegames.com
Reply With Quote
  #8  
Old 09-26-2018, 07:15 AM
Cruisey Cruisey is offline
 
Join Date: May 2018
Location: UK
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JesusSuarz View Post
Hello

The best way to achieve this is with a sql statement.

run this on phpmyadmin to leave your forum at yourforum.com/

Code:
UPDATE routenew SET prefix = REPLACE(prefix, 'forum/', '');
UPDATE routenew SET regex = REPLACE(regex, 'forum/', '');
the url will remain as yourforum.com/sub-forum/asdasdasd

if you want your forum to be otherwise.

For example: yourforum.com/foro2/sub-forum

then it will be like this:


Code:
UPDATE routenew SET prefix = REPLACE(prefix, 'forum/', 'foro2');
UPDATE routenew SET regex = REPLACE(regex, 'forum/', 'foro2');

please remember to create backup of your database before doing this.


You can see a demo on my site.

https://hastlegames.com
Based on this, do we need to always manually run that script/code? Is this permanent when a user creates a new content? I'll start a new topic on this subject.
Reply With Quote
  #9  
Old 09-27-2018, 04:21 AM
delicjous's Avatar
delicjous delicjous is offline
 
Join Date: Nov 2014
Posts: 352
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I Think that is not the best way and I know there are some tutorials(in posts) from wayne at vbulletin.com but I could not find it with my quick search.

I think you could edit the url by editing the template in sitebuilder...
Reply With Quote
Благодарность от:
In Omnibus
  #10  
Old 09-27-2018, 07:10 AM
In Omnibus's Avatar
In Omnibus In Omnibus is offline
 
Join Date: Apr 2010
Location: Inside A Blade Server
Posts: 840
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This thread is five years old and, no, the best way to change a URL is not to use a replace command. The best way is to actually change the root URL. vBulletin 5 redirects URLs from previous versions without running SQL commands.
Reply With Quote
Благодарность от:
delicjous
Reply

Thread Tools
Display Modes

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 12:15 AM.


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.07113 seconds
  • Memory Usage 2,256KB
  • 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
  • (4)bbcode_code
  • (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
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)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_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