Hi,
Please can you introduce a defined constant for the spritegen folder – so I can configure this NOT to be located under wp-content/plugins which is read-only on my server.
Each time you update the plugin I need to edit it to reconfigure spritegen to be in the wp-content/cache folder which is writeable.
If would be really helpful if you could create a couple of constants for the spritegen location as this simplfies all the references to it in sexybookmarks.php and includes/helper_functions.php
This is the tweak I make at the top of sexybookmarks.php:
$pluginpath = '/plugins/'.plugin_basename(dirname(__FILE__)).'/';
$content_path = defined('WP_CONTENT_URL') ? WP_CONTENT_URL : (get_option('siteurl').'/wp-content');
$content_dir = defined('WP_CONTENT_DIR') ? WP_CONTENT_DIR : (ABSPATH.'/wp-content');
define('SHRSB_PLUGPATH',$content_path.$pluginpath);
define('SHRSB_PLUGDIR',$content_dir.$pluginpath);
if (!defined('SHRSB_SPRITEPATH')) define('SHRSB_SPRITEPATH',$content_path.'/cache/spritegen/');
if (!defined('SHRSB_SPRITEDIR')) define('SHRSB_SPRITEDIR',$content_dir.'/cache/spritegen/');
In my case I put spritegen under the cache as it is in fact a cached file that is there to improve performance.