Print Thread
Video Infusion v4 [DEV]
NetriX
php-fusion.us/downloads/images/videoinfusion3.jpg

This is an infusion that will allow you to upload your own videos through the administration panel, embed custom video/media source, and add YouTube videos and custom source urls.

You also have the option to configure the look of your video player's skin through the administration page.

Features:
- Video CMS
- Video Upload
- YouTube Compatible
- Addon Implementation
- Share Features
- High Definition Setting
- Highly Customizable
- Supported Video (flv mp4 mov f4v 3gp 3g2 mp3 flac)

Live Demo

Changelog

v4.0.0 Beta Rev 1
- New Layout

v3.1.2 - Dec 19, 2014
- Column support
- Display breaks in certain browsers

v3.1.1 - Dec. 18, 2014
- Fixed missing colspan attribute
- Beautified Code
- Optimal Adjustments to Code

v3.1.0 - Dec. 18, 2014
- All known bugs fixed
- Removed wmv support
- Added mp3/flac and other audio support
- Removed Skins
- New Video Player
- New Latest Videos Center Panel Layout

v3.0.3 - Feb. 7, 2013
- Minor Improvements
- Fixed Bug in Admin (logo position)
- 5 New Themes

v3.0.2 - January 26, 2013
- Added Subcategories
- Improved Video Page Layout
- New Logo Position Setting
- Fixed YouTube Image Problem
- Optimized Code

v3.0.1 - January 21, 2013
- Official v3 Release
- Submit Video Removed
- Implemented User Adding Video Rights
- Minor Bug Fixes

v3.0.0 Beta - January 19, 2013
- Rewrote Core Code
- More Stable Bug Fixes
- User Field Addon
- New Layout

v2.4.0 - September 18, 2012
- Fixed Image Dimensions for Better Layout
- Increased Column Count (Videos per row to 6 on setting)
- Tweaked Layout for Better Viewing
- Edit Video Option on Video
- Upgraded to Latest Video Player Source
- HTML5 Support (Videos now work on IPhone, IPAD, and Other Smart Devices)
- HD Video Fixed
- New Skins

v2.3.3 - April 10, 2012
- Fixed Cat Images Missing

v2.3.2 - April 9, 2012
- Bugfix - Delete/Upload Watermark Logo
- Image sizes on index (no set dimensions)
- GUI - Minor Improvements
- New share panel layout, larger buttons
- 3 New video themes: minima, newtubedark, modieus

v2.3.1 - Unknown
- Bug Fixes (Unknown)

v2.3.0 - August 15, 2011
- Release Canidate
- Upgrade from v1.5
- Upgrade Fixed

v2.2 - August 12, 2011
- Video Submission
- .wmv file's allowed (windows media video)
- Submission Rights
- Optimized Code
- New Locales
- Fixed bugs
- Minor Issues

v2.1c - August 8, 2011
- Fixed $aidlink variable
- Fixed Video Image
- Opted Video Force Image (Show uploaded image over default)
- 3 New Skins Added
- Optimized Code

v2.1 - August 8, 2011
- YouTube Images Fixed
- File URL Fixed
- General Images Fixed
- Missing element fixed
- Upgraded Player
- Removed Ads
- Fixed Locales (other languages)

v2.0 - August 7, 2011
- Video Image Upload
- Category Image Upload
- Improved Code
- Fixed Bugs
- Enable/Disable Comments/Ratings
- Group Access
- Improved Layout

v1.05 - May 29, 2011
- Division by 0 Fixed
- Missing Variable Fixed
- Tweaked Code

v1.04 - May 16, 2011
- Improved Admin Pages
- Improved Layout
- HD Video Added
- Share Video Implemented
- Image Links
- Fixed Minor Bugs
- New Skins
- Optimized Code

v1.03 - May 15, 2011
- Video Navigation
- Change Columns (2 per cell to 1)
- Fixed Upload Size
- Improved Layout
- Improved Search
- jQuery Ratings
- Fixed Minor Bugs

v1.02 - May 15, 2011
- Fixed all Locales
- Fixed Comments
- Added Search
- Improved Layout
- Fixed minor bugs

v1.01
- Fixed Custom Embed
- Fixed Admin Navigation
NetriX attached the following file:
You are not allowed to see attachments in this thread.

Edited by NetriX on 12-19-2014 17:55
 
NetriX
v3.1.2

The table design was not cross-browser friendly. What displayed fine in Chrome, broke in IE and Firefox.

Added the following to fight the issue.

/infusions/video/inc.php

Download source  Code
switch($columns)
{
    case 1;
        $colwidth = "100%";
    break;
    case 2;
        $colwidth = "50%";
    break;
    case 3;
        $colwidth = "33%";
    break;
    case 4;
        $colwidth = "25%";
    break;
    default;
        $columns = 2;
        $colwidth = "50%";
    break;
}




Hopefully this works globally. This multi-column altering is becoming a nightmare.

Versions 3.1.1 and Below are BROKEN! Upgrade now.
 
NetriX
I would appreciate some feedback on version 4. You can view its' development live http://phpfusionm.../index.php

Suggestions? Opinions?
 
KasteR
Looks great! I was testing your demo page in Google Chrome, and Mozilla FireFox. For Chrome, seemed to be working as intended. FireFox, I was unable to get any video to initiate. The thumbnail photos load, but it's not playing for me. Keeping in mind, that on a web filter system, and certain pages on your domain at times get flagged as "Games" for some reason..

I'm not certain, but it also looked like the html5player.js is using a few depreciated pieces of syntax. Example is this warning 'Attr.nodeValue' is deprecated. Please use 'value' instead.

I'll be looking into this a bit further.

Also, minor thing I noticed was that you'll probably want to change this:

infusion.php
original:
Download source  Code
replace_in_output("<span title=\'{$locale['i_desc']}\' style=\'cursor:hand;\'>{$locale['i_title']}</span>", "<img src=\'" . ADMIN . "images/video_netrix.png\' width=\'28px\' height=\'28px\' style=\'margin-right: 3px; float: left;\' border=\'0\' /><strong>{$locale['i_title']}</strong><br /><a href=\'http://phpfusionmods.com\' target=\'_blank\'>PHPFusionMods.com</a>");



proposed change:
Download source  Code
replace_in_output("<span title=\'{$locale['i_desc']}\' style=\'cursor:hand;\'>{$locale['i_title']}</span>", "<img src=\'" . ADMIN . "images/video_netrix.png\' width=\'28px\' height=\'28px\' style=\'margin-right: 3px; float: left;\' border=\'0\' /><strong>{$locale['i_title']}</strong><br /><a href=\'http://phpfusionmods.org\' target=\'_blank\'>PHPFusionMods.org</a>");




Good job though man. Always loved this infusion!

Edit:
Also, seems to work well in Microsoft Internet Explore v8. Yeah, I know v8 is old, but that browser is pre-HTML5 and still works.
Edited by KasteR on 12-19-2014 16:54
 
NetriX
You're right, I forgot about that in the infusion details.

You may have viewed when I was adjusting changes, breaking the display in FF.

Updated to force Flash over HTML5, could fix your problem.

Everything looks fine over here, IE - FF - Chrome Thumb Up

Appreciate the feedback, keep it coming. Grin Christmas
 
penehoff
Well i install the new version it takes my right panels and throws them underneath everything else in the center panel area ..
 
NetriX
v3.1.2 - Just updated download
- Just fixed the video_center_panel, Misplaced closing tag.
- No longer breaks center layout

v4 Open testing released!

See post #1 for latest file -> http://php-fusion...#post_2372
NetriX attached the following file:
You are not allowed to see attachments in this thread.
 
penehoff
Sweettttttt Installed ...
 
NetriX
v4.00

Rev 2 released

RSS Feeds
Layout Changed / Optimized
Secure Content Served
New Upload Settings
NetriX attached the following file:
You are not allowed to see attachments in this thread.
 
nuori
hi
sorry my english is very mad Smile

http://37x.1x.net/images/help.jpg


no pics!!???

help me pleas Shock


v3.1.2
 
NetriX

>nuori wrote:


hi
sorry my english is very mad Smile

http://37x.1x.net/images/help.jpg


no pics!!???

help me pleas Shock


v3.1.2

This is an issue on YouTube's part. We can adjust accordingly but I'll need the script to be running with YouTube videos on your website so that I can test.

Kind Regards.
 
nuori
ok you need youtoub the script and where should it be?
 
NetriX
I just need to see a live example of the missing image.

Then I should be able to address your problem quickly.

Upon visiting your website, I noticed the infusion was defused. If possible, infuse it again and add a video, such as the one you have in screenshot.

Thanks.
 
nuori
the link:

http://img.youtub...efault.jpg
 
NetriX
Thanks. You have the url set wrong.

YouTube: http://www.youtub...m/watch?v= per1D3QGb08

When you add a video, in the URL input field, only use the video id.

It needs to be: per1D3QGb08

Example Screenshot:
php-fusion.us/forum/attachments/example.jpg

Thumbnail is then correct:

img.youtube.com/vi/per1D3QGb08/default.jpg
NetriX attached the following file:
You are not allowed to see attachments in this thread.
 
3Xpl01t
When it will be ready the video infusion 4.0 version?

And, new latest video side panel? ;) B)

[php]<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: navigation_panel.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
if (file_exists(INFUSIONS."video/locale/".$settings['locale'].".php")) {
include INFUSIONS."video/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."video/locale/English.php";
}

include INFUSIONS . "video/infusion_db.php";

openside($locale['latest-videos']);
echo "<table cellpadding='1' cellspacing='1' border='1' width='100%' class='tbl-border'>\n";
$result = dbquery("
SELECT v.*, vc.* FROM " . DB_VIDEO . " v
LEFT JOIN " . DB_VIDEO_CAT . " vc ON v.cat_id=vc.cat_id
WHERE ".groupaccess('cat_access')." ORDER BY id DESC LIMIT 0,5
");
if (dbrows($result)) {
while($data = dbarray($result)) {
echo "<tr>\n"; echo "<td width='30%' class='tbl2' valign='top'>\n"; if ($data['video_type'] == "youtube" && $data['url']) { echo "<img src='http://img.youtube.com/vi/{$data['url']}/0.jpg' alt='' style='border:0; width: 60px; height: 54px;' />\n"; } elseif (!empty($data['file_image_thumb']) && file_exists(INFUSIONS."video/images/" . $data['file_image_thumb'])) { echo "<img src='".INFUSIONS."video/images/" . $data['file_image_thumb'] . "' alt='' style='border:0; width: 60px; height: 54px;' />\n"; } else { echo "<img src='".INFUSIONS."video/images/cat_images/cat1.png' alt='' style='border:0; width: 60px; height: 54px;' />\n"; } echo "</td>\n";
echo "<td width='70%' class='tbl1' valign='top'>\n";
echo "<a href='".INFUSIONS."video/video.php?id=".$data['id']."'><strong>".$data['name']."</strong></a>\n";
echo "<br />\n<span style='font-size: 12px; font-weight: bold;'>".number_format($data['views'])."</span>&nbsp;<span class='small'>Views</span>\n";
echo "</td>\n</tr>\n";
}
}
echo "</table>";
closeside();
?>[/php]
 
NetriX
Hi Bandi172,

You can use v4.0 as-is as a replacement for v3 without too much trouble, I think the only thing you'll need to alter manually is the featured video on the index.

But to answer the release question, with PHP-Fusion 9.00 being released soon I've put it on hold to ensure its' fully compatible.

And its' likely that even when that happens, the video infusion will be reprogrammed extensively.
 
penehoff
Share this embeded ? is that coming soon?
 
3Xpl01t
Hy thanks for your answer... :)

hm am... The videos numbers of comments how to display? (sorry my english)

Download source  Code
".number_format(???????????)."


:D :D

Please help, thanks! B)
 
rdk23
I have a panel: Other articles in this category
Download source  Code
//-------- Start -----------//
if (isset($_GET['article_id']) && isNum($_GET['article_id']) && FUSION_SELF=='articles.php' ) {
//locales
$l_name = 'Yet in this category:';
$l_nonews = '<i>In this section there are no other articles.</i>';
$l_thiscat = 'Go to category ...';
//===
$ca_count = 10 ; //max art
$ca_ntrim = 80 ; //reduce art
//===
opentable($l_name);
echo "<table border='0' width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
echo "<td class='tbl' width='100%'>\n";
$article_now = $_GET['article_id'];
$see_cat = 0 ;
$result1 = dbquery("SELECT article_cat FROM ".DB_PREFIX."articles WHERE article_id=$article_now LIMIT 1");
if ($data1 = dbarray($result1)) { $see_cat = $data1['article_cat']; }
$result1 = dbquery("SELECT article_subject,article_id FROM ".DB_PREFIX."articles WHERE article_cat=$see_cat AND article_id<>$article_now ORDER BY RAND() DESC LIMIT $ca_count");
if (dbrows($result1)) {
echo '<ul>';
while ($data1 = dbarray($result1)) {
echo "<li><span class='small'></span> <a href='".BASEDIR."articles.php?article_id=".$data1['article_id']."' title='".$data1['article_subject']."'>".trimlink($data1['article_subject'],$ca_ntrim)."</a></li>";
}
echo '</ul>';
}
else { echo $l_nonews; }
echo '<hr/><div align="center"><a href="'.BASEDIR.'articles.php?cat_id='.$see_cat.'">'.$l_thiscat.'</a></div>';
}
echo "</td>\n";
echo "<tr>\n</table>\n";
closetable();
//------------* End *---------------//



I tried to remake this panel for the video. I use: video_infusion_4_dev_rev1. It did not work. I weakly understood php code. I tried to remake this panel for the video.It did not work. I weakly understood php code. Can somebody help me, showing sample code, replace :
articles.php, article_id, article_cat, $article_now, articles.php?article_id

These functions, of code, cause in me difficulties of understanding remake.
if (isset($_GET['article_id']) && isNum($_GET['article_id']) && FUSION_SELF=='articles.php' ) {

$article_now = $_GET['article_id'];
$see_cat = 0 ;

SELECT article_cat FROM ".DB_PREFIX."articles WHERE article_id=$article_now LIMIT 1

<a href="'.BASEDIR.'articles.php?cat_id='.$see_cat.'">'.$l_thiscat.'</a>

I tried to do again, nothing came, my code, nothing is to show
Download source  Code
//--------------STAT------------------//
if (isset($_GET['v.id']) && isNum($_GET['v.id']) && FUSION_SELF=='video.php' ) {
//locales
$l_name = 'Yet in this category:';
$l_nonews = '<i>In this section there are no other articles.</i>';
$l_thiscat = 'Go to category ...';
//===
$ca_count = 10 ; //max art
$ca_ntrim = 80 ; //reduce art
//===
opentable($l_name);
echo "<table border='0' width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
echo "<td class='tbl' width='100%'>\n";
$v_now = $_GET['v.id'];
$see_vc = 0 ;
$result3 = dbquery("SELECT vc FROM ".DB_PREFIX."v WHERE v.id=$v_now LIMIT 1");
if ($data3 = dbarray($result3)) { $see_vc = $data3['vc']; }
$result3 = dbquery("SELECT v,v.id FROM ".DB_PREFIX."v WHERE vc=$see_vc AND v.id<>$v_now ORDER BY RAND() DESC LIMIT $ca_count");
if (dbrows($result3)) {
echo '<ul>';
while ($data3 = dbarray($result3)) {
echo "<li><span class='small'></span> <a href='video.php?id=".$data['id']."' title='".trimlink($data3['name'])."'>".trimlink($data3['name'],$ca_ntrim)."</a></li>";
}
echo '</ul>';
}
else { echo $l_nonews; }
echo '<hr/><div align="center"><a href="video.php?vc_id='.$see_vc.'">'.$l_thiscat.'</a></div>';
}
echo "</td>\n";
echo "<tr>\n</table>\n";
closetable();
//------------* End *---------------//



Edited by rdk23 on 05-30-2015 18:42
 
Jump to Forum: