Video Plus - Embed Videos from Popular Web Hosts

Register an Account
Reply
 
Thread Tools
Video Plus - Embed Videos from Popular Web Hosts
Developed by Yankidank Yankidank is offline
Developer Last Online: Feb 2012 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: 348
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 (temporarily not working)
  8. icefilms.info
  9. keezmovies.com
  10. liveleak.com
  11. livevideo.com
  12. magavideo.com
  13. metacafe.com
  14. own3d.tv
  15. redtube.com
  16. reuters.com
  17. revver.com
  18. spike.com
  19. stagevu.com
  20. thedailyshow.com
  21. thenewsroom.com
  22. vbox7.com
  23. vids.myspace.com
  24. video.google.com
  25. vimeo.com
  26. veoh.com
  27. youare.tv
  28. 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, 2719 views)
File Type: zip Video_Plus + Lightview 1.2.zip (60.3 KB, 3463 views)

Screenshots

File Type: png video_plus.png (58.6 KB, 1825 views)
File Type: png video_plus_single.png (81.8 KB, 1424 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
  #112 (permalink)  
Old 07-26-2009, 11:55 AM
New Pligger
 
Join Date: Jun 2009
Posts: 24
Is there any way to have the thumbnail show in a particular hook? For example, if I want the thumbs to show up in the pre story content?
Update: I found it in the .init file so I'm good.

Last edited by alpapa23; 07-26-2009 at 01:09 PM.
Reply With Quote
  #113 (permalink)  
Old 07-26-2009, 07:55 PM
Casual Pligger
Pligg Version: 1.2.0
Pligg Template: BoxyBuzz
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 53
When I click on the thumbnail, nothing pops-up. I remember it was working a few months ago, but now it's not showing the video. It goes to the link: "http://www.myurl.com/xyz/#video_pop" but nothing happens . I just re-installed jquery and video_plus0.9 but still doesn't work.
Reply With Quote
  #114 (permalink)  
Old 07-26-2009, 08:01 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
Quote:
Originally Posted by l0gikal View Post
When I click on the thumbnail, nothing pops-up. I remember it was working a few months ago, but now it's not showing the video. It goes to the link: "http://www.myurl.com/xyz/#video_pop" but nothing happens . I just re-installed jquery and video_plus0.9 but still doesn't work.
Probably means you've installed another module that is conflicting. Please list the other modules you have installed.
Reply With Quote
  #115 (permalink)  
Old 07-26-2009, 09:23 PM
Casual Pligger
Pligg Version: 1.2.0
Pligg Template: BoxyBuzz
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 53
Quote:
Originally Posted by chuckroast View Post
Probably means you've installed another module that is conflicting. Please list the other modules you have installed.
Video Plus
Lightview
RSS Importer
Anonymous Story
jQuery Javascript Library
Admin Snippets
Social Bookmark
Upload
Sidebar Stories
Multibox Admin
Admin Modify Language
Reply With Quote
  #116 (permalink)  
Old 07-26-2009, 09:27 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
Quote:
Originally Posted by l0gikal View Post
Video Plus
Lightview
RSS Importer
Anonymous Story
jQuery Javascript Library
Admin Snippets
Social Bookmark
Upload
Sidebar Stories
Multibox Admin
Admin Modify Language
What's Lightview being used for?
Try disabling it and see if your videos work.

Last edited by chuckroast; 07-26-2009 at 09:53 PM.
Reply With Quote
  #117 (permalink)  
Old 07-26-2009, 09:37 PM
Casual Pligger
Pligg Version: 1.2.0
Pligg Template: BoxyBuzz
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 53
Quote:
Originally Posted by chuckroast View Post
What's Lightview?
Try disabling it and see if your videos work.
Wow, that was it! Thanks!
That's weird though, because on the VideoPlus thread, it says to install Lightview, it's a module it comes with.
Reply With Quote
  #118 (permalink)  
Old 07-26-2009, 09:52 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
Quote:
Originally Posted by l0gikal View Post
Wow, that was it! Thanks!
That's weird though, because on the VideoPlus thread, it says to install Lightview, it's a module it comes with.
There are 2 versions of this module, one uses jquery and the other uses lightview. You were trying to use a combination of both.
Glad you got it worked out.
Reply With Quote
  #119 (permalink)  
Old 08-02-2009, 06:46 AM
New Pligger
Pligg Version: 1.0
Pligg Template: Classic
 
Join Date: Jul 2009
Location: France 57
Posts: 5
Hi,
thanks for this usefull module
I just have a little problem :
When the story is the last published story everything work

but when the story is not the last one there is a problem :
Firefox 3.5

IE7


Is video plus compatible with pligg 1.0?
There is 2 webhost that could be added in a new version : own3D - Entertainment - HD / HQ Gaming Videos and TM-Tube - Your TrackMania Video Portal
(and dailymotion but I know that it's not possible...)
Thanks for your help
Reply With Quote
  #120 (permalink)  
Old 08-02-2009, 07:37 AM
Constant Pligger
Pligg Version: 1.0.1
Pligg Template: thestandard
 
Join Date: Jun 2009
Posts: 125
Send a message via Yahoo to prorock
vimeo problem, not view thumb http://www.frigg.md/video/world-scie...tatonic-scale/
Reply With Quote
  #121 (permalink)  
Old 08-04-2009, 03:27 PM
New Pligger
Pligg Version: 1.0
Pligg Template: Classic
 
Join Date: Jul 2009
Location: France 57
Posts: 5
I have add www.own3d.tv on my pligg the code :

video_plus.php
Code:
        // code to display own3d.tv http://www.own3d.tv/watch/nobody,16992.html
        if (preg_match("/http:\/\/www.own3d.tv\/watch\/([0-9a-zA-Z\-\_]*)\,([0-9]*).html/i", $url, $matches)) {
        return '<object width="636" height="380">'.
			   '<param name="movie" value="http://www.own3d.tv/stream/'.$matches[2].'" />'.
                           '<param name="allowfullscreen" value="true" />'.
                           '<param name="wmode" value="transparent" />'.
                           '<embed src="http://www.own3d.tv/stream/'.$matches[2].'" type="application/x-shockwave-flash" allowfullscreen="true" width="636" height="380" wmode="transparent" /></embed>'.
               '</object>';
    }

       // code to display own3d.tv http://www.own3d.tv/watch/16992
        if (preg_match("/http:\/\/www.own3d.tv\/watch\/([0-9]*)/i", $url, $matches)) {
        return '<object width="636" height="380">'.
			   '<param name="movie" value="http://www.own3d.tv/stream/'.$matches[1].'" />'.
                           '<param name="allowfullscreen" value="true" />'.
                           '<param name="wmode" value="transparent" />'.
                           '<embed src="http://www.own3d.tv/stream/'.$matches[1].'" type="application/x-shockwave-flash" allowfullscreen="true" width="636" height="380" wmode="transparent" /></embed>'.
               '</object>';
    }
and video_plus_main.php
Code:
		} elseif (preg_match('/\/www.own3d.tv\/watch\/([0-9a-zA-Z\-\_]*)\,([0-9]*)/',$row['link_url'],$m)) {
	        $vars['smarty']->_vars["video_thumbnail"] = "http://www.own3d.tv/uploads/thumbnails/tn_{$m[2]}__1.jpg";
		$vars['smarty']->_vars["video_thumbnail_2"] = "http://www.own3d.tv/uploads/thumbnails/tn_{$m[2]}__2.jpg";
		$vars['smarty']->_vars["video_thumbnail_3"] = "http://www.own3d.tv/uploads/thumbnails/tn_{$m[2]}__3.jpg";
	} elseif (preg_match('/\/www.own3d.tv\/watch\/([0-9]*)/',$row['link_url'],$m)) {
	        $vars['smarty']->_vars["video_thumbnail"] = "http://www.own3d.tv/uploads/thumbnails/tn_{$m[1]}__1.jpg";
		$vars['smarty']->_vars["video_thumbnail_2"] = "http://www.own3d.tv/uploads/thumbnails/tn_{$m[1]}__2.jpg";
		$vars['smarty']->_vars["video_thumbnail_3"] = "http://www.own3d.tv/uploads/thumbnails/tn_{$m[1]}__3.jpg";
I hope this can't help some people!
Unfortunately for me I'm not able to solve my problem of thumbnails http://forums.pligg.com/pligg-module...html#post83832

Last edited by jeradam; 08-04-2009 at 06:12 PM.
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 10: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