![]() |
Custom Mycode URL Problem - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Development (https://community.mybb.com/forum-161.html) +--- Forum: MyBB 1.8 Development (https://community.mybb.com/forum-165.html) +---- Forum: 1.8 Bugs and Issues (https://community.mybb.com/forum-157.html) +----- Forum: Rejected (https://community.mybb.com/forum-184.html) +----- 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.
Replacement:
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. EDIT: Just an example that's easier to under which doesn't work.
EDIT 2: I went through the github changes. This is last working version in Oct 2017 : https://raw.githubusercontent.com/lairdshaw/mybb/72208b5b48f2684153352195b4b294f7f5851838/inc/class_parser.php This commit broke it: https://github.com/lairdshaw/mybb/commit/1b63811f24d915fd48312843fbe0dcf10b707edd#diff-49e2868c640f936a9a08acaabb34733c |