The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Need change static URL in posts after move server
Hi,
Hope some1 can help us with the change of 660 static URL's in posts inside the mysql database after move from server and also change of the vbulletin root locatie. For example : http://www.eurovan2.com/modules/vbulletin/upload/......... ( old situation ) http://www.eurovan2.com/forum/........... (new situation ) So exactly need a forumular to change /modules/vbulletin/upload/ to /forum/ inside the posts so all the old threads can be looked in on the new server. I hope some1 can help us out with this problem, because we'r not really sql guru's. Many thanks |
#2
|
||||
|
||||
Actually very simple:
[SQL]UPDATE post SET pagetext = REPLACE (pagetext, '/modules/vbulletin/upload', '/forum')[/sql] remember always do a backup before running such queries |
#3
|
||||
|
||||
[sql]UPDATE post SET pagetext = REPLACE(pagetext, 'http://www.eurovan2.com/modules/vbulletin/upload/', 'http://www.eurovan2.com/forum/')[/sql]
You might also want to reset pre-parsed posts: [sql]TRUNCATE post_parsed[/sql] |
#4
|
|||
|
|||
Hi,
Many thanks for all help, this sql query worked perfectly many many thanks. :up: |
#5
|
||||
|
||||
you're welcome Gerd
|
#6
|
|||
|
|||
I had to do this some time ago when we moved the site. I have never understood why the default behaviour is not to use special relative URL's for self-referencing links -- links to the current home URL. Self-referencing links would be stored relative, with a [homeurl] prefix (or whatever) and be expanded when the post is retrieved.
|
#7
|
||||
|
||||
Even more so I have wondered why post content is not parsed to see if it is local contact and if so to make links open in the same window, and to open in a new window if the content is heading offsite ...
|
#8
|
|||
|
|||
Bugs me too. The behavior you suggest is more like other forum software. (One exception I do not mind is attachment fetching.)
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|