How to safely allow embedded YouTube videos?
Collapse
X
-
I don't see any risks since the movie location is prefixed with a hard coded part. That means you can only load YouTube movies as opposed to other embedded content. -
Thankyou for an excellent and very very helpful post and response
Many thanks from a little forum userLeave a comment:
-
Hi gang.
Is there a way to safely (or somewhat safely) allow YouTube and other video links to be embedded in my forum? I've had many people PM me and ask for this feature.
Can someone give me the "Embedding YouTube for Dummies" tutorial on how to do this. I know there are a lot of other coding dummies that would appreciate it too.
Ideally, I'd like for users to be able to click on an icon like the "http://images.vbulletin.com/images_v...nsertimage.gif" icon and insert the video.
Thanks.You can use the embed code on YouTube's site to make a BB code:
Admin CP -> Custom BB Codes -> Add New BB Code
Title - YouTube
Tag - youtube
Replacement:
Code:<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{param}"></param><embed src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" width="425" height="350"></embed></object>
Description - Use the movie code from the YouTube URL in your browser. For example, http://youtube.com/watch?v=JFwCCL0Vh6U
Thanks for the help..
made an icon tooLeave a comment:
-
Ah, you misunderstood
I meant the title of the page in the browser, not the url
This is without the embed bbcode
And this is a topic with the embed bbcode:
Notice the title.
I thought it was going to mess things up for search engines when people link to it like that but i also noticed that the title was normal when i viewed the source.
So i used Firefox and Firefox doesn't have the anchor in the title.
So, my conclusion is, Bill Gates messed it up again.
Sorry for the inconvenience, i should have checked it out with FF first.
Thanks for the swift replies
*calls Bill Gates to flame him*Leave a comment:
-
Yes it does. Try it on this forum. For example, I just clicked the image for this thread and it used an anchor in the URL.Leave a comment:
-
But it doesn't happen with threads where the bbcode isn't used
So i thought it had something to do with the bbcode.Leave a comment:
-
That is normal. The various thread links which go directly to specific posts use anchors on the end of the URL. That is not caused by BB codes.Leave a comment:
-
Small cosmetic problem (and probably search engines too).
Check the title of the page when you click the last post button of a topic where the bbcode is used.
It adds the last string to the title, in this case #p82
Example page:
http://www.internationaltrs.com/showthread.php?p=82#p82
This seems to happen with all embedded bbcodes :S
Any ideas what causes this?Leave a comment:
-
Can you expound a little on Actionscript and what harm it can do?
Thanks.Leave a comment:
-
The concern is that then someone could embed ANY video, including malicious Flash animations from another site which may have ActionScript that collects info about the logged in user.Leave a comment:
-
Thanks Jake I appreciate it.
While that is very nice, is there a way to use the entire link YouTube provides next to each video? Like this:
When you click on the URL it selects the entire URL. I just find it easier to right click and paste the entire URL instead of having to type out the unique video id #. Unless I'm missing something.
Thanks again for your help.Leave a comment:
-
goto vbulletin.org and search for any media and that will help you out big timeLeave a comment:
-
Super info there Jake thanks... and how then would I use a BBCode to enable the playing of Windows Media files and Quicktime videos? Is that possible?Leave a comment:
-
You can use the embed code on YouTube's site to make a BB code:
Admin CP -> Custom BB Codes -> Add New BB Code
Title - YouTube
Tag - youtube
Replacement:
Code:<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{param}"></param><embed src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" width="425" height="350"></embed></object>
Description - Use the movie code from the YouTube URL in your browser. For example, http://youtube.com/watch?v=JFwCCL0Vh6ULeave a comment:
Related Topics
Collapse
-
by avitorhi
i really like to embed videos in the vbulletin 5
what i see now that is works for youtube only
i do like to embed videos from www.uptobox.com or www.openload.co and other video sites....-
Channel: Support Issues & Questions
-
Leave a comment: