Addon Name: FusionTube

Version: v1.09

PHP-Fusion Version Compatibility: v7.02.xx

Author: PHP-Fusion Mods UK

License: GNU Affero GPL v3.

Description

FusionTube is a social video database infusion used for embedding videos from YouTube & DailyMotion.
Fusiontube is perfect for people who like to watch videos and share, talk about and rate them.
With support for YouTube & DailyMotion videos it is the perfect infusion for video and fun sites.

FusionTube has many options and features including Users Submission, ratings, commenting on videos, customisible video player options, Users Favourite Videos, Social Sharing, RSS, Multiple panels and much more, see the full features list below.


Features

  • Supports YouTube & DailyMotion Videos
  • User Submissions
  • New Videos submissions admin message panel - To alert admins when new videos are submitted.
  • Sends Private message to users when their video submission has been approved.
  • Update Videos - Users can update own videos.
  • Updated videos Page for showing latest updated videos
  • Users FusionTube Page
  • Users Favourite Videos
  • Users submitted videos count User Field
  • Infusion admin area for settings, adding videos, videos categories and approving video submissions.
  • Option to enable or disable FusionTube
  • Social Sharing option
  • Support for Sharing videos directly from FusionTube to watch on Facebook using og protocol Meta
  • FusionTube RSS Feed
  • Facebook Comments
  • Set height, width and style of the video players
  • Comments & Ratings of which both can be enable or disabled.
  • Random Video Centre Panel option for displaying in fusion_tube/videos.php
  • Display Description & Image Above or Below the video option.
  • Display Link to Video on YouTube and Dailymotion Option to enable or disable.
  • Videos Tag Cloud
  • Report Broken videos
  • Search Videos
  • Search Tags
  • View Next Or Previous Video when watching video.
  • Videos Stats
  • Related videos side in view.php
  • Horizontal Navigation option
  • Turn Lights off feature that allows to switch off the light while watching videos to improve viewing pleasure.
  • Latest videos side panel
  • Latest videos Comments Panel
  • Latest videos ticker side panel
  • Latest Videos Center Panel.
  • Most Watched Videos Center Panel.
  • FusionTube Multi Center Panel.
  • Easy upgrade script

Install

Upload all the files in the /files folder to your PHP-Fusion site root.
Go to your site Admin >>> System >>> Infusions and infuse FusionTube.
Now go to Admin >>> System >>> Panels and enable the Latest videos Panel and Latest Videos Ticker Panel.
The video submissions Panel should be set as an Upper Center Panel it is used to notify admins when new videos have been submitted.
Next go to Admin >>> Users >>> User Fields and enable the Users submitted videos User field.
Done!
Additional Information
To be able to Manage Facebook Comments you will need to create an new Facebook APP at https://developers.facebook.com/apps
Follow the Facebook Developers Instructions to set up an app this will be used to moderate Facebook comments used in FusionTube.
When you have created the APP you will have an App ID this is the id you put in FusionTube Settings for Facebook APP ID.
Your Facebook User Id is also required. To find your Facebook Id use this simple tool http://www.phpfusionmods.co.uk/infusions/facebook_user-id_lookup/index.php
To find out more about Facebooks Comments see https://developers.facebook.com/docs/reference/plugins/comments/.

Upgrading

Upgrading From v1.08 Upload all the files in the /files/ folder to your PHP-Fusion site root.
Go to your site Admin >>> Infusions >>> FusionTube Admin >>> You will now be redirected to /fusiontube_upgrade.php
Click the Upgrade Button. Upgrade to FusionTube v1.08 is now complete.
Upgrading From v1.07 or Lower Download all old version of FusionTube from Here.
Upload all the files in the /files folder to your PHP-Fusion site root.
Go to your site Admin >>> Infusions >>> FusionTube Admin >>> You will now be redirected to /fusiontube_upgrade.php
Click the Upgrade Button.
Follow the upgrade procedure in order of version.

Usage

To submit videos this can be done by users using the FusionTube submit.php form (infusions/fusion_tube/submit.php), Admins with Fusiontube Access can add Videos via the FusionTube videos Admin (infusions/fusion_tube/admin/videos_admin.php).
The Video Title, Description and Category must be selected.
The Thumbnail image is pulled directly from YouTube or Dailymotion.
In The YouTube Or Dailymotion Video ID field Enter the 11 digit YouTube Video Id or the 6 Digit Dailymotion Video ID.

Finding YouTube Video ID's
For YouTube Videos enter the 11 digit YouTube Video Id.
The YouTube Video ID can usually be found at the end of the YouTube URL when viewing a Video.
eg. http://www.youtube.com/watch?v=ab1CdEd2Gh3 The Underlined part is the YouTube Video ID

Finding Dailymotion Video ID's
For Dailymotion Videos enter the 6 digit Dailymotion Video Id
The Dailymotion 6 digit Video ID can usually be found immediatly after http://www.dailymotion.com/video/ in the Dailymotion URL when viewing a Video. eg. http://www.dailymotion.com/video/xxb1aa_some-title-a-video#.US_O6ldNFQE The underlined 6 digits is the Dailymotion Video ID.

The FusionTube Admin backend has everything admins need to manage FusionTube, The FusionTube Settings page where admin can enable and disable various features and customise the video Players.
The Manage videos Page is where admins can add videos or delete, edit or move categories etc.
The Manage Categories page is where admins can add, edit ,move and delete FusionTube Video Categories.
The Submissions Page is where User submissions go first to get approved or rejected by admins.
If FusionTube is Disabled Admins can still enter FusionTube Pages but regular users will be redirected to your site index.

Changelog

v 1.00: First public release

v 1.01: All Settings now in own SQL Table which fixes wrong video db count error.
Video Image thumbnail now added automatically when video is submitted.
BB Codes now work in video description after updating a video.
Fixed redirection typo in videos_admin.php
Fixed table row colspan in videos_admin.php
Fixed a table row error in videos.php
If Site Ratings Disabled, FusionTube Ratings will be disabled.
Fixed videos Submissions description line break error.
Fixed some missing locale text. Added missing alt attributes in various files.

v 1.02: Fixed wrong textbox and display bbcode widths in submit.php, edit_video.php, and videos_admin.php
Fixed video description input so now " and ' can be used without problems.
Preview of video now in submissions admin.
FusionTube Navigation changed and Video Categories Dropdown menu added and moved searchbox to FusionTube Navigation.
New FusionTube index.php added.
Most Watched videos Center Panel added.
Latest Videos Center Panel added.
[NEW] for new videos now changed to NEW image.
Some icons changed.
FusionTube Ratings now independant and can be enabled or disabled regardless whether main site settings for ratings are set.
Some missing locales added.
Direct Link to Video added under Direct Link to Video on YouTube on view.php

v 1.03: Related videos side added to view.php
FusionTube RSS Added.
Report Broken Video Added.
Video Player style options added, Player Control Bar Theme, Player Progress Bar Colour, Player Frame Colour can be styled in FusionTube Settings admin.
Most Watched video added to FusionTube Stats.
Removed the table from fusionTube stats and replaced with divs.
Removed all tables from view.php replaced with divs.
Fixed FusionTube search pagenav.
Fixed some missing locales & New Added Locales are commented in English.php.
FusionTube upgrade changed, if a new upgrade is available you will be redirected to fusiontube_upgrade.php to perform the upgrade when you try to access FusionTube admin.
Now if FusionTube is disabled, the side panels and center ticker panel will be disabled.
Fixed some minor things in FusionTube Admin settings.

v 1.04: Fixed image and description alignment in view.php
Removed unnecessary fusiontube_upgrade.php include code from all admin files.
Fixed videos.php redirection error.
Added views to videos.php
Fixed views so if 0 or nothing it will show 0 views instead of nothing.
Added og Meta in view.php for when sharing videos via FusionTube it will embed the video on Facebook.
Added Background Colour to Player Frame.

v 1.05: Removed an else from FusionTube Search to stop Error message if nothing is searched before even entering anything and added alert check if nothing is entered or the search text is less than 3 chars.
Added Player frame size option
Fixed video Image and Description alignment issues.
Added Fusiontube enabled check to my_videos.php, edit_video.php and latest_updated_videos.php
videos_admin.php recoded, now uses flipbox to keep Video categories closed by default to help manage videos easier.
Tables in all admin pages changed to 80% width.
Video ID Duplication check to see if the video id already exists, if it does exist the user can't submit it.
Latest FusionTube Comments Panel included.
Some new red video cat images included.

v 1.06:
Favourite Videos added. Above each video in view.php there will be a section where users can add and remove videos as their favourites. This will be done by clicking the Thumbs Up button to Add to and the thumbs down button to remove. (See Image Below) When a video has been added to your favourites you will then be able to see it in your "My Favourite Videos" list.
Some code cleaned and missing locales added.

v 1.07:
Fixed Favourites, I forgot to remove if iSUPERADMIN after testing now works for all members.
In Video Categories Panel float:right has been added to the total video numbers to align them to the right.
FusionTube Multi Center Panel added, now FusionTube can be on any index or home page using the one multi panel.

v 1.08:
FusionTube now supports Dailymotion Videos.
Lights Off Feature Added, Allofthelights.js is a jQuery plugin built by Pierre Vion that allows to switch off the light, for your videos to stand out.
Removed AddThis Social Sharing and replaced it with my own Sharer for Facebook, Twitter & Google Plus.
Added Search Tags, Now Users must submit Search Tags when Submitting videos, A minimum of 1 Tag is required per video.
Added Next & Previous Video in view.php under the video for navigating to the next or previous video in the category.
My Favourites moved into it's own independant file.
When a Video is deleted it will now also be deleted from DB_VIDEO_FAVS.
My Favourites Undefined index fav_id error fixed.
All Meta moved into it's own independant file.
Fixed og Meta For Facebook Sharing
Added Missing Call To Fusiontube stylesheet in some files.
Some different coloured Ratings Stars Added.
New Collection of Video Category Icons added, find them in fusion_tube/images/cats/categorized_folder_pack

v 1.09:
Users FusionTube Page added. All users who have submited videos will now get a FusionTube User Page similar to a user profile. The FusionTube User Pages display info about the video user, videos submited by the user, videos favourited by the user and last updated Videos by that user.
In view.php all viewed video url's now have the YouTube or DailyMotion Video ID appended on to the end of the url string.
Fixed My Favourites Side Panel.
Removed Unnecessary CSS properties from vid-css as reported at http://www.php-fusion.co.uk/forum/viewthread.php?thread_id=31752&pid=177374#post_177112
Cleaned and tidied code in various files.

Support

If you require support for this Addon please visit the PHP-Fusion Mods UK Forum at
http://www.phpfusionmods.co.uk.com/forum/index.php

Credits

Developers: Craig & DrunkeN

Thanks to discofan (Dav) for help with the search.
Thanks to the late Nick Jones (RIP) and PHP-Fusion for weblinks admin, weblink.php, submit.php and submissions.php
Video Tags Cloud Code Based on code by: Philip Daly (HobbyMan)
jQuery Tags Input Plugin 1.3.3: http://xoxco.com/clickable/jquery-tags-input
jscolor, JavaScript Color Picker: Jan Odvarko
Allofthelights.js jQuery plugin: Pierre Vion
jQuery Newsticker: Sam Collett
tipsy - Facebook-style tooltip plugin for jQuery: http://onehackoranother.com/projects/jquery/tipsy/
Categorised Category images: www.michaelrottner.de/wdtv_live.html

Thanks to PHP-Fusion Mods UK Members who test and report bugs and errors.

Licensing

PHP-Fusion Mods UK Addons and Themes are Released as free software without warranties under GNU Affero GPL v3.
This addon is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License.
If you do distribute this addon for download on your site you must put a link to PHP-Fusion Mods UK on the downloads Page for update purposes and you will be required to make sure you keep the Download Archive updated with latest versions.

Copyright © PHP-Fusion Mods UK 2011 - 2014