Forum Replies Created

Viewing 15 replies - 16 through 30 (of 247 total)
  • Plugin Author Chris

    (@zenation)

    You can use (and increase) the “offset” parameter to skip videos.

    Eg
    [relatedYouTubeVideos … max=”1″]
    then later in the same post
    [relatedYouTubeVideos … max=”1″ offset=”1″]
    and even later in the same post
    [relatedYouTubeVideos … max=”1″ offset=”2″]

    If you want to display multiple videos each time you have to do some simple maths:

    Eg
    [relatedYouTubeVideos … max=”4″]
    then later in the same post
    [relatedYouTubeVideos … max=”4″ offset=”4″]
    and even later in the same post
    [relatedYouTubeVideos … max=”4″ offset=”8″]

    Plugin Author Chris

    (@zenation)

    Plugin Author Chris

    (@zenation)

    Good catch, actually, thanks. I’m on it. Though I myself think it would be better to place a (css) play-button-triangle over the video image instead of text. This way, no translation would be needed.

    Plugin Author Chris

    (@zenation)

    I mean there are basically 3 steps to check if you -unexpectedly- get 0 results:

    1. Do you have a -valid/browser- Youtube API key?
    2. Is at least one PHP method enabled to make HTTP requests (to the YT API)?
    3. Do you get more/other/any results when you search for the same terms manually on YouTube.com?

    Since (2) seems to be alright, I would check the other points as well.

    Plugin Author Chris

    (@zenation)

    Hi,
    have you tested if your youtube key works?

    Via Google Console: Make sure it’s a (or create a new) “browser”(!) key. Those are the least restrictive ones while the referrer/server ip seem to cause trouble sometimes.

    Screenshot 1
    Screenshot 2

    Plugin Author Chris

    (@zenation)

    You’re welcome and no problem at all.

    Chris

    Plugin Author Chris

    (@zenation)

    No, mine is not adding or storing any post meta data. The YT results are cached in a JSON format. Still…can you try this additional plugin?

    video-thumbnails-addon-rytv-1.0.0.zip

    It should act as a bridge between both. Respectively, the Video Thumbnails plugin should now also scan for videos coming via the Related Youtube Videos plugin.

    There’s a little error though which might pop up depending on how your PHP error levels are set. I had to define a constant before the Video Thumbnails plugin is doing it. So you might get an error/notice “constant already defined” or “cannot be redeclared” or something like that.

    But if this addon works I will contact the other developer and maybe he’s willing to apply a little tweak that I have in mind.

    Plugin Author Chris

    (@zenation)

    Hi,
    interesting use case, yet I don’t think I will integrate such a function into my plugin. But the “Video Thumbnails” plugin seems to be extendable. So I will see if I can squeeze the both of them together. Just give me a day or so to get a better at the code.

    Plugin Author Chris

    (@zenation)

    You can enter a comma separated list of post/page IDs (numbers) on the widget setting “Hide On”, or with the shortcode attribute [… exclude=”1,2,3″]
    You should enter the page IDs for the “about”, “contact us” page and all the others that won’t deliver a useful Youtube video title.

    If you wonder what videos show up for a certain post title and/or think it doesn’t match, you can manually check the results coming from Youtube on:
    https://developers.google.com/youtube/v3/docs/search/list

    There should be a web form either on the side or the bottom of the page. Just enter the word “snippet” in the “part” field, and your title (aka search term) into the “q” field.

    Plugin Author Chris

    (@zenation)

    Just saying: I haven’t forgotten about this but I’m on the road at the moment. I will look at it over the weekend

    Plugin Author Chris

    (@zenation)

    Hi,
    I’m not quite sure I understand the problem correctly. Do you mean the plugin is breaking your posts (eg the DOM) or is it just showing inappropriate videos?

    The latter is due to WordPress not offering a useful post title, like on the search results page (which you’ve mentioned). Though the issue of “garbage videos” is not limited to that but also occurs, for example, on the “contact” page, the “about us” page etc. Basically every page/post title Youtube can easily misunderstand.

    I’m not sure if there’s a better way but since you seem to be using the widget you could prevent it from showing up at all on certain pages by using another plugin called “widget logic” or something alike.

    If you want me to look into something specific feel free to shoot me an email.

    Plugin Author Chris

    (@zenation)

    Sorry, you can’t. At least it’s not that easy.

    You would have to use the direct PHP approach (https://www.ads-software.com/plugins/related-youtube-videos/other_notes/) and, for example, code this directly into your tempalte file(s).

    In version 2 [which, if I’m honest, don’t know when it’s coming out. Maybe earlier next year?] you will be able to create your own HTML templates.

    Plugin Author Chris

    (@zenation)

    Hi and thanks for the feedback.
    Unfortunately I’m not getting any notification about ratings…

    1. ’10’ has been the hard limit for the old YT API. So I’ve removed that entirely from the plugin code with v1.9.3. Now it’s all up to Youtube to cap to whatever they seem fit. Good catch, btw, I totally overlooked that one ??

    2. The full screen issue is known but it’s up to Youtube, respectively the actual video player they offer you – more or less accoding to how good they can detect your system. You (also in the sense of ‘this plugin’) cannot enable or disable features like that programmatically.

    I know your comment is quite old by now. But maybe this still clears up some things (or gets a conversation rolling)

    Plugin Author Chris

    (@zenation)

    There’s been a bug in my code which hopefully is now fixed with version 1.9.3

    You now can exclude post IDs like this (this is taken and tweaked from the code example in the plugin documentation):

    $data     = $RytvAPI->validateConfiguration(
        array(
         'relation' => 'keywords',
         'keywords' => 'monthy mython',
         'max'      => '1',
         'width'    => 150,
         'height'   => 150,
         'lang'     => 'en',
         'region'   => 'de',
         'class'    => 'left center inline bg-black',
         'preview'  => true,
         'exclude'  => '1,2,3' // list of post IDs where no video should show up
        )
      );
    Plugin Author Chris

    (@zenation)

    Ah, okay, my mistake.

    You can build your own (HTML) template after retrieving your list of videos via this plugin. The “playlist” can/must then be created via Javascript and CSS.

    So if you happen to have a jQuery plugin or so that can create such a playlist I can help you patching it together with the RYTV plugin.

Viewing 15 replies - 16 through 30 (of 247 total)