Video Plus - Embed Videos from Popular Web Hosts

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools
Video Plus - Embed Videos from Popular Web Hosts
Developed by Yankidank Yankidank is offline
Developer Last Online: Mar 2010 Show Printable Version Email this Page
Designed for: Pligg 1.0.1
License: Creative Commons Attribution-Noncommercial-Share
Released: 04-03-2009
Last Update: 07-26-2009
Installs: 157
Supported by Author
Uses Module System
Template Edits Not Required
Can Reuse Source Code
Includes Files to Upload
Translations Accepted
Uses Third Party Websites
Download Certified
The latest version of Video Plus will automatically embeds videos from popular video hosting sites onto your website. A thumbnail appears next to articles that submit a supported website. When a user clicks on that thumbnail it pops up an ajax box with an embedded video. The embedded video and thumbnail are automatically inserted into your post by analyzing the url submitted in Submit Step 1. This module makes it SUPER EASY to let your users post videos to your Pligg website. Since users do NOT have to paste in embed code at any point you are making it easier for them, and more secure for your site.

If you are interested in adding additional video hosts to this module please read my second post which details how this module works. As mentioned in that post, not all video hosts are going to be compatible with this module.

Please consider making a donation if you use this module on your website so that we can continue to provide free modules like this one. Our goal is to raise $500 for this module in a years time. You can use the Chipin widget to the left to make a donation. Keep in mind that we could have kept this module as a Pligg Pro shop item and sold it, but we were hoping that donations would cover the cost of developing this module.

Why did I choose Lightview?
Quite simply, it was probably the best option for displaying multimedia content in a lightbox. Most of the other choices were either limited in their features or had the same problem with audio not stopping when you closed the ajax box. There were some other choices that all cost a lot more to run them legimately on your site, but I think that $4 USD is a fair price for something that will enhance your site. I suggest you try it out before buying though just to make sure that it does indeed work and doesn't break your site if you are using other javascript on your web page. This includes websites using the Wistie category dropdown menu on IE6 which requires jQuery.

If you are interested in trying this version out just grab the Video_Plus + Lightview file attached to this thread. I will not be providing any additional documentation than what is currently provided with the module since it is a commercial script that doesn't support me in any way. I suggest that you check out the documentation provided on the Lightview homepage for help. Please remember though that the original author is not responsible for supporting this Pligg module.

Supported Video Hosts:
  1. blip.tv
  2. cnn.com
  3. colbertnation.com
  4. collegehumor.com
  5. comedycentral.com
  6. funnyordie.com
  7. guba.com
  8. icefilms.info
  9. jumpcut.com
  10. keezmovies.com
  11. liveleak.com
  12. livevideo.com
  13. magavideo.com
  14. metacafe.com
  15. own3d.tv
  16. putfile.com
  17. redtube.com
  18. reuters.com
  19. revver.com
  20. spike.com
  21. stagevu.com
  22. thedailyshow.com
  23. thenewsroom.com
  24. vbox7.com
  25. vids.myspace.com
  26. video.google.com
  27. vimeo.com
  28. veoh.com
  29. youare.tv
  30. youtube.com

Installation Instructions:
  1. Download the .zip attachment
  2. Unzip it to your computer.
  3. Upload the /modules folder into your Pligg root. This will add 2 Pligg modules to your site, Lightview and Video Plus.
  4. Navigate to Admin > Modules and install the Lightview module
  5. After installing Lightview install the Video Plus module.
  6. From now on when someone submits a url in submit step 1 from a website that this module supports, it will automatically add an image that users can click on that will pop up an embedded video.
  7. Mark as Installed to receive an email or private message when an update is released.
Requirements:

Lightview Module version 0.2 or above
This is included with the Video Plus download. Lightview is needed for the video popup javascript effect. If you want you can use another javascript library to popup the videos, but you will need to remove the requirement line from /modules/video_plus/video_plus_install.php and customize the /modules/video_plus/templates/video_plus_index.tpl file so that it fits your alternate javascript style.

Other Notes:

If a thumbnail-supported URL is entered into submit step 1, thumbnails should be automatically be displayed in your template. Youtube offers a total of 4 static images that can be used to insert into your template. We have assigned all 4 images as template variables that you can use in your link_summary.tpl or video_plus_index.tpl files. Below are examples of each of the template tags followed by a brief description.
  1. <img src="{$video_thumbnail_large}" /> produces the one and only large 320x240 pixel thumbnail
  2. <img src="{$video_thumbnail}" /> produces the first 120x90 pixel thumbnail
  3. <img src="{$video_thumbnail_2}" /> produces the second 120x90 pixel thumbnail
  4. <img src="{$video_thumbnail_3}" /> produces the third 120x90 pixel thumbnail
Example thumbnails from a Youtube video in the same order as shown above:





----------------------

Examples:

You can also take a look at the attached screenshots that demonstrate what an activated video popup looks like and what a story page looks like when a large Youtube thumbnail is displayed.

Changelog:

Version 1.2
  • Added Funnyordie.com.
  • Removed an extra double-quote ( " ) in the template file.
  • The module will now use Lightview instead of jQuery. It seems to be a more popular solution, but please remember to donate to the Lightview author.
Version 1.1
  • Added Redtube.com and Keezmovies.com, including screenshot thumbnails.
Version1.0
  • Added own3d.tv, including screenshot thumbnails.
Version 0.9
  • CNN and Reuters updates. Both services have slightly changed URLs. The video thumbnail will also now only apply to CNN and Reuters video pages, not their normal articles that don't contain any videos.
Version 0.8
  • Youtube now autoplays. Added IceFilms.
Version 0.7
  • Added video thumbnails for Metacafe and Vimeo. Each site that offers thumbnails handles it in a different way so they don't match the Youtube 3 thumbnail option.
Version 0.6
  • Added CNN.com, CBSnews.com and JumpCut.com
Version 0.5 (updated jQuery module too)
  • Added Reuters.com, TheNewsRoom.com, ColbertNation.com, ComedyCentral.com and TheDailyShow.com.
  • Updated version number
  • Added homepage and update url to install script. Please reinstall module to see changes on module admin page.

Download Now

File Type: zip video_plus_1.1.zip (125.8 KB, 1083 views)
File Type: zip Video_Plus + Lightview 1.2.zip (60.3 KB, 1201 views)

Screenshots

File Type: png video_plus.png (58.6 KB, 684 views)
File Type: png video_plus_single.png (81.8 KB, 527 views)

License Agreement

Creative Commons Attribution-Noncommercial-Share Alike License
You are free to Share and Remix this work under the following conditions: You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
You may not use this work for commercial purposes.
If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.

Supporters / CoAuthors

Show Your Support

  • If you like this download support the author by donating.
  • This download may not be copied, reproduced or published elsewhere without author's permission.

Similar Downloads
Download Developer Category Replies Last Post

Comments
  #242 (permalink)  
Old 01-29-2010, 12:47 PM
New Pligger
 
Join Date: Jan 2010
Posts: 13
is anyone using comedycentral videos, with this module? does the video play?

I have tried direct input and the thumb shows....the screen pops up to play but nothing...

it does however work with the other providers listed.

I did not mean to get into an argument about this, but if you could read what i posted...about the videos not playing instead of seeing the words RSS and focusing on just the RSS part and not the rest of what i tried to explain..

anyways thanks
Reply With Quote
  #243 (permalink)  
Old 01-29-2010, 12:49 PM
New Pligger
 
Join Date: Jan 2010
Posts: 13
Quote:
Originally Posted by chuckroast View Post
100% and completely and entirely true.
You can believe what you want, but I'm the guy that wrote this module and I can defiantly say that this module has nothing to do with RSS feeds and that's the reality of it..

When you mention metacafe and youtube it just happens to be a coincidence that they structure their RSS feeds in the same manor as direct URLS which when imported show up in the module...

So I'll say it again, this module has nothing to do with RSS feeds.
/
I know you wrote it? and it has nothing to do with RSS feeds but does work together if the direct url is correct with rss to publish videos....is this correct?
Reply With Quote
  #244 (permalink)  
Old 02-01-2010, 10:53 PM
New Pligger
Pligg Version: 1.0.3
 
Join Date: Jan 2010
Posts: 5
I am hoping someone can give me hand. I am using thestandard template on 1.0.3 and want to use the video_plus module. I noticed after installing that while the video_plus + lightview module works great, it disables the sub-levels in the nav menu. I tried using jsQuery/Fancybox and received all the same errors discussed here with IE/FireFox and Chrome.

I tried updating the video_plus module to use ceebox instead to see if I could rectify some of the FancyBox issues. I modified the video_plus module slightly and created a new ceebox module based on the jQuery module. But alas, I am not a programmer and have something wrong.

I can upload and install the modules fine. Thumbnails are displayed perfectly and when I click on the thumbnail the ceebox opens. Unfortunately, though the video never plays in the ceebox. It looks as if it wants to load the file, but it is pointing internally instead of following the link.

Is there someone willing to look at what I've done so far and give me a hand.

You can see the results at DewBob.com. Additionally I have attached a zip file of the two modules I updated/created.

Thank you.
Attached Files
File Type: zip video_plus_ceebox.zip (154.8 KB, 2 views)
Reply With Quote
  #245 (permalink)  
Old 02-07-2010, 04:28 PM
New Pligger
Pligg Version: 1.0.3
 
Join Date: Sep 2009
Posts: 14
I am not a programmer so i am not not taking responsibility if this script gives you error or some security threat.

On some server vimeo thumbnails don't work and i have found fix for it.
The problem is because some servers don't allow @file_get_contents($url), but this can be coded in another way trough curl (it have to be enabled on your server).

So, in your modules\video_plus\video_plus_main.php
replace:
Code:
elseif (preg_match('/\/www.vimeo.com\/([^&]+)/',$row['link_url'],$m)) {
		//connect to vimeo to gather video info
		$url = "http://vimeo.com/api/clip/{$m[1]}/php";
		$contents = @file_get_contents($url);
		$array = @unserialize(trim($contents));
		//print_r($array); //This displays the whole array 
	    $vars['smarty']->_vars["video_thumbnail"] = $array[0][thumbnail_medium];
		$vars['smarty']->_vars["video_thumbnail_2"] = $array[0][thumbnail_small];
		$vars['smarty']->_vars["video_thumbnail_3"] = $array[0][thumbnail_large];
		$vars['smarty']->_vars["video_thumbnail_large"] = $array[0][thumbnail_large];
	} elseif (preg_match('/\/vimeo.com\/([^&]+)/',$row['link_url'],$m)) {
		//connect to vimeo to gather video info
		$url = "http://vimeo.com/api/clip/{$m[1]}/php";
		$contents = @file_get_contents($url);
		$array = @unserialize(trim($contents));
		//print_r($array); //This displays the whole array 
	    $vars['smarty']->_vars["video_thumbnail"] = $array[0][thumbnail_medium];
		$vars['smarty']->_vars["video_thumbnail_2"] = $array[0][thumbnail_small];
		$vars['smarty']->_vars["video_thumbnail_3"] = $array[0][thumbnail_large];
		$vars['smarty']->_vars["video_thumbnail_large"] = $array[0][thumbnail_large];
	}
with:
Code:
elseif (preg_match('/\/www.vimeo.com\/([^&]+)/',$row['link_url'],$m)) {
		$url = "http://vimeo.com/api/clip/{$m[1]}/php";
		$ch = curl_init($url);
		curl_setopt($ch, CURLOPT_URL, $url);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
		curl_setopt($ch, CURLOPT_POST, 1);
		// grab URL and pass it to the browser
		$data = curl_exec($ch);
		curl_close($ch);
		$finaldata = unserialize($data);

		$vars['smarty']->_vars["video_thumbnail"] = $finaldata[0][thumbnail_medium];
		$vars['smarty']->_vars["video_thumbnail_2"] = $finaldata[0][thumbnail_small];
		$vars['smarty']->_vars["video_thumbnail_3"] = $finaldata[0][thumbnail_large];
		$vars['smarty']->_vars["video_thumbnail_large"] = $finaldata[0][thumbnail_large];
	} elseif (preg_match('/\/vimeo.com\/([^&]+)/',$row['link_url'],$m)) {
		//connect to vimeo to gather video info
		$url = "http://vimeo.com/api/clip/{$m[1]}/php";
		$ch = curl_init($url);
		curl_setopt($ch, CURLOPT_URL, $url);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
		curl_setopt($ch, CURLOPT_POST, 1);
		// grab URL and pass it to the browser
		$data = curl_exec($ch);
		curl_close($ch);
		$finaldata = unserialize($data);
		
		$vars['smarty']->_vars["video_thumbnail"] = $finaldata[0][thumbnail_medium];
		$vars['smarty']->_vars["video_thumbnail_2"] = $finaldata[0][thumbnail_small];
		$vars['smarty']->_vars["video_thumbnail_3"] = $finaldata[0][thumbnail_large];
		$vars['smarty']->_vars["video_thumbnail_large"] = $finaldata[0][thumbnail_large];
	
	}
Reply With Quote
  #246 (permalink)  
Old 02-12-2010, 04:00 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 3,803
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Updated module to include a couple adult hosts (Redtube and Keezmovies). Both are capable of displaying a thumbnail for the video.
This module now supports 30 video websites.
I also updated the Lightview version since it was getting a lot of downloads and I know that a lot of people will want to update to the latest core version of this module.

Now Available: Facebook Connect Module !

Last edited by Yankidank; 02-12-2010 at 04:10 PM.
Reply With Quote
  #247 (permalink)  
Old 02-13-2010, 09:03 AM
New Pligger
Pligg Version: 9.9
 
Join Date: Jun 2008
Posts: 17
is this the same video module used on your demo site?

Search results for 'modules' | My Site
Reply With Quote
  #248 (permalink)  
Old 02-13-2010, 09:22 AM
New Pligger
 
Join Date: Aug 2007
Posts: 4
First, thanks for this great module!

One of our users submitted several links to cbsnews.com, but the video is not working. (e.g., see Olympic Luger Killed in Training Crash | Colivia).

Is cbsnews.com integration working for other users here? No problems with YouTube.

TIA
Reply With Quote
  #249 (permalink)  
Old 02-13-2010, 05:44 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 3,803
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Quote:
Originally Posted by coli View Post
One of our users submitted several links to cbsnews.com, but the video is not working. (e.g., see Olympic Luger Killed in Training Crash | Colivia).
CBS news changed their embed code. They now use some ID number which I can't figure out how to calculate using their URL. Because of this it looks like they might not work anymore. Also, the URL that you were using wouldn't work with the old format either since you linked to a CBS news article, not a video file. A proper link would look like:
Code:
http://www.cbsnews.com/video/watch/?id=6205091n
A more detailed explanation of why it doesn't work anymore:
Pligg needs a video ID in the video site URL, that ID needs to be used in the embed code. For example Youtube URLs have something like this in them:
Code:
watch?v=5g9aVwRenVg
That video ID is repeated in the embed code for the player to identify that video. Maybe about half of the video sites out there follow this structure where the embed code matches the URL in some way.

Unfortunately CBS News seems to now use 2 video IDs in their embed code, one of which (the most important) is not found in the URL so we can't use it with this module. Below is an example URL and Video IDs used by CBS.
Code:
http://www.cbsnews.com/video/watch/?id=6202108n
Code:
id=6202108n
Code:
videoId=50083570

Quote:
Originally Posted by shahuru View Post
is this the same video module used on your demo site?

Search results for 'modules' | My Site
Yes, this is the same video embed module as used on pligg.com/demo/ . The only difference is that the demo is not kept up to date with the latest version.

Now Available: Facebook Connect Module !
Reply With Quote
  #250 (permalink)  
Old 02-15-2010, 04:22 AM
New Pligger
 
Join Date: Aug 2007
Posts: 4
Thanks for the fast and detailled answer. I've also tried Vimeo and the thumbnail doesn't work. Do I need to configure something first for Vimeo?

See http://www.colivia.de/story.php?title=dubai-sky
Reply With Quote
  #251 (permalink)  
Old 02-15-2010, 11:28 AM
Pligg Donor
Donation Level 2 
 
Join Date: Nov 2009
Posts: 11
I just woke up, and decided to install this, so I may have done something wrong.
I uploaded the directories, making sure to overwrite everything.
The Module Management page still says v0.9, instead of v1.1.

Thanks
Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
iPhone/iPod Touch RSS Reader For Sale nzbullet Questions and Comments 15 08-26-2009 09:35 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development