MyBB Community Forums

Full Version: MyCode Image not Parsing?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm having a bit of an issue with one of my MyCodes. Its not parsing properly, and I'm not sure why.

I am using theĀ  YourCode plugin.

Regular Expression
\[wantImage\](.*?)\[/wantImage\]

Replacement
<!-- BEING MINI-PROFILE AREA-->
<div class="canon_holder" style="margin: 10px;">
<div class="canon_container">
<div class="canon_content"> 

<div class="canon_avatar" style="background:url($1);"></div>


Result:
[Image: 24fdd70ab3f206e2816f930b0016bc50.png]


Aside from the image just being a link, I got all my code to fall into place. I'd love some help with why its doing this.

Thank you!
This is because MyBB first parses url to create links and then parses custom MyCode.
So, your rendered html becomes:
<!-- BEING MINI-PROFILE AREA-->
<div class="canon_holder" style="margin: 10px;">
<div class="canon_container">
<div class="canon_content"> 
<br>
<div class="canon_avatar" style="background:url(<a href=" https:="" imgur.com="" ily2mym.png"="" target="_blank" rel="noopener">https://imgur.com/ily2mYm.png);"&gt;</div>
Not sure you can easily modify this
:/ well, that truly sucks