2022-09-14, 01:34 AM
Hello, I am trying to make a custom MyCode that acts as a custom video embed. It's working fine in the preview, but in an actual post, it is blank. I've boiled it down to an extremely simple mycode that still reproduces the error:
Expression:
Replacement:
(yes I realize the replacement doesn't actually use the regular expression capture group, this is just for testing)
So when I put [x]test[/x] in the sandbox, I get a correct HTML and actual result:
But if I make a new post with the exact same content:
This is a completely vanilla MyBB instance I spun up for testing, assuming one of my plugins was causing the problem, but it's not. I have tested Firefox, Edge, and Chrome from two different computers, all the same result. Really hoping someone here's knows what going on? Thanks!
Expression:
\[x\](.*?)\[/x\]
Replacement:
<video controls>
<source src="https://ia800701.us.archive.org/26/items/SampleVideo1280x7205mb/SampleVideo_1280x720_5mb.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
(yes I realize the replacement doesn't actually use the regular expression capture group, this is just for testing)
So when I put [x]test[/x] in the sandbox, I get a correct HTML and actual result:
But if I make a new post with the exact same content:
This is a completely vanilla MyBB instance I spun up for testing, assuming one of my plugins was causing the problem, but it's not. I have tested Firefox, Edge, and Chrome from two different computers, all the same result. Really hoping someone here's knows what going on? Thanks!