Jump to content
The Corroboree

How do you embed youtube clips into posts


Torsten

Recommended Posts

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
Link to comment
Share on other sites

<___base_url___>/uploads/emoticons/default_scratchhead.gif

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
Link to comment
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

and

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.

Link to comment
Share on other sites

we're not UBB anymore.
<___base_url___>/uploads/emoticons/default_blink.png<___base_url___>/uploads/emoticons/default_unsure.png

I never claimed to be tremendously observant <___base_url___>/uploads/emoticons/default_tongue.png

Link to comment
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?

Link to comment
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.

Link to comment
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...