Skip to content
WJunction - Webmaster Forum

AutoEmbed php code for videozer and videobb

Status
Not open for further replies.

Phresh

Established Member
248
2011
37
Hi

I'm using autoembed for direct embedding of videos on..wordpress video site...which under beta at the moment..

autoembed has embedding options for most of the sites...but looks like they haven't written embedding codes for the videozer & videobb...

Can someone who knows a bit of quality php..can do this i guess...i myself trial n error approach...but no success till now..


So here is the general instruction as putforwarded by autoembed.com

array(
'title' => Source the embeded media comes from
'website' => URI of the media source
'url-match' => Regexp for matching the submitted url to a stub
'embed-src' => The source of the media to embed. Replace $2, $3, etc with matches from the url-match or fetch-match regexp ($1 is the entire matched url)
'embed-width' => The default width of the embeded object
'embed-height' => The default width of the embeded object
'fetch-match' => (optional) if set, html will be fetched and this regexp will be used to pull the media id or the source of the video
'flashvars' => (optional) if set, will be passed in the embed tag. Replace $2, $3, etc with matches from url-match or fetch-match
),



Example Megavideo

array(
'title' => 'MegaVideo',
'website' => 'http://www.megavideo.com',
'url-match' => 'http://(?:www\.)?megavideo\.com/(?:\?(?:[^"]*?)?v=|v/)([0-9a-z]{8})',
'embed-src' => 'http://www.megavideo.com/v/$2.0.0',
'embed-width' => '440',
'embed-height' => '359',
),

using this we can directly embed just using the url...


Can someone generate similar code (paraphrasing) for videozer & videobb ??? guys...?8-)
 

8 comments

array(
'title' => 'MegaVideo',
'website' => 'http://www.megavideo.com',
'url-match' => 'http://(?:www\.)?megavideo\.com/(?:\?(?:[^"]*?)?v=|v/)([0-9a-z]{8})',
'embed-src' => 'http://www.megavideo.com/v/$2.0.0',
'embed-width' => '440',
'embed-height' => '359',
),

How can i test that on my Wordpress?!
 
go through your wordpress core files or theme funtion file,when you find youtube,replace it with your site name like videobb etc....it worked for me like that on beta of the new wordpress version
 
^^ Not working dude

If some one can find this one for video zer it would be good

array(
'title' => 'MegaVideo',
'website' => 'http://www.megavideo.com',
'url-match' => 'http://(?:www\.)?megavideo\.com/(?:\?(?:[^"]*?)?v=|v/)([0-9a-z]{8})',
'embed-src' => 'http://www.megavideo.com/v/$2.0.0',
'embed-width' => '440',
'embed-height' => '359',
),
 
^^ Not working dude

If some one can find this one for video zer it would be good

Here you go dude:

PHP:
array(
'title' => 'Videozer',
'website' => 'http://www.videozer.com',
'url-match' => 'http://www\.videozer\.com\/video\/([0-9a-z]*)',
'embed-src' => 'http://www.videozer.com/embed/$2',
'embed-width' => '415',
'embed-height' => '310',
),
Not tested but i checked how megavideo's code was written and changed it into Videozer

Should work
 
Last edited:
Status
Not open for further replies.

About the author

P
Established Member · Joined
248
Messages
37
Reactions
28
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom