PHP My Video Blog WordPress plugin

php my video blog

I recently purchased the PHP My Video Blog WordPress plugin to help update some of my sites. myVideoBlog will automatically grab videos from popular sites such as YouTube based on your custom parameters and create new posts with the information. Like many WordPress plugins it works great but is just missing a key feature or two.

In the case of PHP My Video Blog, it’s using the YouTube v2.0 API to pull results, which has been officially deprecated as of March 4, 2014. It will work for at least a year but then will need to be upgraded to v3.0. Since their ‘Forum’ and ‘Contact’ pages are empty, I’m guessing I’ll have to do it myself at some point.

As for right now, the plugin’s YouTube v2.0 API calls only work on keywords and not key phrases. For instance, trying to get YouTube videos for “my search term” would instead return videos with keywords “my”, “search” and “term”. That’s the biggest complaint I’ve seen for this plugin. I thought that was a huge lack of functionality, so I changed my API requests to grab key phrases instead. Now, “my search term” only returns videos with “my search term”. If you need to do the same, the process is simple.

First, select and use Add Video Source from the Dashboard menu like normal. Then select My Video Sources and Edit the video source.

my video sources

Now edit the source input box with our changed YouTube v2.0 API query format.

edit video source

By default it should look like this:

http://gdata.youtube.com/feeds/api/videos/-/People/epic/fail?max-results=50&lr=en&alt=atom&v=2&orderby=published

Replace that with this format using %22 as URL-escaped quotation marks:

http://gdata.youtube.com/feeds/api/videos?category=People&max-results=50&lr=en&alt=atom&v=2&orderby=published&q=%22epic+fail%22

If you need further help searching for YouTube videos using the v2.0 API read the official Reference Guide.


[Update: A week after publishing this post the phpmyvideoblog website was taken down. It looks like no support for this plugin will be forthcoming so I will most likely write my own.]


[Update Aug 18th, 2014: Their website is back online but still no direct way to contact the author.]


[Update Sep 18th, 2014]
Another issue with PHPmyVideoBlog is it defines a function that completely wipes out the default cron_schedules that WordPress sets up, including any new cron_schedules added by other plugins. To fix this, edit the file mvb_main.php in the plugin directory and replace function more_reccurences() with:

function more_reccurences($schedules) {
//superblogme: add new schedules correctly
$schedules['once_half_hour'] = array('interval' => 1800, 'display' => 'Once Half an Hour');
$schedules['once_two_hour'] = array('interval' => 7200, 'display' => 'Once Two Hours');
$schedules['once_three_hour'] = array('interval' => 10800, 'display' => 'Once Three Hours');
$schedules['weekly'] = array('interval' => 604800, 'display' => 'Once Weekly');
return $schedules;
}


[Update Sep 24th, 2014]

Replacement plugin development -> Video Grabber Pro.


John Holt

I’m a software engineer and web designer in Fort Pierce, Florida (winter) and Franklin, New Hampshire (summer). Super Blog Me is a space where I can brainstorm my ideas on WordPress development, interface design and other things I do with my life.

9 Comments:

  1. Hi,
    Thanks very much for taking the time to give me the update. If you think you will write your for the V3.0 update, do you think you will share it with us?
    Many thanks again,
    Graeme

  2. Hi Jon,
    Good to find someone with a solution to this ‘plug in’ not working for me.
    I bought it a month ago and can’t get it running at all
    but when i pasted your code into ‘edit’
    there was a whole lode of people, fail comedy links came up. but im not to complacent with the theme im using yet. (Recommend a good free on for me? )
    just want to run a few amazon affiliate links and the odd cpa offer with this amazing looking content provider. just cant set it up .

    New to me all this but would really like to get this plugin working.
    Are there any video tutorials? can you help? how should i edit the code you provided for us?
    if i wanted to use keywords instead of the categories….people-epic-fail etc…

    sorry to be so vague mate but a little lost with this one.
    Thanks
    Nik

  3. Ammanulah Emmanueli

    Hello I have used this plugin with little success, my problem is about setting up server cron jobs, have you been successful in doing so, I also would like the updates concerning YouTube api, if you do make the progress please let me know. Thanks for the informative post

    • I use the WordPress Schedule and not server cron jobs, so I can’t help you there. However I do know the myVideoBlog plugin completely wipes out the WordPress cron_schedules. I’ve updated the post with the info. Maybe that will help.

  4. the replacement plugin you have listed above I wrote support on that site but do you know if its available to download or buy?

Leave a Reply

Your email address will not be published.