MyBB Community Forums

Full Version: Raffle copter my code Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to get Raffle copter into my forum posts and thought of using mycode for that.

So here is my my code

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

Replacement
<a id="rc-defa460" class="rafl" href="$1" >a Rafflecopter giveaway</a>
<script src="//d12vno17mo87cx.cloudfront.net/embed/rafl/cptr.js"></script>

What I want to do is that the mycode takes the URL and substitutes in the above code.

Here is the original raffle copter code
<a id="rc-defa460" class="rafl" href="http://www.rafflecopter.com/rafl/display/defa460/" rel="nofollow">a Rafflecopter giveaway</a>
<script src="//d12vno17mo87cx.cloudfront.net/embed/rafl/cptr.js"></script>