Sutherland Boswell
Forum Replies Created
-
Forum: Plugins
In reply to: [Video Thumbnails] [Plugin: Video Thumbnails]Page URL Dailymotion supportThanks! I’ll work on including this.
Forum: Plugins
In reply to: [Video Thumbnails] [Plugin: Video Thumbnails] DailyMotion not WorkingThanks for pointing this out, I thought I had included this same fix originally but it must have slipped by. I’ll fix this in the next version.
Thanks again
The plugin currently saves the thumbnail URL to a custom field named _video_thumbnail which is hidden in the editor because of the underscore at the beginning. You should be able to access this custom field in your theme, but I’m not exactly sure what you need it for. If you need some more help, let me know some more details of what you’re trying to do and I’ll do my best to help you out.
I disabled creation until the post is published because there were problems when a post was auto-saved as a draft. There might be a pretty easy solution though, look for this block of code:
// Find video thumbnail when saving a post, but not on autosave add_action('new_to_publish', 'save_video_thumbnail', 10, 1); add_action('draft_to_publish', 'save_video_thumbnail', 10, 1); add_action('pending_to_publish', 'save_video_thumbnail', 10, 1); add_action('future_to_publish', 'save_video_thumbnail', 10, 1);and immediately after add this:
// Save with draft add_action('save_post', 'save_draft_video_thumbnail', 10, 1); function save_draft_video_thumbnail($post_id) { $postdata = get_postdata($post_id); if ($postdata['post_status'] == 'draft') { get_video_thumbnail( $post_id ); } }Give it a shot and let me know if and how it works! Depending on the results I may add a setting to save a thumbnail with drafts.
Forum: Plugins
In reply to: [Video Thumbnails] [Plugin: Video Thumbnails] Smush It ConflictThanks for the heads up, I’m not familiar with Smush It so I’ll have to look into it
Forum: Plugins
In reply to: [Video Thumbnails] [Plugin: Video Thumbnails] Alts for ImagesIt turns out special characters in his post titles were messing with the HTML in his alt text. If you have a similar problem, check out this.
Just tested it and it seems to work fine in Arras. If you’re having trouble it’s likely that something else is the problem, and with some more info I’ll be able to help.
Forum: Plugins
In reply to: [Video Thumbnails] [Plugin: Video Thumbnails] jwplayer and video thumbnailsI plan on checking it out, but unfortunately don’t have much time to dedicate to it at the moment. I’ll do my best to get on it soon!
Forum: Plugins
In reply to: [Video Thumbnails] [Plugin: Video Thumbnails] Alts for ImagesNot really sure what your question is if the alt info is showing up in the output… could you explain the problem a little more?
Check out TimThumb, it can crop images to specific dimensions.
Forum: Plugins
In reply to: [Plugin: Video Thumbnails] VVQ no thumb found and grey image added in mediaAre empty thumbnails appearing in the media library for the ones that don’t show up? If there aren’t empty thumbnails in your media library, sharing the embed code you’re using from the videos that aren’t working would be helpful.
Forum: Plugins
In reply to: [Plugin: Video Thumbnails] VVQ no thumb found and grey image added in mediaWhat version of the plugin are you using and who is your host? These are the first two things that come to mind that might be causing this.
Try this out.
if ( $posts ) { foreach ( $posts as $post ) { $post_title = $post->post_title; $permalink = get_permalink( $post->ID ); $thumbnail = get_video_thumbnail( $post->ID ); $output .= $before . '<div id="laatsteBanners"><img src="' . $thumbnail . '" width=50 height=50 /><a href="' . esc_url( $permalink ) . '" rel="bookmark" title="Permanent Link: ' . esc_attr( $post_title ) . '">' . esc_html( $post_title ) . '</a></div>';That’s done using an extra arrow image after each thumbnail in the layout and positioning it over the thumbnail using CSS.
I believe Bueno has thumbnails already built in – you shouldn’t have to make any changes to the code if you have the options to save to the media library and set as featured image enabled.