2011-08-08, 03:53 PM
(This post was last modified: 2011-08-08, 03:54 PM by tutmeister.)
I have the following code that I use:
Regular expression:
Replacement:
Usage:
When I test it in the admin sandbox, it works. See the attached screenshot:
In the actual post it doesn't work, as something is parsing the image out to look like this:
Can someone help me find what is parsing it like that and maybe resolve the issue?
Regular expression:
\[award\](.*?), (.*?), (.*?), (.*?)\[/award\]
Replacement:
<div style="clear:both;border:2px solid #90BBF0;width:550px;">
<div style="border:2px solid #618CDF;">
<div style="border:2px solid #3D69C2;padding:10px;background-color:#000;color:#FAFAFA;">$1 has been awarded the <span style="color:#F00;font-weight:bold;">$2</span> with the following citation:
<br /><br />
<center><img src="$3" /></center>
<p style="font-style:italic;">"$4"</p>
</div>
</div>
</div>
Usage:
[award]John Doe, Example award, http://www.example.com/images/example.gif , Test caption[/award]
When I test it in the admin sandbox, it works. See the attached screenshot:
In the actual post it doesn't work, as something is parsing the image out to look like this:
<img src="%3Ca%20href=" http:="" www.example.com="" images="" example.gif"="" target="_blank">http://www.example.com/images/example.gif " />
Can someone help me find what is parsing it like that and maybe resolve the issue?