Embedding Video Objects in posts... Youtube etc (General)

by mike. ⌂ @, Friday, August 22, 2008, 02:29 (5726 days ago)

Hi,

I'm wondering if there is a way to embed youtube vids within posts... and whether this might be a good or bad idea. Also is it possible this is a question for bbcode people?

ok thanks!

locked
4517 views

Embedding Video Objects in posts... Youtube etc

by Goatie, Friday, August 22, 2008, 12:14 (5726 days ago) @ mike.

It's possible to make a hack(edit code and maybe database) for MLF to make your suggestion work.
I've thought about this idea with YT videos in posts myself and I'll see if I'm smart enough to make the hack myself.
I'll get back to you if I succeed in implementing the feature.

locked
4267 views

Embedding Video Objects in posts... Youtube etc

by mike., Friday, August 22, 2008, 13:43 (5726 days ago) @ Goatie

Thanks Goatie. I also see people creating a custom bbcode for this and adding it into the backend. I will try to figure out this a and will let you know if I come up with anything.

locked
4228 views

Embedding Video Objects in posts... Youtube etc

by bill, Friday, August 22, 2008, 20:45 (5726 days ago) @ mike.

<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/sqIpJ9wDZkc&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/sqIpJ9wDZkc&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>

locked
4286 views

Embedding Video Objects in posts... Youtube etc

by mike., Friday, August 22, 2008, 20:57 (5726 days ago) @ bill

yeah, i'm looking for a bbcode that does that.

locked
4288 views

Embedding Video Objects in posts... Youtube etc

by klatty, Monday, December 01, 2008, 04:45 (5625 days ago) @ mike.

Here is how I did it.


1) ===========================================
in templates_c/#######posting.tpl.inc.php around line #370 added this:

<input class="bbcode-button" type="button" name="youtube" value="<?php echo $this->_config[0]['vars']['bbcode_youtube_marking']; ?>
" title="<?php echo $this->_config[0]['vars']['bbcode_youtube_title']; ?>
" onclick="bbcode('text','youtube');" /><br />

.....and same file line #510 added this:

<?php echo $this->_config[0]['vars']['bbcode_youtube_title']; ?>


==============================================


2) ==============================================
in template_c/########english.lang.cposting.php around line #48 added this:

  'bbcode_youtube_marking' => 'Youtube',
  'bbcode_youtube_title' => 'Add Youtube Video: [youtube]ae73jju9[/youtube]',


==============================================


3) ===============================================
in includes/functions.inc.php around line #598 added this:

 $bbcode->addCode ('youtube', 'simple_replace', null, array ('start_tag' => '<embed src="http://www.youtube.com/v/', 'end_tag' => '&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed>'), 'inline', array ('listitem', 'block', 'inline', 'link', 'quote', 'pre', 'monospace'), array ());


===============================================

locked
4070 views

Embedding Video Objects in posts... Youtube etc

by klatty, Monday, December 01, 2008, 05:53 (5625 days ago) @ klatty

Sorry, ignore my previous post. I modified the template cache, not the template files. And I cannot edit that post. :-(

locked
3898 views

RSS Feed of thread