Thread Starter
Jack
(@moxie)
Succeeded in getting the display back, but not I added a new video but the thumbnail won’t display: http://www.halal-slaughter-watch.org/media/videos/
@jack,
Looks like your youtube video did not have a standard image set. This can be fixed. But need to modify code a little bit and I’ll be happy to help you with it.
Open file cool-video-gallery/lib/youtube.php. In line no 39, replace below
$obj -> thumbnailURL = $item ['snippet'] ['thumbnails'] ['standard'] ['url'];
with
$obj -> thumbnailURL = $item ['snippet'] ['thumbnails'] ['high'] ['url'];
Now add the video again and it should show the thumbnail. Let me know.
Also if you like the plugin please provide your valuable ratings.
@jack,
This issue is fixed in latest version of plugin.
Thread Starter
Jack
(@moxie)
Thanks Praveen! I didn’t have time to try your solution in your previous comment, but a permanent solution is always better 🙂 Thank you.
So I hope the latest update solved your issue. Let me know. If you liked the plugin please take time to rate it
Thread Starter
Jack
(@moxie)
I get this error now:
Parse error: syntax error, unexpected ‘[‘ in /srv/eona127/www/www.halal-slaughter-watch.org/wp-content/plugins/cool-video-gallery/lib/core.php on line 1666
Please let me know which version of plugin are you using?
Thread Starter
Jack
(@moxie)
When trying to activate it again it says Plugin could not be activated because it triggered a fatal error.
Thanks for letting me know. It was a PHP compatibility issue for a function in PHP 5.4 below. Please download a new copy and try again.
Thread Starter
Jack
(@moxie)
Thanks Praveen.
The videos show up again, not error message, but the layout of the page has changed. Are there changes in the page setup or css?
http://www.halal-slaughter-watch.org/media/videos/
@jack,
This is due to css from your theme. See screenshot at url below. The images in post are added additional padding, margin and border from theme css. This is breaking the design. If you want to override this, you have to add css to to img tag in plugin.
http://oi68.tinypic.com/2u9rbic.jpg
Below are steps:
Open file lib > core.php line 1712
$out .= '<img src="' .$current_video['thumb_filename'] . '" style="width:' . $thumb_width . 'px;height:' . $thumb_height .'px;" ' ;
replace with below
$out .= '<img src="' .$current_video['thumb_filename'] . '" style="margin:0px !important;border:0px !important;padding:0px !important;width:' . $thumb_width . 'px;height:' . $thumb_height .'px;" ' ;
Let me know if it worked.
Thread Starter
Jack
(@moxie)
I added custom css which is safer than changing your files 😉 For future updates I mean. So it’s ok now. Thanks!
@jack
That seems good 🙂 Do rate the plugin if you like it.