PDA

View Full Version : html in bb code?


hrenos
08-04-2012, 02:18 PM
Im trying to add rafflecopter on my forum,

I find it somehow confusing the all thing..

im getting a code like this from the page

<a id="rc-e5c3550" class="rafl" href="http://www.rafflecopter.com/rafl/display/e5c3550/" rel="nofollow">a Rafflecopter giveaway</a>
<script src="//d12vno17mo87cx.cloudfront.net/embed/rafl/cptr.js"></script>

what do I need to edit or add on bbcodes so I can use this ? I tried searching html to bbcode but it got more confusing for me.

kh99
08-05-2012, 12:45 AM
I'm not sure what you're asking: are you trying to define a bbcode, or insert html in a post? Maybe what you want is to define a custom bbcode and put that in as the replacement.

hrenos
08-05-2012, 09:02 AM
well everytime i make a new giveaway with rafflecopter the "rc-xxxxxxx" changes on their site

I tried to add it to custom bbcodes so I can use rc-xxxxxx

but If I copy the code as I have on 1st op, I can only view that specific giveaway, so Im guessing the "rc-e5c3550" and href= needs to change to something else?

I would like to make it so when I type rc-NEW NUMBER so I can post a different giveaway, I hope I made my self clear now.

Simon Lloyd
08-05-2012, 09:13 AM
the number would have to go inside curly brackets { as the PARAM in the bbcode, something like:

<a id="rc-{e5c3550}" class="rafl" href="http://www.rafflecopter.com/rafl/display/{e5c3550}/" rel="nofollow">a Rafflecopter giveaway</a>
<script src="//d12vno17mo87cx.cloudfront.net/embed/rafl/cptr.js"></script>

so in future you'd just change e5c3550 to the id you want.

kh99
08-05-2012, 10:41 AM
Simon's almost got it, but it would be:

<a id="rc-{param}" class="rafl" href="http://www.rafflecopter.com/rafl/display/{param}/" rel="nofollow">a Rafflecopter giveaway</a>
<script src="//d12vno17mo87cx.cloudfront.net/embed/rafl/cptr.js"></script>

Then in your post it would be e5c3550 (I left off the rc- because in the html you posted, the rc- only appears in one place).

hrenos
08-05-2012, 12:31 PM
that seems to do the trick thank you guys :)