Support » Plugin: Video Gallery - YouTube Playlist, Channel Gallery by YotuWP » is it possible to hide private videos?

  • when i add a playlist with private videos in it they always make the playlist ‘unpostable’ as the private videos show up too. Is there a way to prevent this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter dokustreams

    (@dokustreams)

    i tried editing ‘templates/grid.php’, ‘templates/list.php’ and ‘templates/mix.php’ myself, but had to notice that the grid template already contains a line to cut out private videos as far as i understand:

    if ( $yotuwp->is_private($video) ) continue;

    no matter how i tried to add or change this for use in any of the three templates, private videos always still kept showing up despite the ‘continue’-command should skip to the next iteration of the video-items-loop.

    did anybody else have a look at this and can help to explain?

    • This reply was modified 1 year, 7 months ago by dokustreams.
    • This reply was modified 1 year, 7 months ago by dokustreams.
    • This reply was modified 1 year, 7 months ago by dokustreams.
    Thread Starter dokustreams

    (@dokustreams)

    🙁

    Thread Starter dokustreams

    (@dokustreams)

    i dont want to give up on this problem but im out of ideas.

    so nobody else is bothered by private videos ruining the listing?

    Manas Mitra

    (@manas666)

    Looks like the developer abandoned the support for free version of the plugin. I started liking the plugin, but the inability to filter out private videos from grid is making this plugin not a favourable one.

    @dokustreams not sure if you’re still having this issue but I fixed this by overriding the templates by putting them into my theme in a ‘yotu’ directory (which also ensure they won’t be overwritten when updating the plugin) and then changing:

    if ( $yotuwp->is_private($video) ) continue;

    to

    if ( $video->status->privacyStatus == 'private' ) continue;

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘is it possible to hide private videos?’ is closed to new replies.