Info

Category: widgets
Licence: GNU General Public License (GPL) version 2
Updated: 23 days ago
Downloaded: 5138

Releases

Author Recommended: 0.8

Previous releases:

Images

More projects by Cash:

1

Recommendations

Summary:

Add videos from Youtube, Vimeo, Veoh, Metacafe to user profiles or front page

Full description:

Features:

  1. Extremely easy to add videos to your front page
  2. Enables users to easily add videos to the profile pages (as many as they want)
  3. Supports youtube, vimeo, google video, metacafe, veoh, daily motion, blip.tv, teacher tube
  4. Supports both url and embed code for most sites
  5. Allows admin to set video width to fit theme
  6. Works with activity plugin of Elgg 1.5 (river integration for 1.2 commented out)
  7. Lightweight plugin

Description: This plugin provides a widget for embedding video in a user profile or for an admin to embed a video on the front page. The videos must be flash videos from sites like youtube. The plugin will handle the video url or the <embed> code. More than one video can be added to a profile by adding the widget more than once. The user can add a title and a single comment about the video through the widget edit area.

 

Installation: Unzip and place in mod directory. Activate through Tools Administration. There is an admin setting for video width that can be changed after activation. Just reload the Tools Administration and click "more info". This allows Elgg sites with custom themes to adjust the widget to fit their theme.To upgrade, just copy the files over the old ones.

Usage: As currently configured, this plugin enables users to add videos to their profiles. The user needs to add the video widget to the profile page, edit the widget and then paste the url or embed code into the video url textbox. Teacher Tube and blip.tv only accept embed codes and not the page url.

Administrators can use this to easily add a video to their Elgg front page. Set the video url and width in the Tool Administration settings. Then insert the function embedvideo_frontpage() in your front page plugin. It might look something like $content .= embedvideo_frontpage();

 

Requirements:Tested with 1.2, 1.5, 1.6, 1.7

Bug Reports: Please include the actual url text that was pasted.

Video Sites Supported: youtube, google, vimeo, metacafe, veoh, daily motion, blip.tv, teacher tube

 

Release notes:

Changelog:version 0.8- added support for blip.tv and teacher tube (embed code only)- updated vimeo and veoh parsing for new url structures- added support for the new activity plugin for Elgg 1.5

version 0.7- added support for veoh and daily motion- moved style information into css to make it easier for admins to add theme information - added support for front page video- fixed a bug with removing an empty widget

version 0.6- added support for vimeo and metacafe- added title field - added river support

 

@Cash ... I'm not seeing anything in 'activity' when I add a video?

Phil 362 days ago

And ... sorry to be a pain ... can you show here a code snippet of how the finished code looks for an insertion into front page please? My coding skills are fairly poor.

Thanks for another awesome plugin.

:)

Phil 362 days ago

Here is a link to what the activity should look like. I tested on a clean 1.5 install. I'll be interested to hear if anyone else is having this problem.

Cash 362 days ago

@Phil - here is a simple code example. I'll take the default index page that comes with Elgg 1.5 and replace the latest activity with a video.

Current code from index.php:

                $title = elgg_view_title(elgg_echo('content:latest'));
                set_context('search');
                $content = list_registered_entities(0,10,true,false,array('object','group'));
                set_context('main');
                global $autofeed;
                $autofeed = false;
                $content = elgg_view_layout('two_column_left_sidebar', '', $title . $content, elgg_view("account/forms/login"));

New code:

                $title = "Front Page Video";
                $content = embedvideo_frontpage();
                set_context('main');
                global $autofeed;
                $autofeed = false;
                $content = elgg_view_layout('two_column_left_sidebar', '', $title . $content, elgg_view("account/forms/login"));

 

Obviously, further details are very dependent on your current front page. Normally, you'd want to wrap it with a div that has some css associated with it to place it and set margins and so on.

Cash 362 days ago

Thanks Cash - appreciate that.

I'll look into the activity thing some more, see if I can throw some light on it.

Phil 362 days ago

hi cash,

can this been integrated into the blogs? i'm not having any luck on trying to embed youtube videos into blogs or pages and am hoping i might be able to set up the views for those object with your plugin..

brooklyntam 358 days ago

@brooklyntam - no, this does not integrate with the blog and pages plugins. That's something I want to look into.

Cash 358 days ago

@Cash - does this need to be put in any order in the list of plugins?

Dan 355 days ago

@Dan - plugin order shouldn't matter for this one

Cash 355 days ago

compare to izap?  I have premission problems with izap, do you know if I will have the same issues with your plugin?  say group is for logged in users only but video is set to public, don't have problems with this so much as problem with group public and video set to private or logged in.  Part to of question is if I switch will users lose their current video settings?

gone 354 days ago

@goofbucket - this is a very different plugin than the one by izap. Their plugin is more focused on uploading videos/grabbing youtube videos for something like video blogging. Each video gets its own page with comments. This plugin enables users to add videos to their profile pages or administrators add them to front pages. Eventually, I may add the ability to insert videos into blogs.

Cash 354 days ago

Is this plug-in also suited -or adaptable- to Embed standard Flash widgets/gadgets? Like wix.com, sprout.com, issuu, etc.

Unfortunately, if I understand correct,  users even Admin!) can not paste one in Pages, as there Elgg strips Javascript and Flash objects.

Tom 353 days ago

The concept for this is easy enough:

  1. user grabs unique address of flash content (in my case video urls)
  2. I verify the source of the flash videos for approved locations and extract the unique information
  3. I store that unique information as metadata
  4. when the widget is viewed, I create the actual embed code for the flash video from the unique information

It shouldn't bet too hard to do the same with general flash widgets.

Cash 353 days ago

ok, just did...but now wondering what to do:

  1. release a new plugin called "embedflash" ... like forking...
  2. move parameters to separate XML file, so we all can add new video's
  3. other idea?

Tom 351 days ago

A fork seems reasonable to me.

Cash 351 days ago

Thanks Cash maybe later..  For now I just did a work around

gone 349 days ago

Does this plugin allow you to add videos that are hosted on your own server? Or does the video have to come from  youtube or other video sites?

When I tried to add a video that is hosted on my own server, I got a error message saying "Unrecognized video site."

Any ideas as to how to fix this?

slowsoulz 317 days ago

@slowsoulz - Supports youtube, vimeo, google video, metacafe, veoh, daily motion, blip.tv, teacher tube

Cash 316 days ago

Mine doesn't seem to do any updates on the River?

SAABotage 301 days ago

River updates only work for Elgg 1.5. They should occur everytime you change the url in a widget. The first place to check is the river table in the database to see if they are getting in there. The view is river/object/widget/embedvideo/update

Cash 301 days ago

I just installed the plug in and when I go to my page to test it I get the message:

error loading embedvideo library

Any ideas where to start looking for the problem?

Thanks in advance

conrad 299 days ago

Got it...should really be going to bed about now! Thanks for the plug in.  It's great!

conrad 299 days ago

Hi cash,

How do you add this feature to the custom_index page? Thanks

elggboy 294 days ago

@elggboy - already discussed in the documentation at the top.

Cash 294 days ago

Hi, 

I'm really new to elgg and am using it for a degree final website project. I'm building a media networking site and so being able to embed video (music and art/photos) is vital however every time I try to install the plugin, placing it in the mod file and then enabling it in tool administration, I am met with the message "embedvideo is a misconfigured plugin". It may be that I am just doing something really basic wrong or it may be more complicated. I am keen to use this with youtube and blip.tv as the site is aimed at the iphone/iPod touch which can only handle flash video via youtube (using the application workaround) or using blip.tv which can encode h.264 video which the apple hardware can load in quicktime. Once again, any possible help will be gratefully received.

Hugh

Hugh 263 days ago