MyBB Community Forums

Full Version: Twitter MyCode Issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everyone.

I'm using this MyCode to embed tweets onto my board: https://community.mybb.com/thread-192687.html

However for some reason the tweets are rendering like this in posts:

[Image: 1LZ2uHm.png]

<blockquote class="twitter-tweet twitter-tweet-error" data-lang="en" data-twitter-extracted-i1528307441146697487="true"><p lang="en" dir="ltr"><a href="&lt;a href=" https:="" twitter.com="" gameinformer="" status="" 1004045334581071873"="" target="_blank" rel="noopener" class="mycode_url">https://twitter.com/gameinformer/status/...4581071873</a>"&gt;</p></blockquote>

This is what gets rendered by my browser when I inspect the embedded tweet. It occurs on the default theme too so the problem isn't on a specific theme.

The tweets display fine when I test the code in my Admin CP too. It's just on the board it does this.
Can you share your website URL ?
(2018-06-07, 04:39 AM)WallBB Wrote: [ -> ]Can you share your website URL ?
It turned out the class_parser.php file had a problem in it that was causing problems with embeds as a whole, so I managed to fix it already. Wink
Reviving this from the dead as I'm having the same (I think) issue.

What seems to be happening, is when you type/paste the twitter URL between the tags, the editor recognises this as a URL and converts it to a URL.. and this prevents the twitter mycode from working. You just get the result shown in the screengrab in the OP.

If you 'remove hyperlink' on it before you post or in an edit.. it fixes the issue.

Anyone else experienced this or got a solution ?