We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] photobucket videos embedding
Topic Started: Jul 8 2013, 02:00 AM (732 Views)
welshtony
Member Avatar
www.f6oc.co.uk
[ *  *  * ]
Board Address: www.f6oc.co.uk
Board Software: ZetaBoards
Description: I would like a code to enable embedding with photobucket videos

Hi,

The title and description says it really. I would like a code to enable videos to be embedded just like youtube ones via the [flash] tags.
Is this possible.

here a a example video done by one of our members

http://s1150.photobucket.com/user/StuartB15/media/7337A45D-419F-47E4-974E-32FE4C65D4D2-1533-00000080ACBEFAD7_zpsb6e96fbc.mp4.html
Offline Profile Goto Top
 
Myrkul
Member
[ * ]
Don't need code for this - [flash]http://static.photobucket.com/player.swf?file=http%3A%2F%2Fvid1150.photobucket.com%2Falbums%2Fo610%2FStuartB15%2F7337A45D-419F-47E4-974E-32FE4C65D4D2-1533-00000080ACBEFAD7_zpsb6e96fbc.mp4[/flash]
Offline Profile Goto Top
 
welshtony
Member Avatar
www.f6oc.co.uk
[ *  *  * ]
wow brilliant that actually works but how did you get that code? :/

Ah the HTML bit eddited. Thanks
Actually I have just looked at that and there is allot of editing to be able to get it to even work.

I would like it to be click and play.

Allot of people wont have a clue how to edit it to be able to work that way
Edited by welshtony, Jul 8 2013, 11:35 AM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
This will fix the URLs:
Code:
 
<script type="text/javascript">
//<![CDATA[
$('object[data*="photobucket.com"]').each(function () {
var account = $(this).attr('data').split('/user/')[1].split('/')[0];
var id = $(this).attr('data').split('http://s')[1].split('.')[0];
var vID = $(this).attr('data').split('/media/')[1].split('.')[0];
$(this).attr('data', 'http://static.photobucket.com/player.swf?file=http%3A%2F%2Fvid' + id + '.photobucket.com%2Falbums%2Fo610%2F' + account + '%2F' + vID + '.mp4');
$(this).find('param[name="movie"]').attr('value', 'http://static.photobucket.com/player.swf?file=http%3A%2F%2Fvid' + id + '.photobucket.com%2Falbums%2Fo610%2F' + account + '%2F' + vID + '.mp4');
});
//]]>
</script>
Offline Profile Goto Top
 
welshtony
Member Avatar
www.f6oc.co.uk
[ *  *  * ]
Perfect,

Thanks Cory :D


EDIT:

Actually doesnt seam to work with all videos.
I have tried with 4 versions on the videos in my photobucket and cant get it to work
http://s167.photobucket.com/user/welshtony/media/F6OC%20Videos/HowtouploadphotostoF6OC_zps04d069b3.mp4.html
Edited by welshtony, Jul 9 2013, 12:03 PM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Can you post a link to the ones that didn't work for you?
Offline Profile Goto Top
 
welshtony
Member Avatar
www.f6oc.co.uk
[ *  *  * ]
Basically these 4. They are all the same video

http://s167.photobucket.com/user/welshtony/media/F6OC%20Videos/HowtouploadphotostoF6OC_zps04d069b3.mp4.html?sort=3&o=0

http://s167.photobucket.com/user/welshtony/media/F6OC%20Videos/HowtouploadphotostoF6OC_zps2a301fbf.mp4.html?sort=3&o=1

http://s167.photobucket.com/user/welshtony/media/F6OC%20Videos/HowtouploadphotostoF6OC_zps581d0a4f.mp4.html?sort=3&o=2

http://s167.photobucket.com/user/welshtony/media/F6OC%20Videos/HowtouploadphotostoF6OC_zps46d1c167.mp4.html?sort=3&o=3
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Try this instead:
Code:
 
<script type="text/javascript">
//<![CDATA[
$('object[data*="photobucket.com"]').each(function () {
var account = $(this).attr('data').split('/user/')[1].split('/')[0];
var id = $(this).attr('data').split('http://s')[1].split('.')[0];
var vID;

if ($(this).attr('data').match('Videos/')) {
vID = $(this).attr('data').split('/media/')[1].split('/')[1].split('.html')[0];
$(this).replaceWith('<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%2Fvid' + id + '.photobucket.com%2Falbums%2Fu125%2F' + account + '%2FF6OC%2520Videos%2F' + vID + '">');
} else {
vID = $(this).attr('data').split('/media/')[1].split('.')[0];
$(this).attr('data', 'http://static.photobucket.com/player.swf?file=http%3A%2F%2Fvid' + id + '.photobucket.com%2Falbums%2Fo610%2F' + account + '%2F' + vID + '.mp4').find('param[name="movie"]').attr('value', 'http://static.photobucket.com/player.swf?file=http%3A%2F%2Fvid' + id + '.photobucket.com%2Falbums%2Fo610%2F' + account + '%2F' + vID + '.mp4');
}
});
//]]>
</script>
Offline Profile Goto Top
 
welshtony
Member Avatar
www.f6oc.co.uk
[ *  *  * ]
Brilliant works loads better. Thanks
Offline Profile Goto Top
 
Eccentric Feline
Member Avatar
梦想
[ *  *  *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic