WordPress.org

Support

Support » Plugins and Hacks » Featured Video Plus » [Resolved] Youtube, Vimeo, Dailymotion won't allow Explicit videos

[Resolved] Youtube, Vimeo, Dailymotion won't allow Explicit videos

  • Hey Alexander,

    First of all, Great f—in plugin, works like magic.
    My Issue:
    Our site has a couple explicit/adult videos which Youtube, Vimeo and Dailymotion don’t allow, so we are gona have to go with a site that allows such(adult) content.
    Question:
    Is it possible for this plugin to work with one of those sites?
    ie; xHamster
    Really appreciate your help.

    Thanks
    Brent

    https://wordpress.org/plugins/featured-video-plus/

Viewing 1 replies (of 1 total)
  • I 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’ => ‘http://xhamster.com/xembed.php?video=’,
    );

    break;

    then in:
    wp-content/plugins/featured-video-plus/php/general.php

    after 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;

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Youtube, Vimeo, Dailymotion won't allow Explicit videos’ is closed to new replies.
Skip to toolbar