1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Video Inc 0.4

Discussion in 'Plugins' started by Nick, Nov 30, 2009.

  1. Nick

    Nick Well-Known Member

    Video Inc
    Version: 0.4
    Author: Nick Ramsay
    Created: 2009/11/30
    Last Updated:
    Tested on: Hotaru 1.4.0
    Plugins Required: Media Select
    Plug & Play: Yes
    Supported: Yes

    If a submitted url contains a direct link to a video, this plugin will create a thumbnail image for the list pages and embed the video in the post description on post pages. If the Thickbox plugin is active, clicking the thumbnail will launch the video in a screen overlay.

    1. Upload the "video_inc" folder to your plugins folder. Install it from Plugin Management in Admin.

    This plugin uses AutoEmbed, which supports over 150 audio and video sites.

    Revision History
    v.0.4 2013/06/15 - Nick - Updated with the latest version of AutoEmbed (59 downloads)
    v.0.3 2010/05/27 - Nick - Updated for compatibility with the Bookmarking plugin (808 downloads)
    v.0.2 2010/01/02 - Nick - Updated for compatibility with Hotaru 1.0
    v.0.1 2009/11/30 - Nick - Released first version

    Please click "Rate Thread" and give this plugin a rating. Thank you.

    Attached Files:

    Last edited by a moderator: Feb 6, 2010
    djdagovs, angolanmade, mik and 2 others like this.
  2. rushnp774

    rushnp774 New Member

    Sweet! I'll try this when I get home.
  3. hangbowl

    hangbowl New Member

    It looks cannot create image for video from metacafe
  4. baadier

    baadier Well-Known Member

  5. loganimal

    loganimal New Member

    Hey guys,

    Video Inc wasn't working with videos from blip.tv - apparently blip changed their Flash Media player and the stub required an updated. I updated my stub and also made (an admittedly ugly hack) to allow it to show thumbnails from Blip.

    I changed the relevant array portion of my stub.php (in lib) to the following. The actual file is too big to upload.

    Hope this helps anyone who was having problems showing videos from Blip.tv.

    'title' => 'Blip',
    'website' => 'http://www.blip.tv',
    'url-match' => 'http://blip\.tv/(play|file)/([0-9]*)'
    'fetch-match' => '<link rel="video_src" href="([A-z:/\.0-9-_=]*)'
    'embed-src' => '$2'
    'embed-width' => '500',
    'embed-height' => '315',
    'fetch-match' => '<link rel="videothumbnail" href="([A-z:/\.0-9-_=]*)'
    'image-src' => '$2',
    Last edited by a moderator: Sep 20, 2010
    Nick likes this.
  6. wtfnews

    wtfnews New Member


    i've installed this plugin, and it works fine, however I am wondering if there is a way to have the inserted DIV code:

    <div class='video_inc_list'>
    ..etc, etc, etc
    moved to the start of the post code just after:

    <div class="post_image_wrapper">
    At the moment, it is appearing right where the avatar normally goes... same as the plugin "post_images" does...

    I've had a look through the video_inc code, and noticed a function:

    public function show_post_content_list($h)
    which i'm guessing has something to do with it? I'm just not sure how to mod it and have it exactly where I want it and inline with my other post images....

    I hope the above makes sense, its a bit convoluted but I could not figure any other way to write this post..
    Last edited: Oct 13, 2010
  7. wtfnews

    wtfnews New Member

    ignore the top question Nick, to anyone interested in doing this mod, just change the plugin hook to be "pre_show_post"
  8. Nick

    Nick Well-Known Member

  9. chizzle

    chizzle New Member

    Hi Nick, thanks for these great plugins. I have a question for this one, would it be possible just embed the actual video, like let's say youtube on the main page? that way you won't need a thumbnail, or a lightbox to view it as it'll just play on the main page as it would on the post page. Kinda like facebook.

  10. Nick

    Nick Well-Known Member

    Well, the show_post_content_list hook shows the thumbnail and the show_post_content_post hook embeds the video, so you could just add that second hook to your bookmarking_list template. And then exclude video_inc from the first hook.

    Eric likes this.
  11. chizzle

    chizzle New Member

    that was easy, thanks.

    how would I wrap code around the thumbnail to open the post?
  12. Nick

    Nick Well-Known Member

    You mean like this?

    <a href="<?php echo $h->url(array('page'=>$h->post->id)); ?>">THUMBNAIL</a>
  13. chizzle

    chizzle New Member

    Yep, that's it. Thanks.
  14. done

    done New Member

    Hmm, anyway to get the video to show before the post content within <div class="show_post_content"> or do I have to attach plugin to "show_post_author_date" to get it in front?
  15. Nick

    Nick Well-Known Member

  16. scaza

    scaza Active Member

    Do video's get embeded into the RSS feed? this is a challenge I've been facing with the oembed plugin.
    I've had to modify core library files. Perhaps we can add a pluginhook before rss output in the future?
  17. tran_tien

    tran_tien New Member

    Just one problem, i do not need post description on my site, then 1 turn-off this fetured on submit setting. But it hide video player too. Tell me how to still off description and show video player.
  18. GoSERP

    GoSERP New Member

  19. driftholic

    driftholic New Member

    I think there's a conflict with Post Image plugin.....does anyone have the same problem?
  20. tktushonline

    tktushonline New Member

    cannot we remove / not display THUMBNAIL from post_images or even a content/images/post_images/default.jpg when there is already auto-generated thumbnail for video?

Share This Page