MyBB Community Forums

Full Version: Why is this MyCode not working?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Regular expression
\[imgborder=(.*?)\](.*?)\[/imgborder\]

Replacement
<img border="$1" src="$2" />

This one works when I try it in Sandbox -> https://i.gyazo.com/49bedf840e60f6ba1151...f4d969.png but when I use it on threads, it doesn't work anymore (there's no border) -> https://i.gyazo.com/bc72b1833fbbfcb0d404...073d19.png
Try this:

Regular expression
\[imgborder=([0-9]+)\](.*?)\[/imgborder\]

Replacement
<img style="border:$1px solid;border-color:inherit;" src="$2" alt="" />
(2015-12-06, 11:58 PM)SvePu Wrote: [ -> ]Try this:

Regular expression
\[imgborder=([0-9]+)\](.*?)\[/imgborder\]

Replacement
<img style="border:$1px solid;border-color:inherit;" src="$2" alt="" />

Working, thanks a lot! Marked as solved