Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

file Minor change in regular expression - Test Sites

More
12 years 1 month ago #197 by benmillerj
I've just started using jQuery Easy on several of my test sites. The problem is that I have them running under subdirectories on a test server, so the URL is something like www.example.com/foo/index.php.

This caused issues with the plugin because it would put the create the path to the external jQuery libraries with this form /foo/https://ajax.google etc....

This can be simply fixed by changing the regular expressions that replace JQLIB, JQUILIB, AND JQUICSS with the following format:
preg_replace('#[^"]*?JQLIB#', $this->_jqpath, $body);

Since this extends the functionality of the plugin without changing its current features, I request that it be incorporated into the next release.

yours,
ben
The following user(s) said Thank You: admin

Please Log in or Create an account to join the conversation.

More
12 years 1 month ago #200 by admin
Thank you Ben for this fix.
I am working on an update and will definitely incorporate the code into the plugin.
This is a very useful post, thank you for helping make jQuery Easy even better!

Olivier.

Please Log in or Create an account to join the conversation.