contus-video-gallery

Description

This plugin has been closed and is no longer available for download.

Reviews

Its ok feature wise but here’s some fixes

Out of the box feature wise its OK but i found a lot of the coding was ancient and some things were missing. I believe the devs are either lazy or they haven’t uploaded the right update to wordpress, they claim that a lot of the issues were fixed in version 3.0 that i came across like the date been november 30th -0001 (fix below) and the switch to iframe which none of them were I know this because version 3.0 is the most current one and its the one i started on, when i searched the php files all the code they claimed to have replaced was still present.

I mostly add my YouTube game play videos to my site and this is the first problem, this plugin is flash based which YouTube no longer supports making this plugin pretty much redundant for YouTube content creator until the fix i found on there forums which I will share below.

No playlist support, i found i couldn’t add any playlist to my site via this plugin. the playlist feature is for users to put together which again doesn’t work, I will try to add support for youtube playlists myself and share once it done.

Fixes

Flash to iframe Fix (remember to always backup your files in case anything goes wrong)

Find this file
wp-content/plugins/contus-video-gallery/front/views/videohome.php and open file videohome.php

Search for this code


/** If browser is detect then play videos via flash player using embed code */
$div .= '<embed id="player" src="' . $swf . '" flashvars="baserefW=' . $this->_siteURL . $baseref . $showplaylist . '&mtype=playerModule" width="' . $settingsData->width . '" height="' . $settingsData->height . '" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" wmode="transparent" />';

Once found replace this code with this


f (strpos ( $videoUrl, 'youtube' ) > 0) {
/** Iframe code for youtube videos */
$videoId1 = getYoutubeVideoID ( $videoUrl );
$div='<div id="player"></div><script>var tag = document.createElement("script");tag.src = "https://www.youtube.com/iframe_api";var firstScriptTag = document.getElementsByTagName("script")[0];firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);var player;function onYouTubeIframeAPIReady() {player = new YT.Player("player", {width: "'.$settingsData->width .'",height: "'.$settingsData->height .'",videoId: "'.$videoId1.'",playerVars: {"rel": 0,"showinfo":0,"modestbranding":0},events: {"onStateChange": onPlayerStateChange}});}var done = false;function onPlayerStateChange(event) {if (event.data == YT.PlayerState.PLAYING && !done) {currentVideoP('.$videoId.');done = true;}}</script>';
} else{
/** If browser is detect then play videos via flash player using embed code */
$div .= '<embed id="player" src="' . $swf . '" flashvars="baserefW=' . $this->_siteURL . $baseref . $showplaylist . '&mtype=playerModule" width="' . $settingsData->width . '" height="' . $settingsData->height . '" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" wmode="transparent" />';
}

save this file, in the same folder edit the videodetailpage.php file

Replace this code


$output .= '<div id="flashplayer"><embed src="' . $this->_swfPath . '" flashvars="' . $flashvars . '" width="' . $width . '" height="' . $height . '" allowfullscreen="true" allowscriptaccess="always" type="application/x-shockwave-flash" wmode="transparent"></div>';

With this


foreach ( $fetched as $media ) {
$videourl = $media->file;
$file_type = $media->file_type;
$imgurl = getImagesValue ( $media->image, $file_type, $media->amazon_buckets, '');
}
if (strpos ( $videourl, 'youtube' ) > 0) {
$videoid = getYoutubeVideoID ( $videourl );
$output .='<div id="player"></div><script>var tag = document.createElement("script");tag.src = "https://www.youtube.com/iframe_api";var firstScriptTag = document.getElementsByTagName("script")[0];firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);var player;function onYouTubeIframeAPIReady() {player = new YT.Player("player", {width: "'.$width.'", height:"'.$height.'",videoId: "'.$videoid.'",playerVars: {"rel": 0,"showinfo":0,"modestbranding":0},events: {"onStateChange": onPlayerStateChange}});}var done = false;function onPlayerStateChange(event) {if (event.data == YT.PlayerState.PLAYING && !done) {currentVideoP('.$videoId.');done = true;}}</script>';

} else{

$output .= '<div id="flashplayer"><embed src="' . $this->_swfPath . '" flashvars="' . $flashvars . '" width="' . $width . '" height="' . $height . '" allowfullscreen="true" allowscriptaccess="always" type="application/x-shockwave-flash" wmode="transparent"></div>';
}

Save and that should fix you flash

Wrong date fix
If your videos are displaying the date as November 30th -0001
Go to this file wp-content/plugins/contus-video-gallery/admin/controllers/videosSubController.php

Find this code

//$videoData ['post_date'] = date ( 'Y-m-d H:i:s' ); and remove the // from the front of it and save the file, this should sort out the wrong date but you will have to edit and click publish on all videos displaying the wrong date to fix them

Anyway sorry for the wall of text hope what i put helps

A truly terrible plugin, really badly coded

I have been patiently waiting for 17 months for Apptha to update their Video Gallery plugin and every time I ask they say it will be two months.

Here was the initial feedback from our developers in December 2015 – a year later and nothing has been updated:

For starters the Player is not HTML5, but Flash-based

The Video Gallery file is 370 lines of php code (with some small html/js) and half of the file is an ugly mess of spaghetti code.
Not only this, but Apptha/Contus are doing some dark magic stuff with the loading of the actual player, which is totally undocumented and it’s badly approached.

From my quick review it seems every video file has a file type which is coded via a cryptic number – with possible values from 1 to 5.
One number defines a YouTube/DailyMotion video, another uploaded file, another custom url, legacy flash based video streaming type & embed video.

So there are various types of conditions and 4 different approaches to the video display:
from using one type of specialised tag, that is subsequently replaced via js – for the embed type
to using another for YouTube, again replaced via js
to using 3rd tag for uploaded image or flash streaming, again later replaced via js
to using a 4th tag which is similar to the YouTube tag but not quite, and again later replaced via js
A total mess.
Not to mention that the behaviour of all this is changing depending on whether the widget is loaded on mobile, or on desktop.
From what I see sometimes more than one tag is used – this specifically is not a bug, it’s called progressive enhancement and it’s needed to support various Browsers and environments.
Either way, the approach is bad even in this regard, as the lack of basic documentation & conventions within the code is annoying.
There is no basic explanation why certain decisions are made.
We had a very hard time just to apply some basic responsive styles for the player – as we had to write 30-40 lines of CSS hacks to get the player at least in a basic shape.
In short, Apptha should supply a Video Player that looks and behaves more like the one in YouTube – based on HTML5.
But even if they do, they won’t replace the underlying code of the widget – so there is a high risk, that they will send even worse/tweaked version of the widget.

Such a great plugin and support

They helped me with everything i need and want my website to look like. They never leave me until everything is solved/fixed and ready. Great support and really recommend using them.

Keep up the good work guys and great plugin as well!

Contus Video Gallery

Believe it or not it is the best when it comes to a Video Gallery and, it’s Free to begin with.
The Support is second to none. Always there and they go that extra mile to help. I have 2 sites running Video Gallery of which one I will Upgrade very soon. Thanks to the Support Team.

Отличная тех. поддержка

Добрый день
Установил бесплатный плагин видео галереи.
Это лучшее ПО, что я смог найти для вордпресс.
Работает все как часы.
Очень редко возникающие проблемы, техническая поддержка
решает очень быстро.
Спасибо им огромное, не смотря на языковой барьер.
С нетерпением ждем выхода обновленного плагина.
С уважением, Алекс

****************

good afternoon
Install the free video gallery plugin.
This is the best software that I could find for wordpress.
Everything works like clockwork.
Very rarely emerging issues, technical support
decides very quickly.
Thank them very much, despite the language barrier.
We are looking forward to release the updated plugin.
Best regards, Alex

Awesome Support

When I have face problem and talk to supporting team. They response me fast and also resolve my problem in few moment. In this technology era we need such kind of support.

Read all 193 reviews

Contributors & Developers

“WORDPRESS VIDEO GALLERY” is open source software. The following people have contributed to this plugin.

Contributors