TheGroove
Well-known member
I'm trying to convert all Twitter bbcode posts into simple links before disabling it.
This is how it parses out by default the code after the full link is added
This is the query I'm attempting to use
This is what it looks like after I run the query, notice the only part that is launchable is the number, I'm obviously missing something here but it feels close.
This is how it parses out by default the code after the full link is added
HTML:
https://twitter.com/i/web/status/1597713774244306944
HTML:
[MEDIA=twitter]1597713774244306944[/MEDIA]
This is the query I'm attempting to use
SQL:
UPDATE xf_post SET message = REPLACE(message, '[MEDIA=twitter]', 'https://twitter.com/i/web/status/[URL]');
UPDATE xf_post SET message = REPLACE(message, '[/MEDIA]', '[/URL]');
This is what it looks like after I run the query, notice the only part that is launchable is the number, I'm obviously missing something here but it feels close.