Page 1 of 1

youtube videos?

PostPosted: Sat Nov 06, 2010 12:47 am
by Method
Is there a way to show the embedded youtube video, instead of having to go to the actual youtube site? vBulletin has this feature, i don't know if phpBB can do this.

Re: youtube videos?

PostPosted: Sat Nov 13, 2010 7:39 pm
by chilango41
Method wrote:Is there a way to show the embedded youtube video, instead of having to go to the actual youtube site? vBulletin has this feature, i don't know if phpBB can do this.


Been wondering the same thing.

PostPosted: Sun Nov 14, 2010 3:02 am
by RPGonzos_EJ
phpBB does not natively support youtube embeds, but if the admins want to manually add the tags to the BBCode it would work.

Need to add a tag replacement [youtube]{TEXT}[/youtube]

and than you use the embed code from youtube in the post

[youtube]<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/wqXW-OMvpP0?fs=1&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/wqXW-OMvpP0?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>[/youtube]

and it should than embed the video into the post.

But again it does, to my knowledge, requires a manual entry in the custom BBCode entry section of the admin panel. :)

PostPosted: Sun Nov 14, 2010 3:55 am
by teal_dx
http://www.youtube.com/watch?v=l1G7TJD6Xu0 :thumb:

But the version we are using does not support manually adding the codes as the video demonstrates... hmmm another reason to upgrade :popcorn:

PostPosted: Mon Nov 15, 2010 2:13 pm
by RPGonzos_EJ
You can manually add the code into the BBCode class, looks like your running 2.0.20, I'll load it up in my test server and test the addition if you like.

I made a lot of custom additions just playing with it on a board once, but it all varies by version of course.

PostPosted: Tue Nov 16, 2010 10:24 pm
by RPGonzos_EJ
If your interested i figured this out for your version.

Just thought i would share.

Demonstration

http://testforum.lazurous.com/viewtopic.php?p=2#2

that's using the exact forum version you have here :)

you use it by pasting the video URL in between youtube tags

[youtube]http://www.youtube.com/watch?v=wqXW-OMvpP0[/youtube]

and below the video i actually have a optional URL thrown in there to click and go straight to the video on youtube