Oh yes, the replacement process should not be applied to the whole page... I’ll prepare an update soon!
-
☆ A M B ☆
- 91 Posts
Wow, that was fast! Thank you, my clients and I definitely appreciate this addon.
WebsiteZen.com - MODX and E-Commerce web development in the San Francisco Bay Area
-
☆ A M B ☆
- 91 Posts
By the way, maybe this has to do with a system setting specific to my installation or something, but I always have to change the following line to get it to work:
// added .'/'
$dimensions = getimagesize($_SERVER["DOCUMENT_ROOT"].'/'.$filename,$info);
Maybe this is supposed to be the base_url? I am using 2.1 RC-4.
WebsiteZen.com - MODX and E-Commerce web development in the San Francisco Bay Area
I have a another problem - the plugin seems to go through all the images in the page including the ones in the template. That is not a desirable behaviour in my opinion.
And when it complains about being unable to find the image (without basepath fix) I can see it pulling in images from templates that are assigned to completely different resources too..
any idea?
New version (beta3) with fixed "base_path" behaviour and improved RegEx is on its way!
Regarding the scope: Yes, the plugin is meant to search and replace within the whole HTML page. In 99,5 % of cases, it will not find any matches outside the TinyMCE-generated "article" section, but it’s conceptionally more useful to fire the plugin after the page is completely generated and run it on the whole page.