Title: tomasdev's Replies | WordPress.org

---

# tomasdev

  [  ](https://wordpress.org/support/users/tomasdev/)

 *   [Profile](https://wordpress.org/support/users/tomasdev/)
 *   [Topics Started](https://wordpress.org/support/users/tomasdev/topics/)
 *   [Replies Created](https://wordpress.org/support/users/tomasdev/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/tomasdev/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/tomasdev/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/tomasdev/engagements/)
 *   [Favorites](https://wordpress.org/support/users/tomasdev/favorites/)

 Search replies:

## Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Regenerate Thumbnails] Resized images off by 1px](https://wordpress.org/support/topic/resized-images-off-by-1px/)
 *  [tomasdev](https://wordpress.org/support/users/tomasdev/)
 * (@tomasdev)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/resized-images-off-by-1px/#post-7119668)
 * Yes, I was using FRT. Didn’t realize this topic was only “RT” plugin. Damn naming.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Regenerate Thumbnails] Resized images off by 1px](https://wordpress.org/support/topic/resized-images-off-by-1px/)
 *  [tomasdev](https://wordpress.org/support/users/tomasdev/)
 * (@tomasdev)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/resized-images-off-by-1px/#post-7119666)
 * > The 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Regenerate Thumbnails] Resized images off by 1px](https://wordpress.org/support/topic/resized-images-off-by-1px/)
 *  [tomasdev](https://wordpress.org/support/users/tomasdev/)
 * (@tomasdev)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/resized-images-off-by-1px/#post-7119665)
 * As 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Regenerate Thumbnails] Resized images off by 1px](https://wordpress.org/support/topic/resized-images-off-by-1px/)
 *  [tomasdev](https://wordpress.org/support/users/tomasdev/)
 * (@tomasdev)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/resized-images-off-by-1px/#post-7119661)
 * Same 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Social Slider Feed – Social Media Feed & Gallery Widgets] Slider went blank](https://wordpress.org/support/topic/slider-went-blank/)
 *  [tomasdev](https://wordpress.org/support/users/tomasdev/)
 * (@tomasdev)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/slider-went-blank/page/3/#post-7050957)
 * That fixed my issue! LOVE YOU. Wish the author would merge that fix in.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JW Player for Flash & HTML5 Video] prevent loading player scripts on posts not using player](https://wordpress.org/support/topic/prevent-loading-player-scripts-on-posts-not-using-player/)
 *  [tomasdev](https://wordpress.org/support/users/tomasdev/)
 * (@tomasdev)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/prevent-loading-player-scripts-on-posts-not-using-player/#post-5513071)
 * 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 [http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/](http://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](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [[hack] crop custom thumbnail sizes](https://wordpress.org/support/topic/hack-crop-custom-thumbnail-sizes/)
 *  [tomasdev](https://wordpress.org/support/users/tomasdev/)
 * (@tomasdev)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/hack-crop-custom-thumbnail-sizes/page/2/#post-1883041)
 * One 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Tools for Twitter] [Plugin: Twitter Tools] patch for native RT support](https://wordpress.org/support/topic/plugin-twitter-tools-patch-with-native-rt-support/)
 *  [tomasdev](https://wordpress.org/support/users/tomasdev/)
 * (@tomasdev)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-twitter-tools-patch-with-native-rt-support/#post-2341515)
 * +1 thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [manage_users_custom_column Strange Behavior](https://wordpress.org/support/topic/manage_users_custom_column-strange-behavior/)
 *  [tomasdev](https://wordpress.org/support/users/tomasdev/)
 * (@tomasdev)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/manage_users_custom_column-strange-behavior/#post-1617000)
 * Thanks you so much! I hadn’t realized it should be returned instead of printed!

Viewing 9 replies - 1 through 9 (of 9 total)