vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   html in bb code? (https://vborg.vbsupport.ru/showthread.php?t=286309)

hrenos 08-04-2012 02:18 PM

html in bb code?
 
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 [raffle] rc-xxxxxx[/raffle]

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 [raffle] rc-NEW NUMBER[/raffle] 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:

Code:

<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 [raffle]e5c3550[/raffle] (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 :)


All times are GMT. The time now is 10:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01060 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete