Can someone help I need to replace this:
Code::)thumbsup:) to :thumbsup:
:)thumbsup:)
/:\)thumbsup:\)#siU
:thumbsup:
I converted an old VB into XF. The old VB has external Links http/domainOLD/data/1.pdf, http/domainOLD/data/XYZ.doc etc.
Can I use this tool to replace only one part of the old URL like https://domainNEW/data/ ??
I need a regular exp. for that.
http://domainOLD.com
#http:\/\/domainOLD\.com\/data\/([^\s]+)#siU
https://domainNEW.com/data/\1
[STRIKE][COLOR=#333333]Not [/STRIKE] [/COLOR][COLOR=#ff0000]Each [/COLOR]one [STRIKE]more[/STRIKE]
[s][COLOR=#333333]Not [/STRIKE] [/COLOR][COLOR=#ff0000]Each [/COLOR]one [STRIKE]more[/s]
Awesome! Thank you BroganIf you are just looking to replace strike with s then I would go with a simple query run against the DB.
SQL:UPDATE xf_post SET message = REPLACE(message, 'STRIKE]', 's]');
That should catch all opening and closing instances of it.
[URL]https://www.youtube.com/watch?v=u9Dg-g7t2l4[/URL]
[URL]https://www.youtube.com/watch?v=
\[URL\]https:\/\/www.youtube.com\/watch\?v=([\w\-]+?)\[\/URL]
[MEDIA=youtube]$1[/MEDIA]
[URL] youtube.com [/URL]
and [URL] youtu.be [/URL]
links....[url
#(\[url(?:]|[^]]+]))http(?:s)?://(?:www\.)?(?:[a-z0-9-]+\.)?youtu(?:be\.com/(?:[a-z]+(?:/api/videos/)?)|\.be)(?:\?v=|/)?([a-z0-9_-]{11})(?:[^\s[]+)?(\[/url])#siu
[MEDIA=youtube]\2[/MEDIA]
[sharedmedia=core:attachments:1234]
[ATTACH]1234[/ATTACH]
We haven't used this add-on for ages, so just updated to the very latest version but come across this error.ErrorException: [E_WARNING] preg_match_all(): Empty regular expression in src/addons/XFPR/Admin/Controller/PostReplace.php at line 41
- XF::handlePhpError()
- preg_match_all() in src/addons/XFPR/Admin/Controller/PostReplace.php at line 41
- XFPR\Admin\Controller\PostReplace->actionReplace() in src/XF/Mvc/Dispatcher.php at line 350
- XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
- XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
- XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
- XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2326
- XF\App->run() in src/XF.php at line 488
- XF::runApp() in admin.php at line 13
Try this database query suggested above. Dont forget to replace the find and replace keywords.We haven't used this add-on for ages, so just updated to the very latest version but come across this error.
All I'm trying to do is search for "vin998" and replace with "vin499"
I think it's because I'm not putting in a 'regular expression'. Can anyone help as to what that should be?
Any ideas?
UPDATE xf_post SET message = REPLACE(message, 'STRIKE]', 's]');
There are so many TV show will issue the new season in the new year,but not sure these ones such as [url=http://www.dvdsetpro.com]Charemed[/url]
[url=http://www.dvdsetpro.com] Buffy The Vampire Slayer [/url]
[url=http://www.dvdsetpro.com The Sopranos [/url]
[url=http://www.dvdsetpro.com The Sopranos [/url]
[url=http://www.dvdsetpro.com] The Sopranos [/url]
We use essential cookies to make this site work, and optional cookies to enhance your experience.