2024-05-19, 12:32 PM
2024-05-19, 01:14 PM
Use https://community.mybb.com/thread-192687.html, as https://platform.x.com/widgets.js redirects to https://platform.twitter.com/widgets.js
Probably later, https://platform.x.com/widgets.js will be the real url
Probably later, https://platform.x.com/widgets.js will be the real url
2024-07-24, 12:22 PM
Sadly, it doesn't work.
Using the same tweet but with twitter.com works fine. But if I use x.com it doesn't load.
Using the same tweet but with twitter.com works fine. But if I use x.com it doesn't load.
2024-07-25, 02:08 PM
The one I use works for either "Twitter" or "X"
Regex:
Replacement:
The last part of the replacement is just copying the link into a spoiler (the "tlinkie" is a MyCode which creates a 'Spoiler' to hide the link) which you don't need actually!
Regex:
\[twitter\]https://[twitterx]+\.com(/[A-Za-z0-9_-]+/status/[0-9?Ss=]+)\[/twitter\]
Replacement:
<blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr"></p><a href="https://twitter.com$1"></a></blockquote>
<script async="" src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
<p>[tlinkie]<a href="https://x.com$1" target="_blank">https://x.com$1</a>[/tlinkie]</p>
The last part of the replacement is just copying the link into a spoiler (the "tlinkie" is a MyCode which creates a 'Spoiler' to hide the link) which you don't need actually!
2024-07-25, 08:02 PM
(2024-07-25, 02:08 PM)lost puppy Wrote: [ -> ]The one I use works for either "Twitter" or "X"
Regex:
\[twitter\]https://[twitterx]+\.com(/[A-Za-z0-9_-]+/status/[0-9?Ss=]+)\[/twitter\]
Replacement:
<blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr"></p><a href="https://twitter.com$1"></a></blockquote> <script async="" src="//platform.twitter.com/widgets.js" charset="utf-8"></script> <p>[tlinkie]<a href="https://x.com$1" target="_blank">https://x.com$1</a>[/tlinkie]</p>
The last part of the replacement is just copying the link into a spoiler (the "tlinkie" is a MyCode which creates a 'Spoiler' to hide the link) which you don't need actually!
That works great, thank you!