MyBB Community Forums

Full Version: How to embed tweets?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, how can I embed tweets?


I've tried this;

https://community.mybb.com/thread-228208...pid1381926

However if I do add it like this

[attachment=45627]

it shows up all empty

[attachment=45626]

So anything I do wrong?
Your HTML has no closing </p> tag.
(2022-12-10, 05:06 PM)Matt Wrote: [ -> ]Your HTML has no closing </p> tag.

<blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr"><a href="$1"></a></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script></p>

<blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr"></p><a href="$1"></a></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

<blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr"><a href="$1"></a></p></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
Where exactly should I close it?
I tried to close it on 3 spots, but its all the same.
The last one is correct.

If it’s still not working, try it with other content in the post. Do you have a URL to the page?
(2022-12-10, 08:00 PM)Matt Wrote: [ -> ]The last one is correct.

If it’s still not working, try it with other content in the post. Do you have a URL to the page?

Yes still not working. Even if I add some text to it, it stays all empty. 

https://jrocknroll.com/forum/showthread.php?tid=23
There appears to still be something wrong with the MyCode then. Follow these steps: https://docs.mybb.com/1.8/faq/errors/#pa...ion-failed
(2022-12-10, 08:54 PM)Matt Wrote: [ -> ]There appears to still be something wrong with the MyCode then. Follow these steps: https://docs.mybb.com/1.8/faq/errors/#pa...ion-failed


Ah... got it fixed

This should be enabled: 

Miscellaneous Options
Yes, allow HTML in posts
It’s probably the script tag that’s the issue there then. You don’t really want to enable HTML in posts as now anyone can use any HTML. Try putting the script tag in the footer template instead of the MyCode replacement.