MyBB Community Forums

Full Version: A custom MyCode works in the Admin sandbox but not in actual posts?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So, I'm trying to get a BlueSky embed working on my forum and they do not make it easy.

I realized though that the BlueSky "embed post" function gives you the full "<blockquote> + <script>" combo to copy & paste that Twitter uses for embeds (i.e., it's already giving what my working Twitter MyCode spits out when you give it a normal twitter url to use).

So, I tried just creating the simplest tags possible and the replacement is literally just the whole 'embed post' block the site gives you (i.e., the content in the regular expression is just (.*?) and the replacement is just $1)

This actually works...but only in the Custom MyCode sandbox. When I try and use it on the forum, it just returns the text.


Any clue as to why? Gotta say it's not much of a sandbox if it doesn't reflect how the forum works.