MyBB Community Forums
Custom Mycode URL Problem - Printable Version

+- MyBB Community Forums (
+-- Forum: Development (
+--- Forum: MyBB 1.8 Development (
+---- Forum: 1.8 Bugs and Issues (
+----- Forum: Rejected (
+----- Thread: Custom Mycode URL Problem (/thread-216890.html)

Custom Mycode URL Problem - User 2877 - 2018-04-11

Seems that at some point an update to the parser has broken some of my custom MyCode.



<script type="text/javascript" src="//$1"></script>

Unfortunately it seems that it gets parsed as a URL despite it being custom MyCode.  

I seen some Github reports and tried to use the latest class_parser.php to my test site but still no good. I tried also to change parse order.

This worked before. Unsure when it broke.

I thought custom MyCode overwrote any default parsing?

Please advise. This is going to effect a few of my custom MyCodes as well as everyone else with a MyBB forum.

RE: Custom Mycode URL Problem - .m. - 2018-04-11

IIRC, Script replacement for MyCode was removed in a recent version of MyBB ..

RE: Custom Mycode URL Problem - User 2877 - 2018-04-11

Unsure what you're saying?

This is related to auto_url_mycode().

I can do SCRIPT fine. The replacement works. It's that the URL from the mycode regex doesn't work.


Just an example that's easier to under which doesn't work.




I went through the github changes. This is last working version in Oct 2017 :

This commit broke it: