Embedding Video Objects in posts... Youtube etc (General)
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!
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!
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.
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.
<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>
yeah, i'm looking for a bbcode that does that.
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 ());
===============================================
Sorry, ignore my previous post. I modified the template cache, not the template files. And I cannot edit that post.