MyBB Community Forums

Full Version: Custom MyCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Basically, I'm trying to create a custom MyCode that works like [CODE] tags but allows me to make the link clickable (parsed). I followed the following thread:

http://community.mybb.com/thread-83680-post-639523.html

but I still cannot get it to work. Any help?
Did you read this part of the thread?
http://community.mybb.com/thread-83680-p...#pid639523
(I edited the noparse code, because it would work for html so, voila)


Hmm, let me see if there's is something good for you...
\[urlcode\](.*?)\[url=(.*?)\](.*?)\[/url\](.*?)\[/urlcode\]

HTML Replacement:
<div class="codeblock">
<div class="title">Code:<br>
</div><div class="body" dir="ltr"><code>$1</code><a href="$2" target="blank">$3</a>$4</div></div>


Although, that is only good for one url, I still recommend you use the link above.