2013-05-14, 07:26 AM
Compatible with all major browsers and IE7+, works best with Javascript enabled.
After reading this post by brad I decided to give something like it a try.
What you can expect from this MyCode
[attachment=32074]
(External link as well as name of what you're quoting from, both of which are optional)
Regular Expression:
Replacement:
Usage:
Lastly you have to upload the attached image to your "forum_root/images/" directory.
[attachment=29315]
After reading this post by brad I decided to give something like it a try.
What you can expect from this MyCode
[attachment=32074]
(External link as well as name of what you're quoting from, both of which are optional)
Regular Expression:
\[quote(?: )?(?:name=(?:"|\"|')?([^"]+)[\"']?(?:"|\"|')?)?(?: )?(?:url=(?:"|\"|')?([^"]+)[\"']?(?:"|\"|')?)?\]((.*?|(?R))*)\[\/quote\](\r\n?|\n?)
Replacement:
<blockquote><cite class="clear"><b id="quote_name">$1 said:</b><a href="$2" target="_blank" style="float: right;"><img src="images/external_link.png" alt="External Quote Link" /></a></cite>$3</blockquote>
<style type="text/css">blockquote a[href=''] { display:none; }</style><script type="text/javascript">var quoteName = document.getElementById('quote_name');if(quoteName.innerHTML == " said:"){quoteName.innerHTML = 'Quote:';}</script>
Usage:
[quote name="Google" url="http://google.com"]Quote text here[/quote]
Lastly you have to upload the attached image to your "forum_root/images/" directory.
[attachment=29315]