CMS MADE SIMPLE FORGE

JQuery File Upload

 

[#8670] Unknown tag JQueryFU 1.11.x incompatibility issue

avatar
Created By: Deleted User (deleteduser_11200)
Date Submitted: Sat Nov 24 16:11:51 -0500 2012

Assigned To: bess (bess)
Version: 1.0.4
CMSMS Version: 1.11.2.1
Severity: Minor
Resolution: Fixed
State: Closed
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;
 	}


History

Comments
avatar
Date: 2012-11-25 04:54
Posted By: bess (bess)

thank you for this precious feedback !

so i think that i need work on the next release ;)
      
avatar
Date: 2012-11-25 07:26
Posted By: bess (bess)

Fixed in 1.0.5
      
avatar
Date: 2012-11-25 09:13
Posted By: Deleted User (deleteduser_11200)

Thank your for the quick fix and extended documentation. 

Currently working on FEU blog-comments, JQueryFU fills the gap for letting the
enduser upload images, nice work.
      
avatar
Date: 2012-11-25 11:25
Posted By: bess (bess)

youre code could interest me for the JqueryFU documentation. Would it be
possible to send me an example by email at the end of your developement ? thank
you by advance ;)
      
avatar
Date: 2013-02-12 02:40
Posted By: Deleted User (deleteduser_11200)

Bess later this week I will try to write a little blog. www.studio-loos.nl is
the website I have used JQueryFU it's a mashup with FEU + CGFeedBack + JQueryFU
      
Updates

Updated: 2012-11-25 07:26
resolution_id: 5 => 7
assigned_to_id: 100 => 9628
state: Open => Closed

Updated: 2012-11-25 04:54
resolution_id: => 5