Index: /extensions/user_tags/CHANGELOG
===================================================================
--- /extensions/user_tags/CHANGELOG	(revision 20250)
+++ /extensions/user_tags/CHANGELOG	(revision 20251)
@@ -1,5 +1,10 @@
-User Tags 0.6.2 - 2013-01-14
+User Tags 0.7.1 - 2012-09-12
 ================================
-* Fix issue with cache directory key in config parameters array.
+* Fix issue with image without tag
+
+User Tags 0.7.0 - 2012-09-11
+================================
+* Fix incompatibility with piwigo 2.4.x
+* Fix issue when adding similary tags
 
 User Tags 0.6.1 - 2011-07-18
Index: /extensions/user_tags/MANIFEST
===================================================================
--- /extensions/user_tags/MANIFEST	(revision 20250)
+++ /extensions/user_tags/MANIFEST	(revision 20251)
@@ -32,4 +32,9 @@
 user_tags/language/lv_LV/help/index.php
 user_tags/language/lv_LV/help/readme.html
+user_tags/language/tr_TR/plugin.lang.php
+user_tags/language/tr_TR/index.php
+user_tags/language/tr_TR/description.txt
+user_tags/language/tr_TR/help/index.php
+user_tags/language/tr_TR/help/readme.html
 user_tags/language/no_NO/plugin.lang.php
 user_tags/language/no_NO/index.php
@@ -37,4 +42,9 @@
 user_tags/language/no_NO/help/index.php
 user_tags/language/no_NO/help/readme.html
+user_tags/language/nb_NO/plugin.lang.php
+user_tags/language/nb_NO/index.php
+user_tags/language/nb_NO/description.txt
+user_tags/language/nb_NO/help/index.php
+user_tags/language/nb_NO/help/readme.html
 user_tags/language/it_IT/plugin.lang.php
 user_tags/language/it_IT/index.php
@@ -61,4 +71,5 @@
 user_tags/css/admin.css
 user_tags/css/style.css
+user_tags/css/imgs/edit.png
 user_tags/css/imgs/close.png
 user_tags/public.php
Index: /extensions/user_tags/admin.php
===================================================================
--- /extensions/user_tags/admin.php	(revision 20250)
+++ /extensions/user_tags/admin.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/css/style.css
===================================================================
--- /extensions/user_tags/css/style.css	(revision 20250)
+++ /extensions/user_tags/css/style.css	(revision 20251)
@@ -1,24 +1,25 @@
-.flash-messages{position:fixed;width:60%;display:none;top:50%;left:200px;font-size:.85em;}
-.flash-messages div{margin-left:120px;min-height:30px;padding:10px;font-weight:bold;}
-.flash-messages div.errors{color:red;background-color:#ffe1e1;border:1px solid red;}
-.flash-messages div.infos{color:green;background-color:#98fb98;}
-#t4u-update{float:right;}
+#flash-messages{position:fixed;width:60%;display:none;top:50%;left:200px;font-size:.85em;}
+#flash-messages div{margin-left:120px;min-height:30px;padding:10px;font-weight:bold;}
+#flash-messages div.errors{color:red;background-color:#ffe1e1;border:1px solid red;}
+#flash-messages div.infos{color:green;background-color:#98fb98;}
+#t4u-update{float:right;cursor:pointer;}
 #t4u-cancel,#t4u-update{margin-top:5px;}
 #t4u-edit{margin-left:5px;}
-.t4u-clickable{cursor:pointer;}
-#t4u-addtags-form .t4u-disabled{color:#999;border-color:#666;}
-ul.token-input-list-facebook{overflow:hidden;height:auto!important;height:1%;width:400px;border:1px solid #8496ba;cursor:text;font-size:12px;font-family:Verdana;min-height:1px;z-index:999;margin:0;padding:0;background-color:#fff;list-style-type:none;clear:left;}
-ul.token-input-list-facebook li input{border:0;width:100px;padding:3px 8px;background-color:white;margin:2px 0;-webkit-appearance:caret;}
-li.token-input-token-facebook,li.token-input-new-token-facebook{overflow:hidden;height:auto!important;height:15px;margin:3px;padding:1px 3px;background-color:#eff2f7;color:#000;cursor:default;border:1px solid #ccd5e4;font-size:11px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;float:left;white-space:nowrap;}
-li.token-input-new-token-facebook{background-color:#FAF;}
-li.token-input-token-facebook span{margin-left:5px;cursor:pointer;}
-li.token-input-selected-token-facebook{background-color:#5670a6;border:1px solid #3b5998;color:#fff;}
-li.token-input-input-token-facebook{float:left;margin:0;padding:0;list-style-type:none;}
-div.token-input-dropdown-facebook{position:absolute;width:400px;background-color:#fff;overflow:hidden;border-left:1px solid #ccc;border-right:1px solid #ccc;border-bottom:1px solid #ccc;cursor:default;font-size:11px;font-family:Verdana;z-index:1;}
-div.token-input-dropdown-facebook p{margin:0;padding:5px;font-weight:bold;color:#777;}
-div.token-input-dropdown-facebook ul{margin:0;padding:0;}
-div.token-input-dropdown-facebook ul li{background-color:#fff;padding:3px;margin:0;list-style-type:none;}
-div.token-input-dropdown-facebook ul li.token-input-dropdown-item-facebook{background-color:#fff;}
-div.token-input-dropdown-facebook ul li.token-input-dropdown-item2-facebook{background-color:#fff;}
-div.token-input-dropdown-facebook ul li em{font-weight:bold;font-style:normal;}
-div.token-input-dropdown-facebook ul li.token-input-selected-dropdown-item-facebook{background-color:#3b5998;color:#fff;}
+#t4u-update-tags .t4u-disabled{color:#999;border-color:#666;cursor:default;}
+#Tags{background:transparent url(imgs/edit.png) no-repeat left top;padding-left:20px;cursor:pointer;}
+ul.token-input-list{overflow:hidden;height:auto!important;height:1%;width:400px;border:1px solid #8496ba;cursor:text;font-size:12px;font-family:Verdana;min-height:1px;z-index:999;margin:0;padding:0;background-color:#fff;list-style-type:none;clear:left;}
+ul.token-input-list li input{border:0;width:100px;padding:3px 8px;background-color:white;margin:2px 0;}
+li.token-input-token{overflow:hidden;height:auto!important;height:15px;margin:3px;padding:1px 3px;background-color:#eff2f7;color:#000;cursor:default;border:1px solid #ccd5e4;font-size:11px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;float:left;white-space:nowrap;}
+li.token-input-token p{display:inline;padding:0;margin:0;}
+li.token-input-token span{color:#a6b3cf;margin-left:5px;font-weight:bold;cursor:pointer;}
+li.token-input-selected-token{background-color:#5670a6;border:1px solid #3b5998;color:#fff;}
+li.token-input-input-token{float:left;margin:0;padding:0;list-style-type:none;width:10px;}
+li.token-input-input-token input{color:#000;}
+div.token-input-dropdown{position:absolute;width:400px;background-color:#fff;overflow:hidden;border-left:1px solid #ccc;border-right:1px solid #ccc;border-bottom:1px solid #ccc;cursor:default;font-size:11px;font-family:Verdana;z-index:1;}
+div.token-input-dropdown p{margin:0;padding:5px;font-weight:bold;color:#777;}
+div.token-input-dropdown ul{margin:0;padding:0;}
+div.token-input-dropdown ul li{background-color:#fff;padding:3px;margin:0;list-style-type:none;}
+div.token-input-dropdown ul li.token-input-dropdown-item{background-color:#fff;}
+div.token-input-dropdown ul li.token-input-dropdown-item2{background-color:#fff;}
+div.token-input-dropdown ul li em{font-weight:bold;font-style:normal;}
+div.token-input-dropdown ul li.token-input-selected-dropdown-item{background-color:#3b5998;color:#fff;}
Index: /extensions/user_tags/include/autoload.inc.php
===================================================================
--- /extensions/user_tags/include/autoload.inc.php	(revision 20250)
+++ /extensions/user_tags/include/autoload.inc.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/include/constants.inc.php
===================================================================
--- /extensions/user_tags/include/constants.inc.php	(revision 20250)
+++ /extensions/user_tags/include/constants.inc.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/include/default_values.inc.php
===================================================================
--- /extensions/user_tags/include/default_values.inc.php	(revision 20250)
+++ /extensions/user_tags/include/default_values.inc.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/include/t4u_config.class.php
===================================================================
--- /extensions/user_tags/include/t4u_config.class.php	(revision 20250)
+++ /extensions/user_tags/include/t4u_config.class.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/include/t4u_content.class.php
===================================================================
--- /extensions/user_tags/include/t4u_content.class.php	(revision 20250)
+++ /extensions/user_tags/include/t4u_content.class.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
@@ -29,36 +29,38 @@
     global $template;
 
-    if (!$this->plugin_config->hasPermission('add')) {
-      return $content;
+    $template->set_prefilter('picture', array(__CLASS__, 'picture_prefilter'));
+
+    if ($this->plugin_config->hasPermission('add')) {
+      load_language('plugin.lang', T4U_PLUGIN_LANG);
+
+      $template->assign('T4U_JS', T4U_JS);
+      $template->assign('T4U_CSS', T4U_CSS);
+      $template->assign('T4U_IMGS', T4U_IMGS);
+      $template->assign('T4U_PERMISSION_DELETE', $this->plugin_config->hasPermission('delete'));
+      $template->assign('T4U_UPDATE_SCRIPT', get_root_url().'ws.php?format=json&method='.T4U_WS.'update');
+      $template->assign('T4U_UPDATE_METHOD', T4U_WS.'update');
+      $template->assign('T4U_LIST_SCRIPT', get_root_url().'ws.php?format=json&method='.T4U_WS.'list');
+      $template->assign('T4U_IMAGE_ID', $picture['id']);
+      $template->assign('T4U_REFERER', urlencode($picture['url']));
+      $template->assign('T4U_PERMISSION_DELETE', $this->plugin_config->hasPermission('delete'));
+      
+      $related_tags = array();
+      if (!empty($template->smarty->_tpl_vars['related_tags'])) {
+	foreach ($template->smarty->_tpl_vars['related_tags'] as $id => $tag_infos) {
+	  $related_tags['~~'.$tag_infos['id'].'~~'] = $tag_infos['name']; 
+	}
+	$template->assign('T4U_RELATED_TAGS', $related_tags);
+      }
+
+      $template->set_filename('add_tags', T4U_TEMPLATE.'/add_tags.tpl');
+      $template->assign_var_from_handle('PLUGIN_PICTURE_AFTER', 'add_tags');
     }
+  }
 
-    load_language('plugin.lang', T4U_PLUGIN_LANG);
-
-    $template->assign('T4U_JS', T4U_JS);
-    $template->assign('T4U_CSS', T4U_CSS);
-    $template->assign('T4U_IMGS', T4U_IMGS);
-    $template->assign('T4U_PERMISSION_DELETE', $this->plugin_config->hasPermission('delete'));
-    $template->assign('T4U_UPDATE_SCRIPT', get_root_url().'ws.php?format=json&method='.T4U_WS.'update');
-    $template->assign('T4U_UPDATE_METHOD', T4U_WS.'update');
-    $template->assign('T4U_GET_SCRIPT', get_root_url().'ws.php?format=json&method='.T4U_WS.'list');
-    $template->assign('T4U_IMAGE_ID', $picture['id']);
-    $template->assign('T4U_REFERER', urlencode($picture['url']));
-    $template->assign('T4U_PERMISSION_DELETE', $this->plugin_config->hasPermission('delete'));
-
-    $related_tags = array();
-    if (!empty($template->smarty->_tpl_vars['related_tags'])) {
-      foreach ($template->smarty->_tpl_vars['related_tags'] as $id => $tag_infos) {
-	$related_tags['~~'.$tag_infos['id'].'~~'] = $tag_infos['name']; 
-      }
-    }
-    $template->assign('T4U_RELATED_TAGS', $related_tags);
-
-    $template->set_filename('add_tags', T4U_TEMPLATE.'/add_tags.tpl');
-
-    $plugin_picture_before = $template->get_template_vars('PLUGIN_PICTURE_BEFORE');
-    $plugin_picture_before .= $template->parse('add_tags', true);
-    $template->append('PLUGIN_PICTURE_BEFORE', $plugin_picture_before);
-
-    return $content;
+  public static function picture_prefilter($source, &$smarty) {
+    $pattern = '{if $display_info.tags and isset($related_tags)}';
+    $replace = '{if $display_info.tags}';
+    
+    return str_replace($pattern, $replace, $source);
   }
 }
Index: /extensions/user_tags/include/t4u_ws.class.php
===================================================================
--- /extensions/user_tags/include/t4u_ws.class.php	(revision 20250)
+++ /extensions/user_tags/include/t4u_ws.class.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
@@ -28,5 +28,5 @@
 
     $service->addMethod(T4U_WS.'list', array($this, 'tagsList'), 
-			array(),
+			array('q' => array()),
 			'retrieves a list of tags than can be filtered'
 			);
@@ -41,11 +41,9 @@
 
   public function tagsList($params, &$service) {
-    $query = '
-SELECT
-    id AS tag_id,
-    name AS tag_name
-  FROM '.TAGS_TABLE.'
-;';
-    
+    $query = 'SELECT id AS tag_id, name AS tag_name FROM '.TAGS_TABLE;
+    if (!empty($params['q'])) {
+      $query .= sprintf(' WHERE name like \'%%%s%%\'', $params['q']);
+    }
+
     $tagslist = $this->__makeTagsList($query);
     unset($tagslist['__associative_tags']);
@@ -106,7 +104,13 @@
     } 
 
-    if (!empty($tags_to_associate)) {
-      $tag_ids = get_tag_ids(implode(',', $tags_to_associate));
-      set_tags($tag_ids, $params['image_id']);  
+    if (empty($message['error'])) {
+      if (empty($tags_to_associate)) { // remove all tags for an image
+	$query = 'DELETE FROM '.IMAGE_TAG_TABLE;
+	$query .= sprintf(' WHERE image_id = %d', $params['image_id']);
+	pwg_query($query);
+      } else {
+	$tag_ids = get_tag_ids(implode(',', $tags_to_associate));
+	set_tags($tag_ids, $params['image_id']);  
+      }
     }
     
Index: /extensions/user_tags/init.php
===================================================================
--- /extensions/user_tags/init.php	(revision 20250)
+++ /extensions/user_tags/init.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/js/jquery.addtags.js
===================================================================
--- /extensions/user_tags/js/jquery.addtags.js	(revision 20250)
+++ /extensions/user_tags/js/jquery.addtags.js	(revision 20251)
@@ -1,1 +1,1 @@
-eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(6($){7 4q={2a:"4T 4S a 4U 2F",2R:"4V A",2E:"4X...",3S:"&4W;",47:4R,3j:1,1f:E,1J:E,23:"4Q",4c:"3n",4b:"q",2A:",",3b:J,3l:E,4f:J,4w:1I,1b:E,3c:E,2Y:E,1X:J,2X:J};7 1Y={4p:"c-n-4t",c:"c-n-c",2N:"c-n-4L-c",1B:"c-n-4K-c",2K:"c-n-1a-c",2v:"c-n-4x-c",2t:"c-n-4M-c",G:"c-n-G",4v:"c-n-G-z",4B:"c-n-G-4N",2O:"c-n-4x-G-z",45:"c-n-n-c"};7 W={2G:0,1V:1,1E:2};7 y={3J:8,3P:9,3u:13,3m:27,4P:32,4O:33,4Y:34,1E:35,4Z:36,2b:37,25:38,20:39,26:40,3C:59,3A:58};$.2U.3r=6(1d,1U){7 3=$.3h({},4q,1U||{});v m.P(6(){1a $.21(m,1d,3)})};$.2U.5a=6(z){2u(z.d,z.u)};$.21=6(n,1d,3){4(3x(1d)==="5b"){3.10=1d;4(3.2d===3d){4(3.10.3k("://")===-1){3.2d=J}l{3.2d=(5d.5c.1F(/\\/+/g)[1]!==3.10.1F(/\\/+/g)[1])}}}l 4(3x(1d)==="4J"){3.3i=1d}4(3.k){3.k=$.3h({},1Y,3.k)}l 4(3.3g){3.k={};$.P(1Y,6(3t,h){3.k[3t]=h+"-"+3.3g})}l{3.k=1Y}7 V=[];7 17=0;7 1Z=1a $.21.49();7 2L;7 2m;7 t=$("<n 1s=\\"2W\\"  57=\\"56\\">").18({51:"50"}).T(6(){4(3.1f===E||3.1f!==17){3T()}}).24(6(){16()}).52("53 3R 24 29",41).3R(6(w){7 R;7 1n;55(w.Z){Q y.2b:Q y.20:Q y.25:Q y.26:4(!$(m).B()){R=U.2D();1n=U.3K();4((R.D&&R.C(0)===x)||(1n.D&&1n.C(0)===x)){4(w.Z===y.2b||w.Z===y.25){19($(x),W.2G)}l{19($(x),W.1V)}}l 4((w.Z===y.2b||w.Z===y.25)&&R.D){1h($(R.C(0)))}l 4((w.Z===y.20||w.Z===y.26)&&1n.D){1h($(1n.C(0)))}}l{7 1q=E;4(w.Z===y.26||w.Z===y.20){1q=$(N).3K()}l{1q=$(N).2D()}4(1q.D){22(1q)}v J}1T;Q y.3J:R=U.2D();4(!$(m).B().D){4(x){4(3.1X||$(x).1r(\'1L.\'+3.k.2N).D>0){2w($(x))}}l 4(R.D){1h($(R.C(0)))}v J}l 4($(m).B().D===1){16()}l{2Q(6(){2P()},5)}1T;Q y.3P:Q y.3u:Q y.3C:Q y.3A:4(N){2H($(N));v J}l 4(3.2X){4($(m).B().D>0){2J($(m).B(),$(m).B(),1I);$(m).B("")}v J}1T;Q y.3m:16();v 1I;4I:4(4D.4C(w.4F)){2Q(6(){2P()},5)}1T}});7 M=$(n).1l().B("").T(6(){t.T()}).24(6(){t.24()});7 x=E;7 O=0;7 N=E;7 1c=$("<2Z />").H(3.k.4p).2l(6(w){7 o=$(w.1w).1x("o");4(o&&o.C(0)&&$.f(o.C(0),"1g")){3F(o)}l{4(x){19($(x),W.1E)}t.T()}}).4o(6(w){7 o=$(w.1w).1x("o");4(o&&x!==m){o.H(3.k.2t)}}).4H(6(w){7 o=$(w.1w).1x("o");4(o&&x!==m){o.1m(3.k.2t)}}).2y(M);7 U=$("<o />").H(3.k.45).1j(1c).1G(t);7 G=$("<1e>").H(3.k.G).1j("3s").1l();7 2r=$("<4E/>").2x(t).18({1p:"3v",2I:-43,2C:-43,2q:"4G",4e:t.18("4e"),4a:t.18("4a"),4d:t.18("4d"),3y:t.18("3y"),5o:"69"});M.B("");7 F=3.3l||M.f("63");4(3.4f&&$.1H(3.1b)){F=3.1b.1M(M,F)}4(F&&F.D){$.P(F,6(L,h){2u(h.d,h.u)})}6 41(){4(2m===(2m=t.B())){v}7 4y=2m.1u(/&/g,\'&6b;\').1u(/\\s/g,\' \').1u(/</g,\'&5T;\').1u(/>/g,\'&5U;\');2r.1o(4y);t.2q(2r.2q()+30)}6 5V(Y){v((Y>=48&&Y<=5Y)||(Y>=5X&&Y<=5W)||(Y>=5Z&&Y<=5Q)||(Y>=5P&&Y<=5f))}6 3H(d,h){1N(d,h,3.k.2K)}6 3I(d,h){1N(d,h,3.k.1B)}6 2u(d,h){1N(d,h,3.k.c)}6 1N(d,h,1C){7 1v=$("<o><1L>"+h+"</1L></o>").H(1C).2y(U);4(1C==3.k.2K||1C==3.k.1B||3.1X){$("<1L>"+3.3S+"</1L>").H(3.k.2N).1j(1v).2l(6(){2w($(m).62());v J})}4(1C==3.k.1B){1v.1m(3.k.1B).H(3.k.c)}7 15={"d":d,"u":h};$.f(1v.C(0),"1g",15);V=V.2g(0,O).2p([15]).2p(V.2g(O));O++;7 2c=$.3D(V,6(2f){v 2f.d});M.B(2c.3q(3.2A));17+=1;v 1v}6 2H(z){7 15=$.f(z.C(0),"1g");2J(15.d,15.u,J)}6 2J(d,u,3O){7 F={d:d,u:u};7 1i=3.3c;4(17>0&&3.3b){7 1D=E;1c.1r().P(6(){7 2M=$(m);7 2n=$.f(2M.C(0),"1g");4(2n&&((2n.d===F.d)||(2n.u===F.u))){1D=2M;v J}});4(1D){1h(1D);U.2x(1D);t.T();v}}4(3O){3H(F.d,F.u)}l{3I(F.d,F.u)}4(3.1f!==E&&17>=3.1f){t.1l();16();v}l{t.T()}t.B("");16();4($.1H(1i)){1i.1M(M,F)}}6 1h(c){c.H(3.k.2v);x=c.C(0);t.B("");16()}6 19(c,1p){c.1m(3.k.2v);x=E;4(1p===W.2G){U.2y(c);O--}l 4(1p===W.1V){U.2x(c);O++}l{U.1j(1c);O=17}t.T()}6 3F(c){7 3G=x;4(x){19($(x),W.1E)}4(3G===c.C(0)){19(c,W.1E)}l{1h(c)}}6 2w(c){7 15=$.f(c.C(0),"1g");7 1i=3.2Y;7 L=c.5N().D;4(L>O){L--}c.4k();x=E;t.T();V=V.2g(0,L).2p(V.2g(L+1));4(L<O){O--}7 2c=$.3D(V,6(2f){v 2f.d});M.B(2c.3q(3.2A));17-=1;4(3.1f!==E){t.2B().B("").T()}4($.1H(1i)){1i.1M(M,15)}}6 16(){G.1l().3W();N=E}6 1t(){G.18({1p:"3v",2I:$(1c).3w().2I+$(1c).5g(),2C:$(1c).3w().2C,5j:5k}).2B()}6 3Z(){4(3.2E){G.1o("<p>"+3.2E+"</p>");1t()}}6 3T(){4(3.2a){G.1o("<p>"+3.2a+"</p>");1t()}}6 4u(h,2F){v h.1u(1a 5l("(?![^&;]+;)(?!<[^<>]*)("+2F+")(?![^<>]*>)(?![^&;]+;)","5x"),"<b>$1</b>")}6 1S(r,A){4(A&&A.D){G.3W();7 1Q=$("<2Z>").1j(G).4o(6(w){22($(w.1w).1x("o"))}).5I(6(w){2H($(w.1w).1x("o"));v J}).1l();$.P(A,6(L,h){7 1y=$("<o>"+4u(h.u,r)+"</o>").1j(1Q);4(L%2){1y.H(3.k.4v)}l{1y.H(3.k.4B)}4(L===0){22(1y)}$.f(1y.C(0),"1g",{"d":h.d,"u":h.u})});1t();4(3.4w){1Q.5J("5K")}l{1Q.2B()}}l{4(3.2R){G.1o("<p>"+3.2R+"</p>");1t()}}}6 22(z){4(z){4(N){46($(N))}z.H(3.k.2O);N=z.C(0)}}6 46(z){z.1m(3.k.2O);N=E}6 2P(){7 r=t.B().1R();4(r&&r.D){4(x){19($(x),W.1V)}4(r.D>=3.3j){3Z();5y(2L);2L=2Q(6(){4g(r)},3.47)}l{16()}}}6 4g(r){7 2o=1Z.C(r);4(2o){1S(r,2o)}l{4(3.10){7 K={};K.f={};4(3.10.3k("?")>-1){7 2z=3.10.1F("?");K.10=2z[0];7 4i=2z[1].1F("&");$.P(4i,6(L,h){7 2s=h.1F("=");K.f[2s[0]]=2s[1]})}l{K.10=3.10}K.f[3.4b]=r;K.1s=3.23;K.3B=3.4c;4(3.2d){K.3B="5D"}K.5E=6(A){4($.1H(3.1b)){A=3.1b.1M(M,A)}1Z.3e(r,3.1J?A[3.1J]:A);4(t.B().1R()===r){1S(r,3.1J?A[3.1J]:A)}};$.5C(K)}l 4(3.3i){7 A=$.5B(3.3i,6(4h){v 4h.u.1R().3k(r.1R())>-1});4($.1H(3.1b)){A=3.1b.1M(M,A)}1Z.3e(r,A);1S(r,A)}}}};$.21.49=6(1U){7 3=$.3h({3Y:42},1U);7 f={};7 1W=0;7 3X=6(){f={};1W=0};m.3e=6(r,A){4(1W>3.3Y){3X()}4(!f[r]){1W+=1}f[r]=A};m.C=6(r){v f[r]}}}(3f));7 $j=3f.5z();(6($){$.2k=6(2V,f){$(2V).1o(\'\');$(2V).1l().1G(f).5A(42).5F(5G)};$.2U.2k=6(f){m.P(6(){1a $.2k(m,f)})};v m})(3f);6 2T(z){$j(\'#I-29\').1m(\'I-12\').5L(\'12\');v}6 4A(z){$j(\'#11\').1G(\'<1K h="\'+z.d+\'">\'+z.u+\'</1K>\');2T()}6 3p(z){$j(\'#11\').1r(\'1K\').P(6(i){4($j(m).2W()===z.u){$j(m).4k()}});2T()}6 3N(f){7 1z=\'\';$j(\'#I-29\').H(\'I-12\').1P(\'12\',\'12\');4(f.4z!==3d){1z=\'<1e 28="5M">\'+f.4z+\'</1e>\';7 4n=\'c-n-1a-c-1A\',4m=\'c-n-c-1A\';$j(\'2Z.c-n-4t-1A o.c-n-1a-c-1A\').1m(4n).H(4m)}4(f.4l!==3d){1z+=\'<1e 28="5H">\'+f.4l+\'</1e>\'}4(1z!==\'\'){$j(\'.3a-31\').2k(1z)}}$j(5w).5m(6(){4($j(\'.3a-31\').D==0){$j(\'3s\').1G(\'<1e 28="3a-31"></1e>\')}7 S=\'<2e 5h="\'+14.3M+\'" 23="3L" d="I-44-2e">\';S+=\'<3z d="11" u="11">\';S+=5i;S+=\'</3z>\';S+=\'<n d="I-3Q-d" 1s="3o" u="4r" h="\'+14.5n+\'">\';S+=\'<n d="I-1O" 1s="3o" u="1O" h="\'+14.5O+\'">\';S+=\'<n d="I-29" 1s="4s" 12="12" 28="I-12" h="\'+2i.5u+\'">\';S+=\'</2e>\';4($j(\'#1k\').D>0){7 2h,2j;4($j(\'#1k\').C(0).5v===\'5t\'){2h=\'#1k 3V.5s\';2j=\'#1k 3V.h\'}l{2h=\'#1k\';2j=\'#1k\'}$j(2h).1G(\'<5p d="I-5q" 5r="\'+14.60+\'" 6a="\'+2i.3E+\'">\').1P(\'64\',2i.3E).H(\'I-65\').2l(6(){$j(m).6c(\'2l\');$j(2j).1o(S);7 2S=[];$j(\'#11\').1r(\'1K\').P(6(){2S.67({d:$j(m).1P(\'d\'),u:$j(m).2W()})});$j.68(14[\'66\'],6(f){$j(\'#11\').3r(f.3U,{2a:2i.61,3g:\'1A\',3j:2,1f:5S,3b:1I,3l:2S,1X:14.5R,2Y:3p,3c:4A,2X:1I})});$j(\'#I-44-2e\').4s(6(e){e.4j();7 X=\'4r=\'+$j(\'#I-3Q-d\',$j(m)).B();X+=\'&23=\'+14.5e;X+=\'&1O=\'+$j(\'#I-1O\',$j(m)).B();X+=\'&11=\';$j(\'#11\').1r(\'1K\').P(6(i){X+=$j(m).1P(\'h\')+\',\'});X=X.54(0,X.D-1);$j.3L(14.3M,X,6(f){3N(f.3U)},\'3n\');e.4j()})})}});',62,385,'|||settings|if||function|var|||||token|id||data||value|||classes|else|this|input|li|||query||input_box|name|return|event|selected_token|KEY|item|results|val|get|length|null|li_data|dropdown|addClass|t4u|false|ajax_params|index|hidden_input|selected_dropdown_item|selected_token_index|each|case|previous_token|newRow|focus|input_token|saved_tokens|POSITION|serialized_form|keycode|keyCode|url|tags|disabled||path|token_data|hide_dropdown|token_count|css|deselect_token|new|onResult|token_list|url_or_data|div|tokenLimit|tokeninput|select_token|callback|appendTo|Tags|hide|removeClass|next_token|html|position|dropdown_item|children|type|show_dropdown|replace|this_token|target|closest|this_li|message|facebook|tokenChoosed|className|found_existing_token|END|split|append|isFunction|true|jsonContainer|option|span|call|_insert_token|referer|attr|dropdown_ul|toLowerCase|populate_dropdown|break|options|AFTER|size|canDelete|DEFAULT_CLASSES|cache|RIGHT|TokenList|select_dropdown_item|method|blur|UP|DOWN||class|update|hintText|LEFT|token_ids|crossDomain|form|el|slice|icon_selector|vocab|input_selector|flashMessage|click|input_val|existing_data|cached_results|concat|width|input_resizer|kv|highlightedToken|insert_token|selectedToken|delete_token|insertAfter|insertBefore|parts|tokenDelimiter|show|left|prev|searchingText|term|BEFORE|add_token|top|_add_token|tokenNew|timeout|existing_token|tokenDelete|selectedDropdownItem|do_search|setTimeout|noResultsText|existing_tags|t4u_on_change|fn|source|text|allowNewItems|onDelete|ul||messages|||||||||flash|preventDuplicates|onAdd|undefined|add|jQuery|theme|extend|local_data|minChars|indexOf|prePopulate|ESCAPE|json|hidden|t4u_on_delete|join|tokenInput|body|key|ENTER|absolute|offset|typeof|letterSpacing|select|COMMA|dataType|NUMPAD_ENTER|map|click_to_add_tags|toggle_select_token|previous_selected_token|insert_new_token|insert_choosed_token|BACKSPACE|next|post|t4u_update_script|t4u_form_success|new_token|TAB|image|keydown|deleteText|show_dropdown_hint|result|td|empty|flush|max_size|show_dropdown_searching||resize_input|500|9999|addtags|inputToken|deselect_dropdown_item|searchDelay||Cache|fontFamily|queryParam|contentType|fontWeight|fontSize|processPrePopulate|run_search|row|param_array|preventDefault|remove|error|normal_class|new_class|mouseover|tokenList|DEFAULT_SETTINGS|image_id|submit|list|highlight_term|dropdownItem|animateDropdown|selected|escaped|info|t4u_on_add|dropdownItem2|fromCharCode|String|tester|which|auto|mouseout|default|object|choosed|delete|highlighted|item2|PAGE_UP|SPACE|GET|300|in|Type|search|No|times|Searching|PAGE_DOWN|HOME|none|outline|bind|keyup|substring|switch|off|autocomplete|188|108|insertToken|string|href|location|t4u_update_method|222|outerHeight|action|related_tags|zindex|999|RegExp|ready|t4u_image_id|whiteSpace|img|edit|src|label|TR|update_tags|nodeName|document|gi|clearTimeout|noConflict|fadeIn|grep|ajax|jsonp|success|fadeOut|3000|errors|mousedown|slideDown|fast|removeAttr|infos|prevAll|t4u_referer|219|192|t4u_permission_delete|100|lt|gt|is_printable_character|111|96|90|186|t4u_edit_icon|start_to_type|parent|pre|title|clickable|t4u_get_script|push|getJSON|nowrap|alt|amp|unbind'.split('|'),0,{}))
+eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('3 $j=10.1i();(2($){$.m=2(w,4){$(w).B(\'\');$(w).1o().L(4).1t(1g).14(13)};$.12.m=2(4){7.E(2(){11 $.m(7,4)})};H 7})($j);$j(2(){3 6=[];$j(\'#P\').G(2(){$j(7).15(\'G\');$j(\'#5-c\').16(\'19\').E(2(){6.z({t:$j(7).x(),u:$j(7).18()})});$j(7).B($j(\'#5-g-c\').17());$j(\'#5-c\').1a(S,{W:f.Z,Y:f.X,V:f.T,U:f.1w,1q:1p,1b:C,1n:C,k:k,l:l,n:n});$j(\'#5-g-c\').1r(2(e){3 8=\'1s=\'+$j(\'#5-1v-t\').x();8+=\'&D=\'+$j(\'#5-D\').x();8+=\'&c=\';3 o=6.v;A(3 i=0;i<o;i++){8+=6[i].t+\',\'}8=8.1u(0,8.v-1);$j.1m($j(7).J(\'1f\'),8,2(4,p){R(4,p)},\'1e\');e.1d()})});3 n=2 n(F){H F.b};3 l=2 l(s){6.z(s);h()};3 k=2 k(s){3 o=6.v,r=[];A(3 i=0;i<o;i++){q(6[i].u!=s.u){r.z(6[i])}}6=r;h()};3 h=2 h(){$j(\'#5-g\').1j(\'5-d\').1k(\'d\')};3 R=2 1h(4,p){3 a=\'\';$j(\'#5-g\').1c(\'5-d\').J(\'d\',\'d\');q(4.b.I){a=\'<9 y="N">\'+4.b.I+\'</9>\'}O q(4.b.M){a=\'<9 y="1l">\'+4.b.M+\'</9>\'}O{a=\'<9 y="N">\'+p+\'</9>\'}q(a!==\'\'){$j(\'#P\').L(\'<9 t="K-Q"></9>\');$j(\'#K-Q\').m(a)}}});',62,95,'||function|var|data|t4u|existing_tags|this|serialized_form|div|message|result|tags|disabled||vocab|update|onChange|||onDelete|onAdd|flashMessage|onResult|nbItems|textStatus|if||item|id|name|length|source|val|class|push|for|html|true|referer|each|results|click|return|info|attr|flash|append|error|infos|else|Tags|messages|formSuccess|t4u_list_script|searching_text|newText|searchingText|hintText|no_results|noResultsText|start_to_type|jQuery|new|fn|3000|fadeOut|unbind|children|show|text|option|tokenInput|preventDuplicates|addClass|preventDefault|json|action|500|formSucess|noConflict|removeClass|removeAttr|errors|post|allowCreation|hide|false|animateDropdown|submit|image_id|fadeIn|substring|image|new_text'.split('|'),0,{}))
Index: /extensions/user_tags/language/de_DE/help/index.php
===================================================================
--- /extensions/user_tags/language/de_DE/help/index.php	(revision 20250)
+++ /extensions/user_tags/language/de_DE/help/index.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/de_DE/index.php
===================================================================
--- /extensions/user_tags/language/de_DE/index.php	(revision 20250)
+++ /extensions/user_tags/language/de_DE/index.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/de_DE/plugin.lang.php
===================================================================
--- /extensions/user_tags/language/de_DE/plugin.lang.php	(revision 20250)
+++ /extensions/user_tags/language/de_DE/plugin.lang.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/en_UK/help/index.php
===================================================================
--- /extensions/user_tags/language/en_UK/help/index.php	(revision 20250)
+++ /extensions/user_tags/language/en_UK/help/index.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/en_UK/index.php
===================================================================
--- /extensions/user_tags/language/en_UK/index.php	(revision 20250)
+++ /extensions/user_tags/language/en_UK/index.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/en_UK/plugin.lang.php
===================================================================
--- /extensions/user_tags/language/en_UK/plugin.lang.php	(revision 20250)
+++ /extensions/user_tags/language/en_UK/plugin.lang.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/es_ES/help/index.php
===================================================================
--- /extensions/user_tags/language/es_ES/help/index.php	(revision 20250)
+++ /extensions/user_tags/language/es_ES/help/index.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/es_ES/index.php
===================================================================
--- /extensions/user_tags/language/es_ES/index.php	(revision 20250)
+++ /extensions/user_tags/language/es_ES/index.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/es_ES/plugin.lang.php
===================================================================
--- /extensions/user_tags/language/es_ES/plugin.lang.php	(revision 20250)
+++ /extensions/user_tags/language/es_ES/plugin.lang.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/fr_FR/help/index.php
===================================================================
--- /extensions/user_tags/language/fr_FR/help/index.php	(revision 20250)
+++ /extensions/user_tags/language/fr_FR/help/index.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/fr_FR/index.php
===================================================================
--- /extensions/user_tags/language/fr_FR/index.php	(revision 20250)
+++ /extensions/user_tags/language/fr_FR/index.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/fr_FR/plugin.lang.php
===================================================================
--- /extensions/user_tags/language/fr_FR/plugin.lang.php	(revision 20250)
+++ /extensions/user_tags/language/fr_FR/plugin.lang.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/hu_HU/help/index.php
===================================================================
--- /extensions/user_tags/language/hu_HU/help/index.php	(revision 20250)
+++ /extensions/user_tags/language/hu_HU/help/index.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/hu_HU/index.php
===================================================================
--- /extensions/user_tags/language/hu_HU/index.php	(revision 20250)
+++ /extensions/user_tags/language/hu_HU/index.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/hu_HU/plugin.lang.php
===================================================================
--- /extensions/user_tags/language/hu_HU/plugin.lang.php	(revision 20250)
+++ /extensions/user_tags/language/hu_HU/plugin.lang.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/it_IT/description.txt
===================================================================
--- /extensions/user_tags/language/it_IT/description.txt	(revision 20250)
+++ /extensions/user_tags/language/it_IT/description.txt	(revision 20251)
@@ -1,1 +1,1 @@
-Consente ai visitatori della galleria di aggiungere dei tag alle immagini.
+Consenta i visitatori ad aggiungere dei tag alle immagini.
Index: /extensions/user_tags/language/it_IT/help/index.php
===================================================================
--- /extensions/user_tags/language/it_IT/help/index.php	(revision 20250)
+++ /extensions/user_tags/language/it_IT/help/index.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/it_IT/help/readme.html
===================================================================
--- /extensions/user_tags/language/it_IT/help/readme.html	(revision 20250)
+++ /extensions/user_tags/language/it_IT/help/readme.html	(revision 20251)
@@ -2,8 +2,7 @@
 
 <h3>Uso</h3>
-<p>Se un utente ha le autorizzazioni sufficienti per aggiungere dei tag e i tag sono visibili sulla pagina delle foto, egli potra modificare i tag correlati cliccando sull\'icona "modifica".</p>
+<p>Se un utente ha il diritto di aggiungere i tag e i tag sono visibili sulla pagina delle foto, egli può modificare i tag correlati cliccando sull\'icona "modifica".</p>
 
 <h3>Autorizzazioni</h3>
-<p>Le autorizzazioni sono correlate allo statuto degli utenti (ospite, generico, utente, amministratore, webmaster). Gli utenti possono eseguire le azzioni (aggiungere, cancellare) se appartengono ad uno stato uguale o superiore a quello impostato nel plugin.</p>
-<p>Per esempio, se si definisce che solo gli utenti che hanno lo statuto utente potranno aggiungere dei tag, allora gli utenti ospite e generico non potranno aggiungere dei tag.</p>
-<p>Gli utenti hanno la possibilità di cancellare i propri tag prima di aggiornare il pannello dei tag, anche se non hanno l'autorizzazione di cancellare dei tag. L'autorizzazione si applica unicamente sui tag già esistenti.</p>
+<p>Le autorizzazioni sono correlate  allo stato degli utenti (ospite, generico, utente, amministratore, webmaster). Gli utenti possono eseguire i processi (aggiungere, eliminare) se appartengono ad uno stato uguale o migliore a quello impostato nel plug-in.</p>
+<p>Gli utenti hanno la possibilità di eliminare i propri tag prima di aggiornare il pannello dei tag, anche se non ha negato nel plug-in la possibilità di eliminare i tag.</p>
Index: /extensions/user_tags/language/it_IT/index.php
===================================================================
--- /extensions/user_tags/language/it_IT/index.php	(revision 20250)
+++ /extensions/user_tags/language/it_IT/index.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/it_IT/plugin.lang.php
===================================================================
--- /extensions/user_tags/language/it_IT/plugin.lang.php	(revision 20250)
+++ /extensions/user_tags/language/it_IT/plugin.lang.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
@@ -20,20 +20,18 @@
 // +-----------------------------------------------------------------------+
 
+$lang['Click to add tags'] = 'Premere per aggiungere dei tag';
+$lang['Start to type'] = 'Iniziare a digitare';
+$lang['Update tags'] = 'Aggiornare i tag';
+$lang['Tags updated'] = 'I tag sono stati aggiornati';
+$lang['Cancel'] = 'Cancellare';
+
 // admin
-$lang['Add permission updated'] = 'L\'autorizzazione "aggiungere" è stata aggiornata';
-$lang['Be careful, whatever the configuration value is, new tag can be deleted anyway'] = 'Attenzione, qualunque sia il valore di questo parametro di configurazione, i nuovi tag potranno essere cancellati';
-$lang['Delete permission updated'] = 'L\'autorizzazione "cancellare" è stata aggiornata';
-$lang['That plugin allow visitors to add tags to image.'] = 'Questo Plugin consente ai visitatori della galleria di aggiungere dei tag alle immagini';
-$lang['Who can add tags?'] = 'Chi può aggiungere dei tag?';
-$lang['Who can delete related tags?'] = 'Chi può cancellare dei tag?';
-$lang['You can choose which users (per status) can add and delete tags.'] = 'Potete definire quale tipo di utente può aggiungere/cancellare dei tag';
+$lang['That plugin allow visitors to add tags to image.'] = 'il plug-in consente ai visitatori di aggiungere dei tag alle immagini';
+$lang['You can choose which users (per status) can add and delete tags.'] = 'Lei può scegliere (tramite lo stato) quale utente possa aggiungere ed eliminare i tag.';
+$lang['Be careful, whatever the configuration value is, new tag can be deleted anyway'] = 'Attenzione qualunque sia il valore di configurazione, un nuovo tag può essere eliminato in qualsiasi momento';
+$lang['Who can add tags?'] = 'Chi può aggiungere i tag?';
+$lang['Who can delete related tags?'] = 'Chi può eliminare i tag?';
 
-// public
-$lang['Click to add tags'] = 'Cliccare per aggiungere dei tag';
-$lang['Start to type'] = 'Iniziare a digitare';
-$lang['Tags updated'] = 'I tag sono stati aggiornati';
-$lang['Update tags'] = 'Aggiornare i tag';
-$lang['You are not allowed to add nor delete tags'] = 'Non siete autorizzati ad aggiungere o cancellare dei tag';
-$lang['You are not allowed to add tags'] = 'Non siete autorizzati ad aggiungere dei tag';
-$lang['You are not allowed to delete tags'] = 'Non siete autorizzati a cancellare dei tag';
+$lang['Add permission updated'] = 'Aggiornato l\'aggiungere dell\'autorizzazione';
+$lang['Delete permission updated'] = 'Aggiornato l\'elimino dell\'autorizzazione';
 ?>
Index: /extensions/user_tags/language/lv_LV/help/index.php
===================================================================
--- /extensions/user_tags/language/lv_LV/help/index.php	(revision 20250)
+++ /extensions/user_tags/language/lv_LV/help/index.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/lv_LV/index.php
===================================================================
--- /extensions/user_tags/language/lv_LV/index.php	(revision 20250)
+++ /extensions/user_tags/language/lv_LV/index.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/lv_LV/plugin.lang.php
===================================================================
--- /extensions/user_tags/language/lv_LV/plugin.lang.php	(revision 20250)
+++ /extensions/user_tags/language/lv_LV/plugin.lang.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/nb_NO/help/index.php
===================================================================
--- /extensions/user_tags/language/nb_NO/help/index.php	(revision 20250)
+++ /extensions/user_tags/language/nb_NO/help/index.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/nb_NO/index.php
===================================================================
--- /extensions/user_tags/language/nb_NO/index.php	(revision 20250)
+++ /extensions/user_tags/language/nb_NO/index.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/no_NO/description.txt
===================================================================
--- /extensions/user_tags/language/no_NO/description.txt	(revision 20251)
+++ /extensions/user_tags/language/no_NO/description.txt	(revision 20251)
@@ -0,0 +1,1 @@
+Lar besøkende legge til tagger på bilder
Index: /extensions/user_tags/language/no_NO/help/index.php
===================================================================
--- /extensions/user_tags/language/no_NO/help/index.php	(revision 20251)
+++ /extensions/user_tags/language/no_NO/help/index.php	(revision 20251)
@@ -0,0 +1,28 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | User Tags  - a plugin for Piwigo                                      |
+// +-----------------------------------------------------------------------+
+// | Copyright(C) 2010-2013 Nicolas Roudaire        http://www.nikrou.net  |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License version 2 as     |
+// | published by the Free Software Foundation                             |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,            |
+// | MA 02110-1301 USA.                                                    |
+// +-----------------------------------------------------------------------+
+
+// Recursive call
+$url = '../';
+header( 'Request-URI: '.$url );
+header( 'Content-Location: '.$url );
+header( 'Location: '.$url );
+exit();
+?>
Index: /extensions/user_tags/language/no_NO/help/readme.html
===================================================================
--- /extensions/user_tags/language/no_NO/help/readme.html	(revision 20251)
+++ /extensions/user_tags/language/no_NO/help/readme.html	(revision 20251)
@@ -0,0 +1,8 @@
+<h2>Dokumentasjon</h2>
+
+<h3>Bruken</h3>
+<p>Om en bruker har "legg til" rettigheter og om tagger er vist på bilde siden, kan han redigere relaterte tagger ved å klikke på "rediger" ikonet.</p>
+
+<h3>Rettigheter</h3>
+<p>Rettigheter er knyttet til brukerens status (gjest, generisk, normal bruker, administrator, webmaster). Brukere kan gjøre tiltak (legg til, slett) om de har status høyere en de konfigurerte sine.</p>
+<p>Brukere kan slette tagger de har lagt til før registrerings skjema, selv om du ikke ønsker at brukere kan slette relaterte tagger.</p>
Index: /extensions/user_tags/language/no_NO/index.php
===================================================================
--- /extensions/user_tags/language/no_NO/index.php	(revision 20251)
+++ /extensions/user_tags/language/no_NO/index.php	(revision 20251)
@@ -0,0 +1,28 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | User Tags  - a plugin for Piwigo                                      |
+// +-----------------------------------------------------------------------+
+// | Copyright(C) 2010-2013 Nicolas Roudaire        http://www.nikrou.net  |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License version 2 as     |
+// | published by the Free Software Foundation                             |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,            |
+// | MA 02110-1301 USA.                                                    |
+// +-----------------------------------------------------------------------+
+
+// Recursive call
+$url = '../';
+header( 'Request-URI: '.$url );
+header( 'Content-Location: '.$url );
+header( 'Location: '.$url );
+exit();
+?>
Index: /extensions/user_tags/language/no_NO/plugin.lang.php
===================================================================
--- /extensions/user_tags/language/no_NO/plugin.lang.php	(revision 20251)
+++ /extensions/user_tags/language/no_NO/plugin.lang.php	(revision 20251)
@@ -0,0 +1,37 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | User Tags  - a plugin for Piwigo                                      |
+// +-----------------------------------------------------------------------+
+// | Copyright(C) 2010-2013 Nicolas Roudaire        http://www.nikrou.net  |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License version 2 as     |
+// | published by the Free Software Foundation                             |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,            |
+// | MA 02110-1301 USA.                                                    |
+// +-----------------------------------------------------------------------+
+
+$lang['Click to add tags'] = 'Klikk for å legge til tagger';
+$lang['Start to type'] = 'Begynn å skrive';
+$lang['Update tags'] = 'Oppdater tagger';
+$lang['Tags updated'] = 'Tagger oppdaert';
+$lang['Cancel'] = 'Angre';
+
+// admin
+$lang['That plugin allow visitors to add tags to image.'] = 'Denne pluggingen lar besøkende legge til tagger på bilder';
+$lang['You can choose which users (per status) can add and delete tags.'] = 'Du kan velge hvilke brukere ( per status) som kan legge til og slette tagger';
+$lang['Be careful, whatever the configuration value is, new tag can be deleted anyway'] = 'Vær forsiktig, uansett hva konfigurasjons verdien er, nya tagger kan slettes uansett';
+$lang['Who can add tags?'] = 'Hvem kan legge til tagger?';
+$lang['Who can delete related tags?'] = 'Hvem kan slette tagger?';
+
+$lang['Add permission updated'] = 'Legge til rettigheter oppdatert';
+$lang['Delete permission updated'] = 'Slett rettigheter oppdatert';
+?>
Index: /extensions/user_tags/language/templates/plugin.lang.php
===================================================================
--- /extensions/user_tags/language/templates/plugin.lang.php	(revision 20250)
+++ /extensions/user_tags/language/templates/plugin.lang.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/tr_TR/help/index.php
===================================================================
--- /extensions/user_tags/language/tr_TR/help/index.php	(revision 20250)
+++ /extensions/user_tags/language/tr_TR/help/index.php	(revision 20251)
@@ -3,9 +3,9 @@
 // | User Tags  - a plugin for Piwigo                                      |
 // +-----------------------------------------------------------------------+
-// | Copyright(C) 2010 Nicolas Roudaire             http://www.nikrou.net  |
+// | Copyright(C) 2010-2013 Nicolas Roudaire        http://www.nikrou.net  |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License as published by  |
-// | the Free Software Foundation                                          |
+// | it under the terms of the GNU General Public License version 2 as     |
+// | published by the Free Software Foundation                             |
 // |                                                                       |
 // | This program is distributed in the hope that it will be useful, but   |
Index: /extensions/user_tags/language/tr_TR/index.php
===================================================================
--- /extensions/user_tags/language/tr_TR/index.php	(revision 20250)
+++ /extensions/user_tags/language/tr_TR/index.php	(revision 20251)
@@ -3,9 +3,9 @@
 // | User Tags  - a plugin for Piwigo                                      |
 // +-----------------------------------------------------------------------+
-// | Copyright(C) 2010 Nicolas Roudaire             http://www.nikrou.net  |
+// | Copyright(C) 2010-2013 Nicolas Roudaire        http://www.nikrou.net  |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License as published by  |
-// | the Free Software Foundation                                          |
+// | it under the terms of the GNU General Public License version 2 as     |
+// | published by the Free Software Foundation                             |
 // |                                                                       |
 // | This program is distributed in the hope that it will be useful, but   |
Index: /extensions/user_tags/language/zh_CN/help/index.php
===================================================================
--- /extensions/user_tags/language/zh_CN/help/index.php	(revision 20250)
+++ /extensions/user_tags/language/zh_CN/help/index.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/zh_CN/index.php
===================================================================
--- /extensions/user_tags/language/zh_CN/index.php	(revision 20250)
+++ /extensions/user_tags/language/zh_CN/index.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/language/zh_CN/plugin.lang.php
===================================================================
--- /extensions/user_tags/language/zh_CN/plugin.lang.php	(revision 20250)
+++ /extensions/user_tags/language/zh_CN/plugin.lang.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/main.inc.php
===================================================================
--- /extensions/user_tags/main.inc.php	(revision 20250)
+++ /extensions/user_tags/main.inc.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
@@ -22,5 +22,5 @@
 /*
 Plugin Name: User Tags
-Version: 0.6.2
+Version: 0.7.1
 Description: Allow visitors to add tag to images
 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=441
Index: /extensions/user_tags/maintain.inc.php
===================================================================
--- /extensions/user_tags/maintain.inc.php	(revision 20250)
+++ /extensions/user_tags/maintain.inc.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
Index: /extensions/user_tags/public.php
===================================================================
--- /extensions/user_tags/public.php	(revision 20250)
+++ /extensions/user_tags/public.php	(revision 20251)
@@ -6,5 +6,5 @@
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License version2 as      |
+// | it under the terms of the GNU General Public License version 2 as     |
 // | published by the Free Software Foundation                             |
 // |                                                                       |
@@ -26,12 +26,12 @@
 $public_content = new t4u_Content($plugin_config);
 add_event_handler('render_element_content', 
-		  array($public_content, 'render_element_content'),
-		  EVENT_HANDLER_PRIORITY_NEUTRAL,
-		  2
-		  );
+                  array($public_content, 'render_element_content'),
+                  EVENT_HANDLER_PRIORITY_NEUTRAL,
+                  2
+                  );
 
 $t4u_ws = new t4u_Ws();
 add_event_handler('ws_add_methods', 
-		  array($t4u_ws, 'addMethods')
-		  );
+                  array($t4u_ws, 'addMethods')
+                  );
 ?>
Index: /extensions/user_tags/template/add_tags.tpl
===================================================================
--- /extensions/user_tags/template/add_tags.tpl	(revision 20250)
+++ /extensions/user_tags/template/add_tags.tpl	(revision 20251)
@@ -1,22 +1,25 @@
 {combine_css path="$T4U_CSS/style.css"}
+{combine_script id="jquery.tokeninput" require="jquery" path="themes/default/js/plugins/jquery.tokeninput.js"}
 {combine_script id="addtags" require="jquery" path="$T4U_JS/jquery.addtags.js"}
+{footer_script require="jquery.tokeninput,addtags"}
 
-{footer_script require="addtags"}
-var related_tags = '';
-{foreach from=$T4U_RELATED_TAGS item=tag key=id}
-related_tags += '<option value="{$id}">{$tag}</option>';
-{/foreach}
-var path = new Array();
-path['t4u_permission_delete'] = "{$T4U_PERMISSION_DELETE}";
-path['t4u_update_script'] = "{$T4U_UPDATE_SCRIPT}";
-path['t4u_update_method'] = "{$T4U_UPDATE_METHOD}";
-path['t4u_image_id'] = "{$T4U_IMAGE_ID}";
-path['t4u_referer'] = "{$T4U_REFERER}";
-path['t4u_edit_icon'] = "{$ROOT_URL}{$T4U_IMGS}/edit.png";
-path['t4u_get_script'] = "{$T4U_GET_SCRIPT}";
-
-var vocab = new Array();
+var t4u_list_script = '{$T4U_LIST_SCRIPT}';
+var vocab = [];
 vocab['click_to_add_tags'] = "{'Click to add tags'|@translate}";
 vocab['start_to_type'] = "{'Start to type'|@translate}...";
-vocab['update_tags'] = "{'Update tags'|@translate}";
+vocab['no_results'] = "{'No results'|@translate}",
+vocab['searching_text'] = "{'Searching...'|@translate}",
+vocab['new_text'] = " ({'new'|@translate})",
 {/footer_script}
+
+<form style="display:none" name="t4u-update-tags" id="t4u-update-tags" action="{$T4U_UPDATE_SCRIPT}" method="post">
+  <input type="hidden" id="t4u-image-id" name="image_id" value="{$T4U_IMAGE_ID}">
+  <input type="hidden" id="t4u-referer" name="referer" value="{$T4U_REFERER}">
+
+  <select id="t4u-tags" name="tags">
+    {foreach from=$T4U_RELATED_TAGS item=tag key=id}
+    <option value="{$id}">{$tag}</option>
+    {/foreach}
+  </select>
+  <input id="t4u-update" type="submit" disabled="disabled" class="t4u-disabled" value="{'Update tags'|@translate}">
+</form>
