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.
Announcement
Collapse
No announcement yet.
How to safely allow embedded YouTube videos?
Collapse
X
-
If you dont want the whole video showing.. (I dont) you can put it in a nice drop down.
Found here:
http://www.vbulletin.com/forum/showthread.php?t=199345
Comment
-
Thought I'd share the code I used. I'm new to vB, so I may have done this wrong as I made two BBCode entires -- one for the simple, one for the advanced.
Simple Method:
Code:[youtube]hl2UUunlI2Q[/youtube]
Code:<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="466"> <tr><td style="text-align:center"><strong><a href="http://www.youtube.com/watch?v={param}" target="_blank">YouTube Video</a></strong></td></tr> <tbody><tr><td class="alt1" align="center"><object width="425" height="350" type="application/x-shockwave-flash" data="http://www.youtube.com/v/{param}"><param name="movie" value="http://www.youtube.com/v/{param}" /><param name="wmode" value="transparent" /><em><strong>ERROR:</strong> If you can see this, then <a href="http://www.youtube.com/">YouTube</a> is down or you don't have Flash installed.</em></object></td></tr></tbody> </table>
Code:[youtube=hl2UUunlI2Q]Aston Martin Crash[/youtube]
Code:<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="466"> <tr><td style="text-align:center"><strong><a href="http://www.youtube.com/watch?v={option}" target="_blank">"{param}" via YouTube</a></strong></td></tr> <tbody><tr><td class="alt1" align="center"><object width="425" height="350" type="application/x-shockwave-flash" data="http://www.youtube.com/v/{option}"><param name="movie" value="http://www.youtube.com/v/{option}" /><param name="wmode" value="transparent" /><em><strong>ERROR:</strong> If you can see this, then <a href="http://www.youtube.com/">YouTube</a> is down or you don't have Flash installed.</em></object></td></tr></tbody> </table>
FinalGear.com Forums -- Top Gear and general automotive forums
Comment
-
Hi Guys ... this thread got me thinking about embedding googlemaps within threads ....
I have created a map using an awesome site www.quickmaps.com
The site gives me code to include on my site:
Code:<iframe src="http://www.quikmaps.com/ext/15970?w=...332&zl=16&mt=0" frameborder="0" scrolling="no" width="781" height="493" marginwidth="0" marginheight="0"></iframe>
Many thanks! .... twobob
Comment
-
It's the same idea. Just replace the URL with {param} in the replacement code, like so:
Code:<iframe src="{param}" frameborder="0" scrolling="no" width="781" height="493" marginwidth="0" marginheight="0"></iframe>
[map]http://www.quikmaps.com/ext/15970?w=779&mh=465&t=1&ln=0&sn=1&zb=0&zs=0&d=1&it=0&icd=0&lat=-33.88543337775272&lng=151.2297248840332&zl=16&mt=0[/map]
Comment
-
Originally posted by pictureboarduk View PostIs it possible to have the icon show in the quick reply box aswell?
thanks.Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 API
Comment
-
Originally posted by PcosKat View PostIs it better to use BB code rather than simply pasting the youtube embed code directly into a post?
Comment
-
Originally posted by feldon23 View PostThat would only work if you allow your users to post straight HTML, which would expose you to users posting Javascript, ActiveX controls, etc. They could use Javascript to rewrite all the links on your page to send traffic to their site, steal user information, etc.
I don't think the users of my big board would do that (it's not a tech savvy board), but I'll keep that in mind for future boards...
Kinda scary!
Comment
-
Originally posted by PcosKat View PostThanks for that, Feldon!
I don't think the users of my big board would do that (it's not a tech savvy board), but I'll keep that in mind for future boards...
Kinda scary!
There is a new addon that builds the embed links for you at vBulletin.org. It doesn't require BBCodes.Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 API
Comment
-
-
Originally posted by Jake Bunce View PostYou 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
What could I be doing wrong?
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
Thu 11 Feb '16, 9:26am -
-
by Humdani Hdchow to insert video embed code in forum....
-
Channel: Support Issues & Questions
Sat 2 Feb '13, 5:58am -
Comment