Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Video Inc 0.3

  1. #1
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,861
    Blog Entries
    88
    Thanks
    485
    Thanked 809 Times in 528 Posts

    Default Video Inc 0.3

    Video Inc
    Version: 0.3
    Author: Nick Ramsay
    Created: 2009/11/30
    Last Updated:
    2010/06/04
    Tested on: Hotaru 1.3.0
    Plugins Required: Media Select
    Plug & Play: Yes
    Supported: Yes

    Description
    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.

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

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

    Revision History
    v.0.3 2010/05/27 - Nick - Updated for compatibility with the Bookmarking plugin
    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 Thumbnails Attached Thumbnails video_inc.png   video_inc2.png  
    Attached Files Attached Files
    Last edited by carlo75; 02-06-2010 at 02:02 PM.

  2. Thanked by:


  3. #2
    Senior Member rushnp774's Avatar
    Join Date
    Nov 2009
    Location
    Lees Summit, MO
    Posts
    142
    Blog Entries
    2
    Thanks
    14
    Thanked 10 Times in 6 Posts

    Default

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

  4. #3
    Member
    Join Date
    Mar 2010
    Location
    Indonesia
    Posts
    40
    Thanks
    28
    Thanked 1 Time in 1 Post

    Default

    It looks cannot create image for video from metacafe

  5. #4
    Senior Member baadier's Avatar
    Join Date
    Jan 2010
    Location
    Cape Town, South Africa
    Posts
    263
    Thanks
    80
    Thanked 14 Times in 10 Posts

    Default

    Does anybody think that the implementation of this http://www.longtailvideo.com/players/ would be interesting? Im thinking branded video players and so on.

  6. #5
    Junior Member
    Join Date
    Sep 2010
    Location
    Seoul, PRK
    Posts
    3
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default

    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.

    PHP Code:
      array(
        
    '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 petsagouris; 09-20-2010 at 10:24 AM. Reason: added the code formatting

  7. Thanked by:


  8. #6
    Junior Member
    Join Date
    Oct 2010
    Posts
    20
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default

    hello,

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

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

    Code:
    <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:

    Code:
    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 by wtfnews; 10-13-2010 at 06:15 AM.

  9. #7
    Junior Member
    Join Date
    Oct 2010
    Posts
    20
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default

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

  10. #8
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,861
    Blog Entries
    88
    Thanks
    485
    Thanked 809 Times in 528 Posts

    Default

    Or use some of the pluginHook function parameters to restrict and exclude plugins:

    http://docs.hotarucms.org/Designing_around_Plugin_Hooks

  11. #9
    Junior Member
    Join Date
    Nov 2010
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

    Thanks

  12. #10
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,861
    Blog Entries
    88
    Thanks
    485
    Thanked 809 Times in 528 Posts

    Default

    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.

    http://docs.hotarucms.org/Designing_around_Plugin_Hooks

  13. Thanked by:


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •