Quick Find:
Code:[URL]http://
Regular expression: *replace DOMAIN with your domain - if not a .com replace com with whatever it is
Code:#(\[url]http://)(?:www\.)(DOMAIN\.com(?:[^\[]+)?\[/url])#siu
Replacement String:
Code:\1\2
Do me a favor and hit edit on one of the posts with your link in it and paste that in a code block here so I can see what is actually in the post.It doesn't include URLs like www.domain.com/forums/test-lala/hello-4.html
Do me a favor and hit edit on one of the posts with your link in it and paste that in a code block here so I can see what is actually in the post.
dear members kindly share your knowledge at the thread
http://www.defence.pk/forums/wmd-missiles/20716-surface-air-missile-7.html
Ok thats what it was supposed to do...there is something I am not seeing on your board which I can't account for by a guess...I had you run that expression to verify that there is a lot of those links, make note of the number...this is how we can check that we catch them all later.yeah that finds lots, but only up to the glossary.php point or the /glossary/ point.
Code:dear members kindly share your knowledge at the thread http://www.defence.pk/forums/wmd-missiles/20716-surface-air-missile-7.html
Here...
I need you to look over that list and find see if their are any drastic differences in the first and last 5 characters of the entries. Without having access to your board I would guess that the problem should reveal itself within those 5 charactersYep that seems to work too. What next?
When you hit edit on the post , also switch to the bbcode editor. I need the output including the bbcode tags if any like this..
[URL]http://blah.com[/URL]
or
[URL='http://blah.com']Click here to read about blah[/URL]
Post all the news and updates of Gwadar here. :bounce:
Old thread can be found here: [URL]http://www.defence.pk/forums/economy-development/1232-gwadar-jewel-crown-13.html[/URL]
~req cont.
[url
#(\[url)(]|=')((http://)(?:www\.))(defence\.pk[^\[']+)(']([^\[]+))?(\[/url])#siu
\1\2\4\5\6\8
~req cont.
[url
#(\[url=')(http://www\.)(travelstories\.gr/glossary(?:\.|/)[^\']+)(('])([^\[]+))?(\[/url])#siu
\6
Do we still need this for 1.2?
There is nothing saying anyone needs this, it is a tool primary used for editing posts after an import, rewriting bbcodes whose syntax/embed method has changed and fixing other post oddities that come from moving from one system to another.
If you didn't start using a different bbcode recently (for one you already had that works differently) or if you did not import a db you probably wont need this, but yes if you need to do post replacements, this will need to be installed as an addon.
No problem, but yeah it's not included because this is not a tool most people are going to use all of the time.Thanks, I was wondering whether it's built into 1.2 or not.
I would say no I wouldn't think the search has anything to do with this.Does the search has to be rebuild to run this? After migration?
I haven't rebuilt the search and running this, and getting time out errors even though i have decreased the limit to 500 via modification.
UPDATE xf_post
SET message = REPLACE(message, 'https://8thos.com', 'http://8th.us');
We use essential cookies to make this site work, and optional cookies to enhance your experience.