Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
BBC Comedy BB Code Details »»
BBC Comedy BB Code
Version: 1.00, by cheat-master30 cheat-master30 is offline
Developer Last Online: Apr 2010 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 3.8.x Rating:
Released: 01-27-2010 Last Update: Never Installs: 6
Re-useable Code Translations  
No support by the author.

Yes, it's legal, and it allows you to embed the various videos here on the BBC site:

http://www.bbc.co.uk/comedy/extra/

Of course, without the hassle of trying to dissect the given HTML they give you to embed on blogs and social networking profiles and turn it into BB code manually (it's messy code by default, really, really messy coding). Of course, you should probably read the terms they have first, and if anyone here knows what player style choices there are, I'll add that to the BB code.

http://www.bbc.co.uk/emp/terms/

But now, after about twenty minutes of HTML entity decoding, here's the code:

For the comedy extra videos, use this:

Title: BBC Comedy

Tag: BBC

Replacement:

Code:
<object width="512" height="400"><param name="movie" value="http://www.bbc.co.uk/emp/external/player.swf"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><param name="FlashVars" value="config_settings_showUpdatedInFooter=true&amp;config_settings_showPopoutButton=false&amp;config_settings_skin=black&amp;config_settings_bitrateCeiling=1000&amp;playlist=http://www.bbc.co.uk/comedy/forge-assets/extra/playlist/{param}.xml&amp;config=http://www.bbc.co.uk/emp/iplayer/offschedule.xml&amp;config_settings_showFooter=true&amp;"></param><embed src="http://www.bbc.co.uk/emp/external/player.swf" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="512" height="400" FlashVars="config_settings_showUpdatedInFooter=true&amp;config_settings_showPopoutButton=false&amp;config_settings_skin=black&amp;config_settings_bitrateCeiling=1000&amp;playlist=http://www.bbc.co.uk/comedy/forge-assets/extra/playlist/{param}.xml&amp;config=http://www.bbc.co.uk/emp/iplayer/offschedule.xml&amp;config_settings_showFooter=true&amp;"></embed></object>
Example: [BBC]p006623l[BBC]

Description: Use this code to embed videos from BBC Comedy (extra, user submissions) on your website/forums. May not work outside the UK.

For their other videos:

Title: BBC Video

Tag: BBCMain

Replacement:

Code:
<object width="512" height="400"><param name="movie" value="http://www.bbc.co.uk/emp/external/player.swf"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><param name="FlashVars" value="playlist=http://www.bbc.co.uk/comedy/forge-assets/extra/playlist/{param}.xml&config_settings_showFooter=true&"></param><embed src="http://www.bbc.co.uk/emp/external/player.swf" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="512" height="400" FlashVars="playlist=http://www.bbc.co.uk/comedy/forge-assets/extra/playlist/{param}.xml&config_settings_showFooter=true&"></embed></object>
Example: [BBCMain]p0061xrw[/BBCMain]

Description: Embed short snippets of TV shows by the BBC in your posts with this code. May not work outside the UK.

I've also cleaned up the code so it's readable.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-31-2010, 07:48 PM
JamesC70 JamesC70 is offline
 
Join Date: Jun 2007
Posts: 219
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
May not work outside the UK.
I can verify that the linked videos do not work outside the UK.

Some videos might be found on BBCAmerica.com if you'd like to create a companion BBCode for it.
Reply With Quote
  #3  
Old 02-01-2010, 10:59 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tagged: Shame it doesnt work O/S UK ( Boo to the Beeb )
Reply With Quote
  #4  
Old 02-05-2010, 10:33 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would create one for BBC America, but you can't see the videos (let alone try to embed them) outside the USA, so that would work in the reverse way to this code. Anyone who wants to can get me the embed code and I can release it as a BB code though.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:38 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04407 seconds
  • Memory Usage 2,246KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete