recci
Forum Replies Created
-
Forum: Plugins
In reply to: [Featured Video Plus] Youtube, Vimeo, Dailymotion won't allow Explicit videosI got it working with xHamster
Alter the switch statement in wp-content/plugins/featured-video-plus/php/backend.php in the get_video_data function.
add after line 527:
case ‘xhamster’:
preg_match(‘/video=([a-zA-Z0-9]+)/’, $url, $url_data);
if( !isset($url_data[1]) )
break;$video_id = $url_data[1];
$data = array(
‘id’ => $video_id,
‘provider’ => $provider,
‘url’ => ‘https://xhamster.com/xembed.php?video=’,
);break;
then in:
wp-content/plugins/featured-video-plus/php/general.phpafter line 139 add this case to the switch statement:
case ‘xhamster’:
$embed = “\n” . ‘<iframe width=”‘.$size[‘width’].'” height=”‘.$size[‘height’].'” src=”//xhamster.com/xembed.php?video=’.$meta[‘id’].'” frameborder=”0″ allowfullscreen></iframe>’;
break;Forum: Plugins
In reply to: [Featured Video Plus] Uploaded .flv files not workingI got it working with xhamster do ass above then in:
wp-content/plugins/featured-video-plus/php/general.phpafter line 139 add this case to the switch statement:
case ‘xhamster’:
$embed = “\n” . ‘<iframe width=”‘.$size[‘width’].'” height=”‘.$size[‘height’].'” src=”//xhamster.com/xembed.php?video=’.$meta[‘id’].'” frameborder=”0″ allowfullscreen></iframe>’;
break;Forum: Plugins
In reply to: [Featured Video Plus] Uploaded .flv files not workingI noticed that in wp-content/plugins/featured-video-plus/php/general.php
line 63 $ext != ‘flv’ was missing from the if statement. Is this bug or left out for a reason?Adding that allows it to play ,flv files
I also tried to add support for xhamster videos by altering the switch statement in wp-content/plugins/featured-video-plus/php/backend.php get_video_data function. It seems to be passing back the correct data but will not play the videos. Must be something to do with the JavaScript.
case ‘xhamster’:
preg_match(‘/video=([a-zA-Z0-9]+)/’, $url, $url_data);
if( !isset($url_data[1]) )
break;$video_id = $url_data[1];
$data = array(
‘id’ => $video_id,
‘provider’ => $provider,
‘url’ => ‘https://xhamster.com/xembed.php?video=’,
);break;
obviously this is no longer being supported.
Not even getting any javascript errors or anything.