Page 1 of 2

National Geographic Video BBCode

Posted: 06 Mar 2010, 16:16
by BBCode Bot
National Geographic Video BBCode

Author: fl0o
Description: With National Geographic Video BBCode you can post videos hosted by video.nationalgeographic.com

BBCode:

Code: Select all

[Ng]{IDENTIFIER}[/Ng]
HTML:

Code: Select all

<embed src="http://video.nationalgeographic.com/video/player/swf/ngplayer_syndicated.swf" flashVars="slug={IDENTIFIER}&img=http://video.nationalgeographic.com/video/player/media/{IDENTIFIER}/{IDENTIFIER}_480x360.jpg&vtitle=&permalink=http://video.nationalgeographic.com/video/player/news/animals-news/{IDENTIFIER}.html&share=true" name="flashObj" width="460" height="321" seamlesstabbing="false" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>
Helpline:

Code: Select all

National Geographic: [Ng]ID of the video[/Ng]
Here is how you can find the ID:
http://video.nationalgeographic.com/vid ... and-squid/octopus_giant_kills_shark.html
Example:

Code: Select all

[ng]octopus_giant_kills_shark[/ng]
Demo:
[ng]octopus_giant_kills_shark[/ng]

Re: National Geographic Video BBCode

Posted: 03 Apr 2010, 17:26
by kahuna
This site has a NEW Embed code for its videos and the new Videos won't work with the old BB code format. Here is an example of the new embed code:

Code: Select all

<embed src="http://video.nationalgeographic.com/video/player/swf/ngplayer_syndicated.swf" flashVars="slug=antarctica-black-penguin-vin&img=http://video.nationalgeographic.com/video/player/media/antarctica-black-penguin-vin/antarctica-black-penguin-vin_480x360.jpg&vtitle=Mutant%20All-Black%20Penguin%20Found&caption=March%2016%2C%202010%2C%202010%u2014National%20Geographic%20Traveler%20contributing%20editor%20Andrew%20Evans%20recently%20spotted%20and%20filmed%20an%20all-black%20king%20penguin%u2014a%20very%20rare%20mutant%u2014on%20the%20sub-Antarctic%20island%20of%20South%20Georgia.&permalink=http://video.nationalgeographic.com/video/player/news/animals-news/antarctica-black-penguin-vin.html&share=true" name="flashObj" width="460" height="321" seamlesstabbing="false" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>

Re: National Geographic Video BBCode

Posted: 03 Apr 2010, 17:46
by cisco007
the demo in first post is still working, but if you want the new html replacement try this!

Code: Select all

<embed src="http://video.nationalgeographic.com/video/player/swf/ngplayer_syndicated.swf" flashVars="slug={IDENTIFIER}&img=http://video.nationalgeographic.com/video/player/media/{IDENTIFIER}/{IDENTIFIER}_480x360.jpg&vtitle=&permalink=http://video.nationalgeographic.com/video/player/news/animals-news/{IDENTIFIER}.html&share=true" name="flashObj" width="460" height="321" seamlesstabbing="false" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>

Re: National Geographic Video BBCode

Posted: 03 Apr 2010, 19:51
by Stoker
Thanks, I have updated the HTML

Re: National Geographic Video BBCode

Posted: 05 Apr 2010, 00:37
by Bullseye
May I ask permission to install this on my site?

:)

Re: National Geographic Video BBCode

Posted: 05 Apr 2010, 04:00
by cisco007
that is what the bbcodes on this site are for!

Re: National Geographic Video BBCode

Posted: 05 Apr 2010, 16:15
by Bullseye
Fair play, thought I'd just ask :)

Thank you :D

Re: National Geographic Video BBCode

Posted: 06 Apr 2010, 09:29
by kevinviet
Thanks for the BBcode, how do I adjust screen bigger ? like width 725 and height 550

Thank you

Re: National Geographic Video BBCode

Posted: 06 Apr 2010, 10:16
by Steve
change this part in the html,
Find:

Code: Select all

width="460" height="321"
relpace with:

Code: Select all

width="750" height="550"
have a play with the sizes if looks odd.

Re: National Geographic Video BBCode

Posted: 06 Apr 2010, 23:00
by kevinviet
Thanks vectra-mod, I did that too but it looked odd.
321.jpg