Hi Dan,
I found an error which made it impossible to generate resized images. It is on line 876 in mobile-smart.php, MOBILESMART_PLUGIN_URL
should be MOBILESMART_PLUGIN_PATH
, I think you forgot to change.
Also, I have changed the slash and WP_PLUGIN_DIR into WP_PLUGIN_URL on line 40, from:
define('MOBILESMART_PLUGIN_PATH', WP_PLUGIN_DIR . '\mobile-smart');
to
define('MOBILESMART_PLUGIN_URL', WP_PLUGIN_DIR . '/mobile-smart');
After these changes, the images are finally resized, but only for the images uploaded in WordPress, not external images. I think it’s because on line 833 you defined $site_url to search for get_bloginfo only. Other than this, the dimensions of the images aren’t resized correctly as well.
As I am not sure how to fix this, I decided to replace all the image resize code in mobile-smart.php with another image resize code I copied from another plugin.
I don’t know how to contact you, so I try this way, hope you read it.
Anyways, Mobile Smart is a very good plugin, keep up the good work!