#\[gpx\](\d+;\d+)\[/gpx\]#siU
[GPX=\1]Gpx Viewer[/GPX]
#\[gpx\]([^\[]+ )\[/gpx\]#siU
[GPX=\1]Gpx Viewer[/GPX]
/“/siU
“
/”/siU
”
/‘/siU
‘
/’/siU
’
/“|”/siU
"
/‘|’/siU
'
UPDATE xf_post SET message = REPLACE(message, 'domain1.com', 'domain2.com/discussion');
it can be done using mysql/phpmyadmin. i have used a command like this multiple times in the past.
SQL:UPDATE xf_post SET message = REPLACE(message, 'domain1.com', 'domain2.com/discussion');
of course... take a backup and do it on your own risk. maybe someone else could confirm if this command is safe to run.
Hello,
After we converted to xenforo
Some fonts have resized and become small in some posts
They can be manually modified and resized to the largest but they are too many
Is there any help to change them all to the larger?
Eg font
arial
How larger the size to the largest ?
[/QUOTE]For anyone having problems matching strings that span multiple lines, you need to use the s switch on your regex to allow this to work.
For example, a reflex to find the following:
Rich (BB code):[quote] [B]Originally posted by Someone[/B]
Would look like this:
Note that I’m using a case-insentitive (i), multi-line (s) regex that is also ungreedy (U), so it will stop matching at the first [/b] that it comes across.Code:/\[quote\]\s*\[b\]originally posted by (.+)\[/b\]/siU
@Nerbert @EQnoble
How do I replace all instances of:
https://my-forum.com/threads/12345&highlight=keyword
and
https://my-forum.com/threads/12345&highlight=keyword+keyword2
with:
https://my-forum.com/threads/12345
This would resolve a mass of dead links.
#(\[url]https:\/\/my-forum\.com\/threads\/)([0-9]+)\&highlight\=keyword\+keyword2(\[\/url])#siu
Replacement:
\1\2\3
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 249
- XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 88
- XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
- XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1931
- XF\App->run() in src/XF.php at line 328
- XF::runApp() in admin.php at line 13
The regex should be something like this
Code:#(\[url]https:\/\/my-forum\.com\/threads\/)([0-9]+)\&highlight\=keyword\+keyword2(\[\/url])#siu Replacement: \1\2\3
Always test first
@Nerbert @EQnoble
How do I replace all instances of:
https://my-forum.com/threads/12345&highlight=keyword
and
https://my-forum.com/threads/12345&highlight=keyword+keyword2
with:
https://my-forum.com/threads/12345
This would resolve a mass of dead links.
#(https://my-forum\.com/threads/)(\d+).*#siU
\1\2
\[url=('|")?http[s]?:\/\/uberpeople\.net\/x\-apple\-data\-detectors:\/\/([0-9]+)('|")([-a-zA-Z0-9:%_\+\.~\!\$\^#\?&\/='"]+)\[\/url\]
Server Error
preg_match_all(): Unknown modifier '\'
XenForo_Application::handlePhpError()
preg_match_all() in PostReplace/ControllerAdmin/PostReplace.php at line 26
PostReplace_ControllerAdmin_PostReplace->actionReplace() in XenForo/FrontController.php at line 369
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 152
XenForo_FrontController->run() in /home/uberpeop/public_html/admin.php at line 13
We use essential cookies to make this site work, and optional cookies to enhance your experience.