WordPress.org

Forums

Featured Video Plus
Youtube, Vimeo, Dailymotion won't allow Explicit videos (2 posts)

  1. andymalik
    Member
    Posted 12 months ago #

    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/

  2. recci
    Member
    Posted 6 days ago #

    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;

Reply

You must log in to post.

About this Plugin

  • Featured Video Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic