Jump to content
The Corroboree
Sign in to follow this  
Torsten

How do you embed youtube clips into posts

Recommended Posts

I've tried, but it just shows the code and no vids...

name="wmode" value="transparent">
type="application/x-shockwave-flash" wmode="transparent" width="425" height="355">

Share this post


Link to post
Share on other sites

it appears its HTML embeded, unless this forum allows objects it wont work... or unless its edited into the html of the page...

but then againi could be wrong.... its late

Edited by Amulte

Share this post


Link to post
Share on other sites

:scratchhead:

name="wmode" value="transparent">
type="application/x-shockwave-flash" wmode="transparent" width="425" height="355">

.. Theres a UBB addon to allow UBB youtube code so you can just go

 

Like shown here: Link

Edited by Auxin

Share this post


Link to post
Share on other sites

we're not UBB anymore.

Share this post


Link to post
Share on other sites

would this help ?

taken from: > Making Custom YouTube & Metacafe BBCode in IPB, IPB Mod Guide

How to make Custom BBcodes for YouTube and Metacafe

tube.gif and meta.gif

Both these buttons had been custom made with the BBCode custom tag in Admin Control Panel.

YouTube will give utube Tags

Metacafe will give mtc Tags

What I did was simple... for example: YouTube

On every YouTube's video links, you can see they provide embed video code for the particular video,

so you can embed it to your website...

See the embed code:

 

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/watch?v=cN6G_qZNSbs"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/watch?v=cN6G_qZNSbs" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

 

The codes are all the same for all the videos except that the /v/cN6G_qZNSbs , this part bold & green is the file name...

So, the part where I customized in Admin CP for the custom BBcode was simple as well...

[step 1]

 

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/watch?v={content}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/watch?v={content}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

 

Replaced the file name with {content}, so the BBcode Tags can work in forums...

[step 2]

Make the Tube Button, Upload to FTP...

[step 3]

Edit the codes in IPB files

 

/*-------------------------------------------------------------------------*/// INIT/*-------------------------------------------------------------------------*/var i_am = 'std';var rtewindow;var buttonbar;var opentags ={	'b'		  : 0,	'i'		  : 0,	's'		  : 0,	'u'		  : 0,	'img'		: 0,	'quote'	  : 0,	'left'	   : 0,	'center'	 : 0,	'right'	  : 0,	'color'	  : 0,	'background' : 0,	'indent'	 : 0,	'code'	   : 0,//MY CUSTOM BUTTON	'utube'	   : 0,	'mtc'		: 0//MY CUSTOM BUTTON};var tags_to_div ={	'b'		  : 'do_bold',	'i'		  : 'do_italic',	's'		  : 'do_strikethrough',	'u'		  : 'do_underline',	'quote'	  : 'do_quote',	'left'	   : 'do_justifyleft',	'center'	 : 'do_justifycenter',	'right'	  : 'do_justifyright',	'color'	  : 'forecolor',	'background' : 'hilitecolor',	'indent'	 : 'do_indent',	'code'	   : 'do_code',//MY CUSTOM BUTTON	'utube'	   : 'do_utube',	'mtc'		 : 'mtc'//MY CUSTOM BUTTON};

 

Both YouTube & metacafe simple tags added into ipb_editor_std.js

[step 4]

Make template changes in the editor.std template... and DONE! biggrin.gif

 

<!--SEP-->		<td><img class="rteVertSep" src="{ipb.vars['img_url']}/folder_rte_images/blackdot.gif" width="1" height="20" border="0" alt=""></td>		<!--/SEP--><td><div id='do_button'><img class="rteimage" src="{ipb.vars['img_url']}/folder_rte_images/tube.gif" width="30" height="20" alt="utube" title="utube" onclick="simpletag('utube')"></div></td>	<!--SEP-->		<td><img class="rteVertSep" src="{ipb.vars['img_url']}/folder_rte_images/blackdot.gif" width="1" height="20" border="0" alt=""></td>		<!--/SEP--><td><div id='do_button'><img class="rteimage" src="{ipb.vars['img_url']}/folder_rte_images/meta.gif" width="25" height="25" alt="metacafe" title="metacafe" onclick="simpletag('mtc')"></div></td>

 

--------------------

seems like a lot of work for something that should come default though.

Share this post


Link to post
Share on other sites
we're not UBB anymore.
:blink::unsure:

I never claimed to be tremendously observant :P

Share this post


Link to post
Share on other sites

ok, this is way over my head. I don't get why the embed code doesn't work here. it works on heaps of forums and blogs, so why not IPB? I thought it just required html?

Share this post


Link to post
Share on other sites
:innocent_n: Edited by husk

Share this post


Link to post
Share on other sites
it appears its HTML embeded, unless this forum allows objects it wont work... or unless its edited into the html of the page...

but then againi could be wrong.... its late

Think Amulte is right about the forum not allowing objects,

T, are 'object', 'param' and 'embed' set as allowed tags in the ipb config ?

my previous post was about creating a custom thingy, prolly a real pain in the arse workaround.

Share this post


Link to post
Share on other sites

Tort, HTML is actually passed back to a parser instead of being parsed by the browser directly.

Like Avaricial was trying to explain, IPB needs some modding for this to work correctly. You could do it his way, or just install this IPB plugin?

http://forums.wolframstudios.com/index.php...&showfile=2

Share this post


Link to post
Share on other sites

:bootyshake:

I told you all along you had to install a special plug-in!!

bah!

Listen to me next time! :P

Edited by Chemical Shaman

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×