Question about videos in threads

weekendrider

Iron Horse cowboy
Top Contributor
Messages
5,686
Reaction score
1,321
Points
213
Location
S.W. MO
Can videos on photobucket be put in a thread where you just see the video instead of being directed to the photobucket site?
Or to do this would the video have to be on youtube?
 
You can embed youtube and vimeo videos right now. I'll look into the photobucket videos and see I can figure out the code for that too.
 
Well I just spent the last hour and 20 minutes figuring this out. Photobucket sure doesn't make it very easy to embed videos in forums...

I figured out how to do it but it's not as easy for the user as I would like. The problem is that photobucket doesn't use unique "ids" for their videos. Videos are stored in users albums and the links to the videos are all very different.

YouTube, Vimeo, and most other video sharing sites use unique ids for videos. For example.. to embed YouTube videos, they make it easy... you click 'share' and get a code like k9CohtGnFGI then you just use [noparse]
to embed the video in your post

Vimeo videos are very similar
[/noparse]

To make the photobucket videos work, you would have to pull this:
http%3A%2F%2Fvidmg.photobucket.com%2Falbums%2Fv288%2FBlacksmithbilly%2F07%2520Xs650%2520I-Beam%2520Springer%2FMOV04060.mp4

Out of this (found by copying the HTML code they give you):
<a href="http://media.photobucket.com/video/xs650/Blacksmithbilly/07%20Xs650%20I-Beam%20Springer/MOV04060.mp4?o=18" target="_blank"><embed width="600" height="361" type="application/x-shockwave-flash" allowFullscreen="true" allowNetworking="all" wmode="transparent" src="http://static.photobucket.com/player.swf" flashvars="file=http%3A%2F%2Fvidmg.photobucket.com%2Falbums%2Fv288%2FBlacksmithbilly%2F07%2520Xs650%2520I-Beam%2520Springer%2FMOV04060.mp4"></a>[noparse]

To make this: [photobucket]http%3A%2F%2Fvidmg.photobucket.com%2Falbums%2Fv288%2FBlacksmithbilly%2F07%2520Xs650%2520I-Beam%2520Springer%2FMOV04060.mp4[/photobucket][/noparse]

I haven't implemented it yet but I can if you're still interested.

Vimeo is just another video sharing site like YouTube.
 
Thanks for the help!
I'd use it if it wouldn't be much more trouble.
 
Last edited:
So this
<embed width="600" height="361" type="application/x-shockwave-flash" allowFullscreen="true" allowNetworking="all" wmode="transparent" src="http://static.photobucket.com/player.swf" flashvars="file=http%3A%2F%2Fvid20.photobucket.com%2Falbums%2Fb220%2F1petitt%2Fcycles%2Fthe%2520scheme%2FMy20Movie1.mp4">

would become this?
[noparse][photobucket]http%3A%2F%2Fvid20.photobucket.com%2Falbums%2Fb220%2F1petitt%2Fcycles%2Fthe%2520scheme%2FMy20Movie1.mp4[/photobucket][/noparse]

correct?
 
Looks like it's working.

This:
[noparse][photobucket]http%3A%2F%2Fvid20.photobucket.com%2Falbums%2Fb220%2F1petitt%2Fcycles%2Fthe%2520scheme%2FMy20Movie1.mp4[/photobucket]
[/noparse]
becomes this:
[photobucket]http%3A%2F%2Fvid20.photobucket.com%2Falbums%2Fb220%2F1petitt%2Fcycles%2Fthe%2520scheme%2FMy20Movie1.mp4[/photobucket]
 
Back
Top