Summary:
Unknown tag JQueryFU 1.11.x incompatibility issue
Detailed Description:
=== Problem ===
I was trying out your JQueryFU module on a CMSMS 1.11.x installation. By adding
the following tag:
{JQueryFU number='10' template='full' dir_path='/uploads/images'
dir_url='/uploads/images'}
The CMS page broke, I got the following Smarty compilation error:
Syntax Error in template "024ab397e4a2fd17486ad537ca312dac2b4176d1" on line 1
"{JQueryFU number='10' template='full' dir_path='/uploads/images'
dir_url='/uploads/images'}" unknown tag "JQueryFU"
=== Why is this broken? ===
By examining your code I saw your using "SetParameters()" this method is
deprecated in 1.11.x "InitializeFrontend()" should be used. Strange enhough the
LazyLoadFrontend also does not work.
=== Fix ===
I made the following fix and now I can use your module, hope this is helpful.
[arnoud@lama JQueryFU]$ diff -u ../JQueryFU.module.orig JQueryFU.module.php
--- ../JQueryFU.module.orig 2012-11-24 22:07:10.000000000 +0100
+++ JQueryFU.module.php 2012-11-24 22:11:14.000000000 +0100
@@ -72,7 +72,7 @@
function VisibleToAdminUser()
{
- return true;
+ return false;
}
function MinimumCMSVersion()
@@ -80,7 +80,7 @@
return "1.10.0";
}
- function SetParameters()
+ function InitializeFrontend()
{
$this->RegisterModulePlugin(true, false);
$this->RestrictUnknownParams();
@@ -117,12 +117,12 @@
function LazyLoadFrontend()
{
- return TRUE;
+ return FALSE;
}
function LazyLoadAdmin()
{
- return TRUE;
+ return FALSE;
}