tomasdev
Forum Replies Created
-
Forum: Plugins
In reply to: [Regenerate Thumbnails] Resized images off by 1pxYes, I was using FRT. Didn’t realize this topic was only “RT” plugin. Damn naming.
Forum: Plugins
In reply to: [Regenerate Thumbnails] Resized images off by 1pxThe Regenerate Thumbnails plugin does not remove old images
I don’t see a reason why it would ever break if that’s the case. We’re not deleting manually and the posts were rather old.
Forum: Plugins
In reply to: [Regenerate Thumbnails] Resized images off by 1pxAs a workaround, I’ve been using the following nginx configuration:
# Missing resized images, try to fetch original location ~* (\-\d+x\d+)(@2x)?\.(gif|jpg|jpeg|png) { if (!-e $request_filename){ rewrite (.*)\-\d+x\d+(@2x)?\.(gif|jpg|jpeg|png) $1.$3 break; } }
Basically it fetches the original image if the resized would throw a 404.
Forum: Plugins
In reply to: [Regenerate Thumbnails] Resized images off by 1pxSame deal here. We’ve been using the plugin on each theme change we’ve done in the last couple of years.
Changed the theme once again about 2 weeks ago, and some posts have broken images because of this 1px difference in the newly regenerated ones.
I’m a developer, I just don’t know where to look about this. I’ll start by digging the diffs in the SVN.
Forum: Plugins
In reply to: [Social Slider Feed] Slider went blankThat fixed my issue! LOVE YOU. Wish the author would merge that fix in.
I see how it can be achieved by hooking into PHP
ob_start()
and I bet there’s a way in WP to do it.JW Player user: here is a suggested solution https://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/
add_filter('the_posts', 'conditionally_load_jwplayer'); // the_posts gets triggered before wp_head function conditionally_load_jwplayer($posts) { if (empty($posts)) return $posts; // use this flag to see if styles and scripts need to be enqueued $shortcode_found = false; foreach ($posts as $post) { if (stripos($post->post_content, 'jwplayer') !== false) { // bingo! $shortcode_found = true; break; } } if (!$shortcode_found) { // dequeue remove_action('wp_enqueue_scripts', array('JWP6_Plugin', 'insert_javascript')); remove_action('wp_head', array('JWP6_Plugin', 'insert_license_key')); remove_action('wp_head', array('JWP6_Plugin', 'insert_jwp6_load_event')); } return $posts; }
Forum: Hacks
In reply to: [hack] crop custom thumbnail sizesOne approach i’ve tried:
function my_admin_head() { echo " <script> jQuery(function($){ var jQueryLoad = $.fn.load; $.fn.load = function(){ var result; if( arguments.length == 3 ){ var c = arguments[2]; result = jQueryLoad.apply(this, [arguments[0], arguments[1], function(r){ c.apply(this, arguments); if( r.indexOf('imgedit-wrap') > -1 ){ var last = $('.imgedit-label').last(); var input = last.find('input').clone().val('slideshow-full'); var label = $('<label class=\"imgedit-label\"></label>').append(input).append(' Slideshow'); last.after(label); } }]); }else{ result = jQueryLoad.apply(this, arguments); } return result; }; }); </script>"; } add_action('admin_head', 'my_admin_head');
I gave up because there is no way to save that new submitted value ha!
Forum: Plugins
In reply to: [Tools for Twitter] [Plugin: Twitter Tools] patch for native RT support+1 thanks
Forum: Plugins
In reply to: manage_users_custom_column Strange BehaviorThanks you so much! I hadn’t realized it should be returned instead of printed!