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!
2024-11-20, 11:45 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!
What file needs to be modified?
2024-11-21, 07:19 AM
In various threads of yours I just read the question about which file you have to edit for this.
The edits all take place in the ACP, take a look at your admin area, you will discover a lot
The edits all take place in the ACP, take a look at your admin area, you will discover a lot
2024-11-21, 07:39 AM
(2024-11-21, 07:19 AM)bv64 Wrote: [ -> ]In various threads of yours I just read the question about which file you have to edit for this.
The edits all take place in the ACP, take a look at your admin area, you will discover a lot
I've used the ACP and edited template files before.
But sometimes I make mistakes, so I wanted verification before preceding.
2024-11-21, 07:47 AM
it's good that you've already done that, because that's how you should always do it!
but the templates are not files, they are in the database!
in this case it would be
ACP --> Configuration --> MyCode where you can create a new code
never forget to back up your data, copy and save the template before tinkering with it; saves many hours that can be spent elsewhere in a more useful and enjoyable way
but the templates are not files, they are in the database!
in this case it would be
ACP --> Configuration --> MyCode where you can create a new code
never forget to back up your data, copy and save the template before tinkering with it; saves many hours that can be spent elsewhere in a more useful and enjoyable way