...
Scroll down to what is now line (47) then find and highlight all of the following:
replace with the following:PHP:$dw->setExistingData($post, true); $dw->set('message', $message);
PHP:$dw->setExistingData($post, true); if($input['silent']) { $dw->set('last_edit_date', 0); } $dw->set('message', $message);
...
#https://example.com/register.php#siu
https://example.com/login
UPDATE xf_post SET message = REPLACE(message, 'https://example.com/register.php', 'https://example.com/login');
FIND & REPLACE IN XENFORO DATABASE POST TABEL:
[IMG]http://forum.mydomain.com/images/rating/star1.png[/IMG]
[IMG]http://forum.mydomain.com/images/rating/star2.png[/IMG]
[IMG]http://forum.mydomain.com/images/rating/star3.png[/IMG]
[IMG]http://forum.mydomain.com/images/rating/star4.png[/IMG]
[IMG]http://forum.mydomain.com/images/rating/star5.png[/IMG]
[IMG]http://forum.mydomain.com/images/rating/star6.png[/IMG]
[IMG]http://forum.mydomain.com/images/rating/star7.png[/IMG]
[IMG]http://forum.mydomain.com/images/rating/star8.png[/IMG]
[IMG]http://forum.mydomain.com/images/rating/star9.png[/IMG]
[IMG]http://forum.mydomain.com/images/rating/star10.png[/IMG]
REPLACE WITH:
[IMG]http://forum.mydomain.nl/styles/default/mydomain.nl/review_rating/star1.png[/IMG]
[IMG]http://forum.mydomain.nl/styles/default/mydomain.nl/review_rating/star2.png[/IMG]
[IMG]http://forum.mydomain.nl/styles/default/mydomain.nl/review_rating/star3.png[/IMG]
[IMG]http://forum.mydomain.nl/styles/default/mydomain.nl/review_rating/star4.png[/IMG]
[IMG]http://forum.mydomain.nl/styles/default/mydomain.nl/review_rating/star5.png[/IMG]
[IMG]http://forum.mydomain.nl/styles/default/mydomain.nl/review_rating/star6.png[/IMG]
[IMG]http://forum.mydomain.nl/styles/default/mydomain.nl/review_rating/star7.png[/IMG]
[IMG]http://forum.mydomain.nl/styles/default/mydomain.nl/review_rating/star8.png[/IMG]
[IMG]http://forum.mydomain.nl/styles/default/mydomain.nl/review_rating/star9.png[/IMG]
[IMG]http://forum.mydomain.nl/styles/default/mydomain.nl/review_rating/star10.png[/IMG]
www.example.com/forum/showthread.php?t=4596
http://www.example.com/threads/4596/
http://www.example.com/forum/profile.php?do=editoptions
http://www.example.com/account/preferences
Does anybody have a list of replacements to run to convert most vb3.8 urls in posts to xenforo urls? How about vb4 urls to xenforo urls?
For example:
Convert this style of linktoCode:www.example.com/forum/showthread.php?t=4596
Code:http://www.example.com/threads/4596/
And thistoCode:http://www.example.com/forum/profile.php?do=editoptions
Code:http://www.example.com/account/preferences
I don't really have a problem figuring out most of the regex for these simple conversions (and some might be easier with a query), but a list of things to replace would save a lot of time.
http://www.example.com/forum/showthread.php?t=
#http://www.example.com/forum/showthread.php\?t=([0-9]+)#siu
http://www.example.com/threads/\1
[URL='http://[media=youtube]-wBH6HXidO4[/media]'][media=youtube]-wBH6HXidO4[/media][/URL]
[media=youtube]-wBH6HXidO4[/media]
I've been trying for a couple of hours to try and fix some old content I've found on my site, but seems my regex building is just not strong enough and/or I'm not grasping it properly.
I'm trying to change;
intoCode:[URL='http://[media=youtube]-wBH6HXidO4[/media]'][media=youtube]-wBH6HXidO4[/media][/URL]
Could anyone assist with the correct regex please?Code:[media=youtube]-wBH6HXidO4[/media]
[media=youtube]
#\[URL='http://(\[media=youtube][a-z0-9_-]{11}\[/media])']\1\[/url]#siu
\1
Thanks! Unfortunately, it didn't find any results.Try this (untested as of yet)
[URL='http://[media=youtube]8YiKZJar-lk[/media]'][media=youtube]8YiKZJar-lk[/media][/URL]
Thanks, appreciate the assistance.I'm going to call out user error here or whatever this is... now that I have tested both your examples with the one expression/replacement and well...you can see for yourself.
Didn't help, unfortunately.change the quick search (in post replacement tool) to youtube and see what it nets you, though you shouldn't need to do this...
We use essential cookies to make this site work, and optional cookies to enhance your experience.