ternstyle
Forum Replies Created
-
Yes I did make the plugin. No worries about the comment. I take no offense.
As far as it working sometimes and not others I can explain that to you.
YouTube is massive. So massive in fact that it cannot store all of its videos on a single server. It needs many servers. Servers upon servers. Also, there is constantly new data added to it fro all over the world as you can imagine. The computing power needed to run YouTube is extensive. So to account for this YouTube (Google) has a system in place for caching information.
One way you’ll notice this is that your YouTube video thumbnails aren’t always added right when you upload your video. This is not because YouTube is broken. It is because it takes time for YouTube to sift through the millions of videos posted.
So, why does the Automatic YouTube Video Posts plugin not always pull the videos in instantly? This is because your YouTube channel’s feed is not updated instantly. The XML feed of all your videos is where my plugin pulls data about your videos from to create them as posts on your site. Your channel’s feed does not exist on the same servers at YouTube that your videos do. YouTube has a schedule it servers are updated on. The server your feed is on might update everyday at 1pm. It might update every 3 days. My plugin cannot get videos that do not exist in your feed. My plugin checks your feed daily. If new videos are available it imports them.
As far as the multiple posts bug goes, that one is frustrating. I know! The unfortunate thing is that I have never been able to replicate it on my servers. I have yet to find what causes it. The best idea I can come up with is that it is a conflict with a theme or another plugin.
Shane,
There is no redirection mechanism built into the plugin. I’m curious as to whether it’s an issue with your active theme or another plugin. I’m sorry you needed to deactivate the plugin. What are the chances of reactivation and running a test where you change the theme to one of WordPress’ default themes to test?
Most likely the plugin wasn’t able to create a necessary file for the AJAX import called:
ayvpp.txtIt attempts to create it in your /wp-content/cache/ folder. Is the file present for thoe of you with issues?
My only idea initially is that it takes time for YouTube to cache your videos on its servers that render the XML feed for your channels. Can you confirm the videos you want to import are in your feeds?
A feed URL looks like this:
http://gdata.youtube.com/feeds/api/users/your-channel-name-here/uploads?orderby=published&max-results=25&start-index=1Fellow users of the plugin, my apologies for not looking in on these posts sooner. I have been responding to direct emails as well as all the posts related to this plugin posted in my forum. It is hard to keep up with the requests in so many locations.
This is a troubling issue. Would any of you care to let me make some tests on their server via WordPress administrative access and FTP? I’d be happy to try to resolve this issue for everyone.
Please contact me at matthew@ternstyle.us
I would try taking a look at line 92 of the file /core/video.php
The plugin should be importing and publishing posts according to publish date of the video on YouTube. That isn;t working for you?
Your first question would probably require custom work for your theme. The second question I don’t really understand. Is it just a single video you want displayed on every post of your website?
Try this:
<?php unset($img);
if(get_post_meta($post->ID,’_tern_wp_youtube_video’,true)) {
tern_wp_youtube_image();
}
elseif ( current_theme_supports( ‘post-thumbnails’ ) && has_post_thumbnail() ) {
$thumbURL = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ” );
$img = $thumbURL[0]; }
else {
unset($img);
if ($wpzoom_cf_use == ‘Yes’) { $img = get_post_meta($post->ID, $wpzoom_cf_photo, true); }
else {
if (!$img) { $img = catch_that_image($post->ID); } }
}
if ($img) { $img = wpzoom_wpmu($img); ?>
<div class=”thumb”>” rel=”bookmark” title=”<?php the_title(); ?>”><img src=”<?php bloginfo(‘template_directory’); ?>/scripts/timthumb.php?src=<?php echo $img ?>&w=130&h=90&zc=1″ alt=”<?php the_title(); ?>” /> </div><?php } ?>If you’re speaking about category pages you’ll need to edit your WordPress settings. You can read bout how to do that here:
http://codex.wordpress.org/Settings_Reading_ScreenThere is a function you’ll need to add to your active theme files to display your thumbnails. You can read about it here:
http://www.ternstyle.us/products/plugins/wordpress/wordpress-automatic-youtube-video-posts/wordpress-automatic-youtube-video-posts-functionsHave you used the “reset” functionality provided by the plugin?
I haven’t been able to duplicate the multiple posts for a single video issue. Not sure what creates that problem.
LMP, expect your second suggestion to be added as a feature this year.
Can you confirm that the videos you are attempting to import are in your YouTube channel’s feed?
The feed URL would look like this:
http://gdata.youtube.com/feeds/api/users/your-channel-name-here/uploads?orderby=published&max-results=25&start-index=1