Daiko’s YouTube Widget

I must appologize to all of you for the broken download links to my new widget. Well the fact is that all download links were broken. I moved to a new server and there was a change in path that was not corrected. Thank you Rich for notifying me.

Daiko

Better luck this time. Go get it here: Daiko’s YouTube Widget

3 Responses to “Daiko’s YouTube Widget”


  1. 1alex

    dear Daiko, thanks a lot for the plugin!
    have one question
    you have the following line in your code
    $video[$num] = $videos[$random[$num]];
    because of which videos are ordered randomly.
    how can i change it so that they are displayed in exactly the same order as put into the widget?
    thanks again,
    alex

  2. Hi alex,

    Well the videos are randomly selected in that line of the code. They are at the same time shuffled in their order. If I understand you correct, your idea is to present a fixed number of videos in a certain order opposed to present x number of randomly selected videos from a list of y number of videos!?

    That can be done relatively easily in version 1.0.8 (Grab that here: http://wordpress.org/extend/plugins/daikos-youtube-widget/download/ )

    Edit line 128 that says:
    $video[$num] = $videos[$random[$num]];

    and change it to:
    $video[$num] = $videos[$num];

    That (I think) will do your trick.

    If you have version 1.1 installed, You could accomplish the same but the line number is different because I’ve added support for YouTube feeds. You can use it the way you suggest, but then you should not add tag(s) or user(s) because they add videos to the list of own videos.

    Good Luck!

  1. [...] adam frucci wrote an interesting post today!.Here’s a quick excerptWell the fact is that all download links were broken. I moved to a new server and there was a change in path that was not corrected. Thank you Rich for notifying me. Daiko. Better luck this time. Go get it here: Daiko’s YouTube Widget. [...]

Leave a Reply



Bad Behavior has blocked 1561 access attempts in the last 7 days.