Index: /extensions/TakeATour/main.inc.php
===================================================================
--- /extensions/TakeATour/main.inc.php	(revision 28058)
+++ /extensions/TakeATour/main.inc.php	(revision 28059)
@@ -18,158 +18,40 @@
 {
   pwg_set_session_var('tour_to_launch', $_POST['submited_tour']);
-  global $TAT;
-  $TAT['restart']=true;
+  global $TAT_restart;
+  $TAT_restart=true;
 }
 elseif ( isset($_GET['tour_ended']) and in_array($_GET['tour_ended'], $avalaible_tour) and defined('IN_ADMIN') and IN_ADMIN )
 {
   pwg_unset_session_var('tour_to_launch');
-  pwg_unset_session_var('TAT_image_id');
-  pwg_unset_session_var('TAT_cat_id');
 }
 
-if ( pwg_get_session_var('tour_to_launch') and defined('IN_ADMIN') and IN_ADMIN )
+if ( pwg_get_session_var('tour_to_launch') and defined('IN_ADMIN') and IN_ADMIN  )
 {
-  add_event_handler('init', 'TAT_add_js_css');
+  if !in_array(pwg_get_session_var('tour_to_launch'), $conf['TakeATour_tour_ignored']) or !isset($conf['TakeATour_tour_ignored']))
+  {
+    add_event_handler('init', 'TAT_add_js_css');
+    include('tours/'.pwg_get_session_var('tour_to_launch').'/config.inc.php');
+  }
 }
 function TAT_add_js_css()
 {
-  global $template, $TAT;
+  global $template, $TAT_restart;
   $tour_to_launch=pwg_get_session_var('tour_to_launch');
   load_language('plugin.lang', PHPWG_PLUGINS_PATH .'TakeATour/');
   $template->set_filename('TAT_js_css', PHPWG_PLUGINS_PATH.'TakeATour/tpl/js_css.tpl');
   $template->parse('TAT_js_css');//http://piwigo.org/forum/viewtopic.php?id=23248
-  if (isset($TAT['restart']) and $TAT['restart'])
+  if (isset($TAT_restart) and $TAT_restart)
   {
-    $TAT['restart']=false;
+    $TAT_restart=false;
     $template->assign('TAT_restart',true);
   }
   $tat_path=str_replace(basename($_SERVER['SCRIPT_NAME']),'', $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME']);
+  //$tat_path=$_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'];
   $template->assign('TAT_path', $tat_path);
-  //picture id
-  if (isset($_GET['page']) and preg_match('/^photo-(\d+)(?:-(.*))?$/', $_GET['page'], $matches))
-  {
-    $_GET['image_id'] = $matches[1];
-  }
-  check_input_parameter('image_id', $_GET, false, PATTERN_ID);
-  if (isset($_GET['image_id']) and pwg_get_session_var('TAT_image_id')==null)
-  {
-    $template->assign('TAT_image_id', $_GET['image_id']);
-    pwg_set_session_var('TAT_image_id', $_GET['image_id']);
-  }
-  elseif (is_numeric(pwg_get_session_var('TAT_image_id')))
-  {
-    $template->assign('TAT_image_id', pwg_get_session_var('TAT_image_id'));
-  }
-  else
-  {
-    $query = '
-    SELECT id
-      FROM '.IMAGES_TABLE.'
-      ORDER BY RAND()
-      LIMIT 1  
-    ;';
-    $row = pwg_db_fetch_assoc(pwg_query($query));
-    $template->assign('TAT_image_id', $row['id']);
-  }
-  //album id
-  if (isset($_GET['page']) and preg_match('/^album-(\d+)(?:-(.*))?$/', $_GET['page'], $matches))
-  {
-    $_GET['cat_id'] = $matches[1];
-  }
-  check_input_parameter('cat_id', $_GET, false, PATTERN_ID);
-  if (isset($_GET['cat_id']) and pwg_get_session_var('TAT_cat_id')==null)
-  {
-    $template->assign('TAT_cat_id', $_GET['cat_id']);
-    pwg_set_session_var('TAT_cat_id', $_GET['cat_id']);
-  }
-  elseif (is_numeric(pwg_get_session_var('TAT_cat_id')))
-  {
-    $template->assign('TAT_cat_id', pwg_get_session_var('TAT_cat_id'));
-  }
-  else
-  {
-    $query = '
-    SELECT id
-      FROM '.CATEGORIES_TABLE.'
-      ORDER BY RAND()
-      LIMIT 1  
-    ;';
-    $row = pwg_db_fetch_assoc(pwg_query($query));
-    $template->assign('TAT_cat_id', $row['id']);
-  }
-
+  include('tours/'.$tour_to_launch.'/config_preparse.inc.php')
   $template->set_filename('TAT_tour_tpl', PHPWG_PLUGINS_PATH.'TakeATour/tpl/'.$tour_to_launch.'.tpl');
   $template->parse('TAT_tour_tpl');
-  unset($tour_to_launch);
 }
 
-if ( defined('IN_ADMIN') and IN_ADMIN )
-{
-/* first contact */
-add_event_handler('loc_end_element_set_global', 'TAT_FC_14');
-add_event_handler('loc_end_picture_modify', 'TAT_FC_16');
-add_event_handler('loc_end_picture_modify', 'TAT_FC_17');
-add_event_handler('loc_end_cat_modify', 'TAT_FC_23');
-add_event_handler('loc_end_themes_installed', 'TAT_FC_35');
-}
-
-function TAT_FC_14()
-{
-  global $template;
-  $template->set_prefilter('batch_manager_global', 'TAT_FC_14_prefilter');
-}
-function TAT_FC_14_prefilter ($content, &$smarty)
-{
-  $search = '<span class="wrap2';
-  $replacement = '{counter print=false assign=TAT_FC_14}<span {if $TAT_FC_14==1}id="TAT_FC_14"{/if} class="wrap2';
-  $content = str_replace($search, $replacement, $content);
-  $search = 'target="_blank">{\'Edit\'';
-  $replacement = '>{\'Edit\'';
-  return str_replace($search, $replacement, $content);
-}
-function TAT_FC_16()
-{
-  global $template;
-  $template->set_prefilter('picture_modify', 'TAT_FC_16_prefilter');
-}
-function TAT_FC_16_prefilter ($content, &$smarty)
-{
-  $search = '<strong>{\'Linked albums\'|@translate}</strong>';
-  $replacement = '<span id="TAT_FC_16"><strong>{\'Linked albums\'|@translate}</strong></span>';
-  return str_replace($search, $replacement, $content);
-}
-function TAT_FC_17()
-{
-  global $template;
-  $template->set_prefilter('picture_modify', 'TAT_FC_17_prefilter');
-}
-function TAT_FC_17_prefilter ($content, &$smarty)
-{
-  $search = '<strong>{\'Representation of albums\'|@translate}</strong>';
-  $replacement = '<span id="TAT_FC_17"><strong>{\'Representation of albums\'|@translate}</strong></span>';
-  return str_replace($search, $replacement, $content);
-}
-function TAT_FC_23()
-{
-  global $template;
-  $template->set_prefilter('album_properties', 'TAT_FC_23_prefilter');
-}
-function TAT_FC_23_prefilter ($content, &$smarty)
-{
-  $search = '<strong>{\'Lock\'|@translate}</strong>';
-  $replacement = '<span id="TAT_FC_23"><strong>{\'Lock\'|@translate}</strong></span>';
-  return str_replace($search, $replacement, $content);
-}
-function TAT_FC_35()
-{
-  global $template;
-  $template->set_prefilter('themes', 'TAT_FC_35_prefilter');
-}
-function TAT_FC_35_prefilter ($content, &$smarty)
-{
-  $search = '<a href="{$set_default_baseurl}{$theme.ID}" class="tiptip"';
-  $replacement = '{counter print=false assign=TAT_FC_35}<a href="{$set_default_baseurl}{$theme.ID}" class="tiptip" {if $TAT_FC_35==1}id="TAT_FC_35"{/if}';
-  return str_replace($search, $replacement, $content);
-}
 
 /*
Index: /extensions/TakeATour/tours/first_contact/config.inc.php
===================================================================
--- /extensions/TakeATour/tours/first_contact/config.inc.php	(revision 28059)
+++ /extensions/TakeATour/tours/first_contact/config.inc.php	(revision 28059)
@@ -0,0 +1,71 @@
+<?php
+if ( defined('IN_ADMIN') and IN_ADMIN )
+{
+/* first contact */
+add_event_handler('loc_end_element_set_global', 'TAT_FC_14');
+add_event_handler('loc_end_picture_modify', 'TAT_FC_16');
+add_event_handler('loc_end_picture_modify', 'TAT_FC_17');
+add_event_handler('loc_end_cat_modify', 'TAT_FC_23');
+add_event_handler('loc_end_themes_installed', 'TAT_FC_35');
+}
+
+function TAT_FC_14()
+{
+  global $template;
+  $template->set_prefilter('batch_manager_global', 'TAT_FC_14_prefilter');
+}
+function TAT_FC_14_prefilter ($content, &$smarty)
+{
+  $search = '<span class="wrap2';
+  $replacement = '{counter print=false assign=TAT_FC_14}<span {if $TAT_FC_14==1}id="TAT_FC_14"{/if} class="wrap2';
+  $content = str_replace($search, $replacement, $content);
+  $search = 'target="_blank">{\'Edit\'';
+  $replacement = '>{\'Edit\'';
+  return str_replace($search, $replacement, $content);
+}
+function TAT_FC_16()
+{
+  global $template;
+  $template->set_prefilter('picture_modify', 'TAT_FC_16_prefilter');
+}
+function TAT_FC_16_prefilter ($content, &$smarty)
+{
+  $search = '<strong>{\'Linked albums\'|@translate}</strong>';
+  $replacement = '<span id="TAT_FC_16"><strong>{\'Linked albums\'|@translate}</strong></span>';
+  return str_replace($search, $replacement, $content);
+}
+function TAT_FC_17()
+{
+  global $template;
+  $template->set_prefilter('picture_modify', 'TAT_FC_17_prefilter');
+}
+function TAT_FC_17_prefilter ($content, &$smarty)
+{
+  $search = '<strong>{\'Representation of albums\'|@translate}</strong>';
+  $replacement = '<span id="TAT_FC_17"><strong>{\'Representation of albums\'|@translate}</strong></span>';
+  return str_replace($search, $replacement, $content);
+}
+function TAT_FC_23()
+{
+  global $template;
+  $template->set_prefilter('album_properties', 'TAT_FC_23_prefilter');
+}
+function TAT_FC_23_prefilter ($content, &$smarty)
+{
+  $search = '<strong>{\'Lock\'|@translate}</strong>';
+  $replacement = '<span id="TAT_FC_23"><strong>{\'Lock\'|@translate}</strong></span>';
+  return str_replace($search, $replacement, $content);
+}
+function TAT_FC_35()
+{
+  global $template;
+  $template->set_prefilter('themes', 'TAT_FC_35_prefilter');
+}
+function TAT_FC_35_prefilter ($content, &$smarty)
+{
+  $search = '<a href="{$set_default_baseurl}{$theme.ID}" class="tiptip"';
+  $replacement = '{counter print=false assign=TAT_FC_35}<a href="{$set_default_baseurl}{$theme.ID}" class="tiptip" {if $TAT_FC_35==1}id="TAT_FC_35"{/if}';
+  return str_replace($search, $replacement, $content);
+}
+
+?>
Index: /extensions/TakeATour/tours/first_contact/config_preparse.inc.php
===================================================================
--- /extensions/TakeATour/tours/first_contact/config_preparse.inc.php	(revision 28059)
+++ /extensions/TakeATour/tours/first_contact/config_preparse.inc.php	(revision 28059)
@@ -0,0 +1,54 @@
+<?php
+  //picture id
+  if (isset($_GET['page']) and preg_match('/^photo-(\d+)(?:-(.*))?$/', $_GET['page'], $matches))
+  {
+    $_GET['image_id'] = $matches[1];
+  }
+  check_input_parameter('image_id', $_GET, false, PATTERN_ID);
+  if (isset($_GET['image_id']) and pwg_get_session_var('TAT_image_id')==null)
+  {
+    $template->assign('TAT_image_id', $_GET['image_id']);
+    pwg_set_session_var('TAT_image_id', $_GET['image_id']);
+  }
+  elseif (is_numeric(pwg_get_session_var('TAT_image_id')))
+  {
+    $template->assign('TAT_image_id', pwg_get_session_var('TAT_image_id'));
+  }
+  else
+  {
+    $query = '
+    SELECT id
+      FROM '.IMAGES_TABLE.'
+      ORDER BY RAND()
+      LIMIT 1  
+    ;';
+    $row = pwg_db_fetch_assoc(pwg_query($query));
+    $template->assign('TAT_image_id', $row['id']);
+  }
+  //album id
+  if (isset($_GET['page']) and preg_match('/^album-(\d+)(?:-(.*))?$/', $_GET['page'], $matches))
+  {
+    $_GET['cat_id'] = $matches[1];
+  }
+  check_input_parameter('cat_id', $_GET, false, PATTERN_ID);
+  if (isset($_GET['cat_id']) and pwg_get_session_var('TAT_cat_id')==null)
+  {
+    $template->assign('TAT_cat_id', $_GET['cat_id']);
+    pwg_set_session_var('TAT_cat_id', $_GET['cat_id']);
+  }
+  elseif (is_numeric(pwg_get_session_var('TAT_cat_id')))
+  {
+    $template->assign('TAT_cat_id', pwg_get_session_var('TAT_cat_id'));
+  }
+  else
+  {
+    $query = '
+    SELECT id
+      FROM '.CATEGORIES_TABLE.'
+      ORDER BY RAND()
+      LIMIT 1  
+    ;';
+    $row = pwg_db_fetch_assoc(pwg_query($query));
+    $template->assign('TAT_cat_id', $row['id']);
+  }
+?>
Index: /extensions/TakeATour/tours/first_contact/tour.tpl
===================================================================
--- /extensions/TakeATour/tours/first_contact/tour.tpl	(revision 28059)
+++ /extensions/TakeATour/tours/first_contact/tour.tpl	(revision 28059)
@@ -0,0 +1,330 @@
+{footer_script require='jquery.bootstrap-tour'}{literal}
+// Instance the tour
+var tour = new Tour({
+  name: "first_contact",
+  orphan: true,
+  onEnd: function (tour) {window.location = "admin.php?page=plugin-TakeATour&tour_ended=first_contact";},
+});
+{/literal}{if $TAT_restart}tour.restart();{/if}{literal}
+// Add your steps. Not too many, you don't really want to get your users sleepy
+tour.addSteps([
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.php",
+    title: "{/literal}{'Welcome in your Piwigo gallery'|@translate}{literal}",
+    content: "{/literal}{'Hello! I will be your guide to discover Piwigo. Please follow my instructions, and click Next (or use the arrows of your keyboard) to navigate. If you go in an other page of the administration, you will be redirected to the current page of the Tour.<br>Let\'s start by adding pictures!'|@translate}{literal}"
+  },
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.php",
+    placement: "right",
+    element: ".icon-plus-circled",
+    reflex:true,
+    content: "{/literal}{'The link is here. Click Next to continue'|@translate}{literal}",
+  },
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
+    placement: "bottom",
+    element: ".selected_tab",
+    title: "{/literal}{'Add Photo Page'|@translate}{literal}",
+    content: "{/literal}{'First tab to add photos from your browser, other tabs to add from a software, mobile or FTP'|@translate}{literal}",
+  },
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
+    placement: "left",
+    element: "#albumSelection",
+    title: "{/literal}{'Lets add photo!'|@translate}{literal}",
+    content: "{/literal}{'First choose an album; create one if there is no album yet.'|@translate}{literal}"
+  },
+  {//5
+    path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
+    placement: "top",
+    element: "#uploadify",
+    content: "{/literal}{'Then click the button to select photos to send from your computer'|@translate}{literal}"
+  },
+  {
+    path: /admin\.php\?page=photos_add/,
+    redirect:function (tour) {tour.goTo(4);},
+    placement: "left",
+    element: "#fileQueue",
+    title: "{/literal}{''|@translate}{literal}",
+    content: "{/literal}{'You see that photos are being listed. Add at least 2 pictures and when you\'re ready click the button Start Upload'|@translate}{literal}"
+  },
+  {
+    path: /admin\.php\?page=photos_add/,
+    redirect:function (tour) {tour.goTo(4);},
+    placement: "top",
+    element: "#photosAddContent legend",
+    content: "{/literal}{'Here a summary of your uploaded pictures. See that Piwigo has generated itself the thumbnails. You can know add more photos with the link at the bottom, edit the properties of a picture by cliking on it, or click to manage all the uploaded pictures in the Batch Manager...'|@translate}{literal}",
+    onPrev:function (tour) {tour.goTo(4);}
+  },
+  {
+    path: /admin\.php\?page=photos_add/,
+    redirect:function (tour) {tour.goTo(4);},
+    placement: "bottom",
+    element: "#batchLink",
+    reflex:true,
+    content: "{/literal}{'Let\'s edit them! Click on the link. If you don\'t see it click Prev to add at least 2 photos.'|@translate}{literal}",
+    onPrev:function (tour) {tour.goTo(4);}
+  },
+  {
+    path: /admin\.php\?page=(photos_add|batch_manager&filter=prefilter-last_import|prefilter-caddie)/,
+    redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
+    placement: "top",
+    element: "",
+    title: "{/literal}{'The Batch Manager'|@translate}{literal}",
+    content: "{/literal}{'You are know in the Batch Manager, where you can batch edit multiple pictures. Here the Caddy is set as a filter because we comes from the upload result page.'|@translate}{literal}"
+  },
+  {//10
+    path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
+    redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
+    placement: "right",
+    element: ".icon-flag",
+    content: "{/literal}{'Here is the link to directly access to your caddy: that/s a tool for administrators to easily add pictures to a set in order to edit them in the Batch Manager. You can add photos to the caddy from the public picture page when logged as an admin, or using the action \"Add to caddy\" on the Batch Manager'|@translate}{literal}"
+  },
+  {
+    path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
+    redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
+    placement: "left",
+    element: "#checkActions",
+    title: "{/literal}{'How to edit a photos'|@translate}{literal}",
+    content: "{/literal}{'So you can select from here one or more photos'|@translate}{literal}"
+  },
+  {
+    path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
+    redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
+    placement: "top",
+    element: "#action",
+    content: "{/literal}{'then edit them using and action. But for instance, you can\'t -for now- batch edit descriptions since they are mostly unique'|@translate}{literal}"
+  },
+  {
+    path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
+    redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
+    placement: "bottom",
+    element: "#tabsheet .normal_tab",
+    content: "{/literal}{'You can edit descriptions and more from the batch manager in unit mode. But for now, let\'s stay in the global mode'|@translate}{literal}"
+  },
+  {
+    path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
+    redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
+    placement: "top",
+    element: "#TAT_FC_14",
+    reflex:true,
+    content: "{/literal}{'We will see now the edition page of one picture. That page is reachable from here but also from the public picture page when logged as an administrator. Click on Edit or go next'|@translate}{literal}",
+    onNext:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";}
+  },
+  {//15
+    path: /admin\.php\?page=photo-/,
+    redirect:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
+    placement: "bottom",
+    element: ".selected_tab",
+    title: "{/literal}{'The edition page of a picture'|@translate}{literal}",
+    content: "{/literal}{'On that page you can edit all the properties of a photo, for instance...'|@translate}{literal}"
+  },
+  {
+    path: /admin\.php\?page=photo-/,
+    redirect:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
+    placement: "top",
+    element: "#TAT_FC_16",
+    content: "{/literal}{'here to add or remove the photo from albums. The link is virtual, no photos will be physcally moved ever.'|@translate}{literal}"
+  },
+  {
+    path: /admin\.php\?page=photo-/,
+    redirect:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
+    placement: "top",
+    element: "#TAT_FC_17",
+    content: "{/literal}{'and here to set the photo as a picture representative of an album. So you can set as a representative of a public album, a photo in a private album, which is ideal to set custom thumbnails for albums but the user won\'t see those pictures inside those albums. Like setting a portrait of someone as representative, for an album which contains photos of nature; it would be weird to see that photo of the man/woman among trees or animals.'|@translate}{literal}"
+  },
+  {
+    path: /admin\.php\?page=photo-/,
+    redirect:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
+    placement: "top",
+    title: "{/literal}{'Manage albums'|@translate}{literal}",
+    content: "{/literal}{'That previous example was just a small overview of tricks and how powerfull Piwigo is. So I\'ve told about private albums, but how can we manage albums? Click On album->Manage or hit Next'|@translate}{literal}"
+  },
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.php?page=cat_list",
+    placement: "left",
+    element: "#content",
+    title: "{/literal}{'Manage Albums'|@translate}{literal}",
+    content: "{/literal}{'Here are listed all the \'top\' albums, the ones at the root of your gallery. If you see an album with a dashed backgroung, it\'s an real physical album from a FTP synchro, which can\'t be moved or deleted from here. The others albums are called virtual albums.'|@translate}{literal}",
+    onPrev: function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
+
+  },
+  {//20
+    path: "{/literal}{$TAT_path}{literal}admin.php?page=cat_list",
+    placement: "top",
+    element: "#categoryOrdering",
+    title: "{/literal}{'Manage Albums'|@translate}{literal}",
+    content: "{/literal}{'When your mouse is hover a album, links and information appear. When you drag and drop an album -a rounded block-, you will change its position and then you can save or cancel your manual order.'|@translate}{literal}"
+  },
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.php?page=cat_list",
+    placement: "left",
+    element: "#tabsheet:first-child",
+    title: "{/literal}{'Other Tabs'|@translate}{literal}",
+    content: "{/literal}{'The next tab is a page where you can move any virtual album.<br>The permalink tab is to set a particular url for an album, for tecnhical reasons like to set a specific template or for just sending cool customized links.<br>But let\'s edit an album: click on Edit of a album'|@translate}{literal}"
+  },
+  {
+    path: /admin\.php\?page=album-/,
+    redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}";},
+    placement: "top",
+    element: ".selected_tab",
+    title: "{/literal}{'Album Edition Page'|@translate}{literal}",
+    content: "{/literal}{'Like for a picture, here you can edit the properties of an album'|@translate}{literal}"
+  },
+  {
+    path: /admin\.php\?page=album-/,
+    redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}";},
+    placement: "top",
+    element: "#TAT_FC_23",
+    content: "{/literal}{'Locking a album means only administrators will be able to see that album: it\'s usually used when an admin is managing the properties of an album or don\'t want to publish the album immediatly'|@translate}{literal}"
+  },
+  {
+    path: /admin\.php\?page=album-/,
+    redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}";},
+    placement: "bottom",
+    element: ".tabsheet",
+    content: "{/literal}{'Certainly, one of the most important page in the permission page of an album. Click on the permission tab or click next'|@translate}{literal}"
+  },
+  {//25
+    path: /admin\.php\?page=album-[0-9]+-permissions/,
+    redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
+    placement: "left",
+    element: "#content",
+    title: "{/literal}{'Album Permission'|@translate}{literal}",
+    content: "{/literal}{'As you can read in the Help of your Piwigo -link at the top right-, album permissions are set by groups and users. You can directly set private/public multiple albums using the Administration » Albums » Properties page.'|@translate}{literal}"
+  },
+  {
+    path: /admin\.php\?page=album-[0-9]+-permissions/,
+    redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
+    placement: "top",
+    element: "#selectStatus",
+    content: "{/literal}{'Here you can set the current album as private, then grant access to users and groups. By default, permissions are not recursive for sub albums, but upper-albums will be granted with the same permission in order to let the granted users browse to the album.'|@translate}{literal}"
+  },
+  {
+    path: /admin\.php\?page=album-[0-9]+-permissions/,
+    redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
+    placement: "top",
+    element: "#selectStatus",
+    content: "{/literal}{'Important fact: the webmasters and administrators are not omniscient when browsing the public part, but they can access to every album and photos on the admin part.'|@translate}{literal}"
+  },
+  {
+    path: /admin\.php\?page=album-[0-9]+-permissions/,
+    redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
+    placement: "top",
+    title: "{/literal}{'Configuration'|@translate}{literal}",
+    content: "{/literal}{'Now we will look at the options available to set Piwigo working your way. Click on Configuration->Options or just hit Next.'|@translate}{literal}"
+  },
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
+    placement: "top",
+    element: "",
+    title: "{/literal}{'Configuration->Options->General'|@translate}{literal}",
+    content: "{/literal}{'Here, on that first page, you will set the essential and basic configuration of your gallery.'|@translate}{literal}"
+  },
+  {//30
+    path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
+    placement: "right",
+    element: "#gallery_title",
+    content: "{/literal}{'Let\'s start by changing the tittle'|@translate}{literal}"
+  },
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
+    placement: "right",
+    element: "#page_banner",
+    content: "{/literal}{'Then the banner, which will be displayed on top of every pages. As you can see, HTML tags are allowed here. You can also use the %gallery_title% tag to display the tittle you just typed above.'|@translate}{literal}"
+  },
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
+    reflex: true,
+    placement: "top",
+    element: ".formButtons input",
+    content: "{/literal}{'Now save you changes'|@translate}{literal}"
+  },
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
+    placement: "top",
+    title: "{/literal}{'Guest settings'|@translate}{literal}",
+    content: "{/literal}{'Just a final word about the options, the \'Guest settings\' page is to set the preferences of unregistered visitors. Each time Piwigo refers to \'guest\' that means unregistered visitors.<br>Let\'s continue about Configuration: click on Configuration->Themes or just hit Next.'|@translate}{literal}",
+    onPrev:function (tour) {tour.goTo(30);}
+  },
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.php?page=themes",
+    placement: "top",
+    element: "",
+    title: "{/literal}{'Themes'|@translate}{literal}",
+    content: "{/literal}{'Themes are one of the three way to customize your Piwigo, with Plugins and Templates. Themes installed are listed here.<br>More than one theme can be enabled: users can change their theme by choosing one among the one enabled here, if the option \'Allow user customization\' is checked on the Option page.'|@translate}{literal}"
+  },
+  {//35
+    path: "{/literal}{$TAT_path}{literal}admin.php?page=themes",
+    placement: "top",
+    element: "#TAT_FC_35",
+    title: "{/literal}{'Themes'|@translate}{literal}",
+    content: "{/literal}{'Themes can also be set as Default, which means that\'s the theme for unregistred visitors (guests, you remember?) and any new registred user will be have this theme. But for any previously registred users, the theme won\'t change until you do it from the User Management page or you disable their theme: be carefull, you might disturb your users by changing their whole display.'|@translate}{literal}"
+  },
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.php?page=themes",
+    placement: "top",
+    element: "",
+    title: "{/literal}{'Themes'|@translate}{literal}",
+    content: "{/literal}{'Themes have a system of dependency: that\'s why some theme can\'t be deleted (a parent theme can\'t be deleted if a child theme is enabled) or others can\'t be enabled (a child theme need its parent theme). For instance, when you put you\'re mouse over a Delete link, if the theme can\'t be deleted, a information bubble will explain you why.'|@translate}{literal}"
+  },
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.php?page=themes",
+    placement: "right",
+    element: ".tabsheet",
+    title: "{/literal}{'Themes'|@translate}{literal}",
+    content: "{/literal}{'To install new themes, you can directly download them from the tab \'Add a theme\'. Only the themes marked as compatible with your version of Piwigo are showed.<br>Let\'s discover the plugins now! Click on Plugin->Manage'|@translate}{literal}"
+  },
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
+    placement: "left",
+    element: "",
+    title: "{/literal}{'Plugins'|@translate}{literal}",
+    content: "{/literal}{'Plugins are very easy ways to customize your Piwigo. They can do almost anything you can imagine from small text addition to complete features, like the Community plugin which allows non admistrators users to upload without entering to the administration part.'|@translate}{literal}"
+  },
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
+    placement: "left",
+    element: "#content",
+    title: "{/literal}{'Plugins'|@translate}{literal}",
+    content: "{/literal}{'On that first page, are listed the installed plugins. At the top, are listed the plugins activated, which are currently running. At the bottom, the plugins which are installed in the /plugins folder, but disabled. Deleting a plugin means that any trace of the plugin will be removed (files, options etc). For most of the plugins, disabling will keep the data registered by the plugins.'|@translate}{literal}"
+  },
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
+    placement: "bottom",
+    element: "#TakeATour",
+    content: "{/literal}{'Here it\'s me! Don\'t disable me now, but you can see you can Disable or Restore an activated plugin.'|@translate}{literal}"
+  },
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
+    placement: "right",
+    element: ".tabsheet",
+    content: "{/literal}{'You can see on the last tab all the plugins available for your version of Piwigo. Hundred of plugins are there!'|@translate}{literal}"
+  },
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.php?page=languages",
+    title: "{/literal}{'Languages'|@translate}{literal}",
+    content: "{/literal}{'Piwigo is multilingual. By default, the language displayed by Piwigo change according to the language of the browser of the visitor. If the language of the visitor is not availble, the language set by default is used.'|@translate}{literal}"
+  },
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.php?page=plugin-TakeATour",
+    placement: "top",
+    element: "",
+    title: "{/literal}{'It\'s been a great time'|@translate}{literal}",
+    content: "{/literal}{'This tour was quite long, but we only have seen a small part of how powerfull Piwigo is. Everything has a end, this overview is finished.<br>You can discover much deeper the features of Piwigo by taking an other tour or reading our documentation, on the piwigo.org website'|@translate}{literal}"
+  }
+]);
+
+// Initialize the tour
+tour.init();
+
+// Start the tour
+tour.start();
+
+jQuery( "input[class='submit']" ).click(function() {
+  if (tour.getCurrentStep()==5)
+  {
+    tour.goTo(6);
+  }
+});
+{/literal}{/footer_script}
Index: /extensions/TakeATour/tours/scaling/scaling.tpl
===================================================================
--- /extensions/TakeATour/tours/scaling/scaling.tpl	(revision 28059)
+++ /extensions/TakeATour/tours/scaling/scaling.tpl	(revision 28059)
@@ -0,0 +1,89 @@
+{footer_script require='jquery.bootstrap-tour'}{literal}
+// Instance the tour
+var tour = new Tour({
+  name: "scaling",
+  orphan: true,
+  onEnd: function (tour) {window.location = "admin.php?page=plugin-TakeATour&tour_ended=scaling";},
+});
+{/literal}{if $TAT_restart}tour.restart();{/if}{literal}
+// Add your steps. Not too many, you don't really want to get your users sleepy
+tour.addSteps([
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.php",
+    title: "{/literal}{'Welcome on the /'Scaling/' Tour'|@translate}{literal}",
+    content: "{/literal}{'This tour will show you how to configure your Piwigo according to your server resources. This tour is for beginners and for advanced user, so you can skip technical steps if you want.'|@translate}{literal}"
+  },
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.php",
+    title: "{/literal}{'Servers'|@translate}{literal}",
+    content: "{/literal}{'On free hosting and shared hosting, multiple websites are on the same physical server, so resources are shared. So your hosting provider may restrictions for CPU and memory consumptions.<br>For dedicated servers, you will be able to adjust the resource consumption of your Piwigo.'|@translate}{literal}"
+  },
+
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.phpSIZE",
+    content: "{/literal}{'The main resource consumption is the generation of resized pictures. To lower that, you can disable some size. Size are for plugins and themes to display the best size according to the user screen, and for the users who can prefer lower resolution photos (bandwidth etc)'|@translate}{literal}"
+  }
+
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.php?page=batch_manager",
+    title: "{/literal}{'Resized picture generation'|@translate}{literal}",
+    content: "{/literal}{'Piwigo generates on the demand and on the fly the resized pictures: so the first user browsing the gallery after an upload will trigger the generation of the thumbnails, for instance. At that moment the server ressources might be too hight for some hosting. Then those pictures generated are stored, so no further picture generation will be done again.<br>After a big upload, you might prefer to trigger the generation of those resized pictures yourself: instead of having a small long term resource consumption; the server will have a short peak of computation. According to your hosting, it might be better to generate once, quickly. Choose the /"Generate/" action in the Batch Manager to do so.<br>For advanced users, and if you have a FTP access, you can upload resized pictures
+generated on your computer in the _data/i folder: be careful when naming the files.'|@translate}{literal}"
+  },
+
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.php",
+    title: "{/literal}{'Graphic library'|@translate}{literal}",
+    content: "{/literal}{''|@translate}{literal}"
+  },
+
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.phpHISTORY",
+    title: "{/literal}{'History'|@translate}{literal}",
+    content: "{/literal}{'Some hosting has a limitation for how much data can be stored in the database. The history data can become huge if you record guest visits and don/'t purge the history. So you can disable it or disable for guests, but check before the available plugins!<br>So if you get an error about a "piwigo_history" "table", it/'s probably about a needed purge of the history.'|@translate}{literal}"
+  },
+
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.phpPLUGINS",
+    title: "{/literal}{'Local Configuration'|@translate}{literal}",
+    content: "{/literal}{'Please enable the Local Files Editor for the next step.'|@translate}{literal}"
+  },
+
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.phpLFE",
+    title: "{/literal}{'Local Configuration'|@translate}{literal}",
+    content: "{/literal}{'Piwigo has a Local Configuration, which is in fact a list of variables not present in the Graphic Interface. The Default Configuration file has every variables available in it, the default values for them and an explicative text for each of them.<br>To set your own values, use that page which is a text editor for Local Configuration file: the values in the local config override the default config.<br>The workflow is quite simple...|@translate}{literal}"
+  },
+
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.phpLFE",
+    placement: "left",
+    element: "LIEN",
+    title: "{/literal}{'Servers'|@translate}{literal}",
+    content: "{/literal}{'Browse the default config, and when you have found some interesting variable, copy/paste here and change the value.'|@translate}{literal}"
+  },
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.phpLFE",
+    title: "{/literal}{'Local Configuration'|@translate}{literal}",
+    content: "{/literal}{'Some variable you could change for scaling up or down your Piwigo:<ul><li>$conf['template_compile_check'] : This tells Smarty whether to check for recompiling or not. Recompiling does not need to happen unless a template is changed. false results in better performance.</li><li>$conf['compiled_template_cache_language'] : if true, some language strings are replaced during template compilation (instead of template output). This results in better performance. However any change in the language file will not be propagated until you purge  the compiled templates from the admin / maintenance menu</li><li>$conf['template_combine_files'] : if true -defaukt value-, it activates merging of javascript / css files in order to reduce a lot the loading of the server due to multiple requests.</li><li>$conf['max_requests'] : maximum Ajax requests at once, for thumbnails on-the-fly generation. Increase that number (3 by default) if your server can handle the resource consumption due to the generation of the thumbnails, and if you want a better user experience.</li></ul>'|@translate}{literal}",
+  },
+  {
+    path: "{/literal}{$TAT_path}{literal}admin.phpLFE",
+    title: "{/literal}{'Finished'|@translate}{literal}",
+    content: "{/literal}{'There are other variables you might tune, some features you could disable (ratings, comments etc), custom theme you could do to remove some information but the thing is Piwigo is already flexible and powerful. The only critical point which might be raised, is the generation of resized pictures: go back in this tour to remember what I told you.<br>Now you can end this tour, and I hope to see you soon.'|@translate}{literal}"
+  }
+]);
+
+// Initialize the tour
+tour.init();
+
+// Start the tour
+tour.start();
+
+jQuery( "input[class='submit']" ).click(function() {
+  if (tour.getCurrentStep()==5)
+  {
+    tour.goTo(6);
+  }
+});
+{/literal}{/footer_script}
Index: /extensions/TakeATour/tours/tours.inc.php
===================================================================
--- /extensions/TakeATour/tours/tours.inc.php	(revision 28059)
+++ /extensions/TakeATour/tours/tours.inc.php	(revision 28059)
@@ -0,0 +1,2 @@
+<?php
+?>
Index: /extensions/TakeATour/tpl/admin.tpl
===================================================================
--- /extensions/TakeATour/tpl/admin.tpl	(revision 28058)
+++ /extensions/TakeATour/tpl/admin.tpl	(revision 28059)
@@ -1,12 +1,11 @@
 <div class="titrePage">
-  <h2>{'takeatour_configpage'|@translate}</h2>
+  <h2>{'iconset_configpage'|@translate}</h2>
 </div>
-<div id="TAT_Content">
+<div id="themesContent">
   <fieldset>
     <legend>{'First Contact'|@translate}</legend>
-    <div class="TAT_description">{'Recommended for beginners, this tour introduce you Piwigo, its basic features. It will start by adding pictures, then manage them. The tour continues with album management and permissions, and ends on the customization using the configuration, the themes and the plugins.'|@translate}</div>
     <form action="{$F_ACTION}" method="post">
       <input type="hidden" name="submited_tour" value="first_contact">
-      <input type="submit" name="button2" id="button2" value="{'Launch the Tour'|@translate}">
+      <input type="submit" name="button2" id="button2" value="{'Launch the Tour'|@translate}" style=" width:100%" />
     </form>
   </fieldset>
Index: tensions/TakeATour/tpl/first_contact.tpl
===================================================================
--- /extensions/TakeATour/tpl/first_contact.tpl	(revision 28058)
+++ 	(revision )
@@ -1,330 +1,0 @@
-{footer_script require='jquery.bootstrap-tour'}{literal}
-// Instance the tour
-var tour = new Tour({
-  name: "first_contact",
-  orphan: true,
-  onEnd: function (tour) {window.location = "admin.php?page=plugin-TakeATour&tour_ended=first_contact";},
-});
-{/literal}{if $TAT_restart}tour.restart();{/if}{literal}
-// Add your steps. Not too many, you don't really want to get your users sleepy
-tour.addSteps([
-  {
-    path: "{/literal}{$TAT_path}{literal}admin.php",
-    title: "{/literal}{'Welcome in your Piwigo gallery'|@translate}{literal}",
-    content: "{/literal}{'Hello! I will be your guide to discover Piwigo. Please follow my instructions, and click Next (or use the arrows of your keyboard) to navigate. If you go in an other page of the administration, you will be redirected to the current page of the Tour.<br>Let\'s start by adding pictures!'|@translate}{literal}"
-  },
-  {
-    path: "{/literal}{$TAT_path}{literal}admin.php",
-    placement: "right",
-    element: ".icon-plus-circled",
-    reflex:true,
-    content: "{/literal}{'The link is here. Click Next to continue'|@translate}{literal}",
-  },
-  {
-    path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
-    placement: "bottom",
-    element: ".selected_tab",
-    title: "{/literal}{'Add Photo Page'|@translate}{literal}",
-    content: "{/literal}{'First tab to add photos from your browser, other tabs to add from a software, mobile or FTP'|@translate}{literal}",
-  },
-  {
-    path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
-    placement: "left",
-    element: "#albumSelection",
-    title: "{/literal}{'Lets add photo!'|@translate}{literal}",
-    content: "{/literal}{'First choose an album; create one if there is no album yet.'|@translate}{literal}"
-  },
-  {//5
-    path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
-    placement: "top",
-    element: "#uploadify",
-    content: "{/literal}{'Then click the button to select photos to send from your computer'|@translate}{literal}"
-  },
-  {
-    path: /admin\.php\?page=photos_add/,
-    redirect:function (tour) {tour.goTo(4);},
-    placement: "left",
-    element: "#fileQueue",
-    title: "{/literal}{''|@translate}{literal}",
-    content: "{/literal}{'You see that photos are being listed. Add at least 2 pictures and when you\'re ready click the button Start Upload'|@translate}{literal}"
-  },
-  {
-    path: /admin\.php\?page=photos_add/,
-    redirect:function (tour) {tour.goTo(4);},
-    placement: "top",
-    element: "#photosAddContent legend",
-    content: "{/literal}{'Here a summary of your uploaded pictures. See that Piwigo has generated itself the thumbnails. You can know add more photos with the link at the bottom, edit the properties of a picture by cliking on it, or click to manage all the uploaded pictures in the Batch Manager...'|@translate}{literal}",
-    onPrev:function (tour) {tour.goTo(4);}
-  },
-  {
-    path: /admin\.php\?page=photos_add/,
-    redirect:function (tour) {tour.goTo(4);},
-    placement: "bottom",
-    element: "#batchLink",
-    reflex:true,
-    content: "{/literal}{'Let\'s edit them! Click on the link. If you don\'t see it click Prev to add at least 2 photos.'|@translate}{literal}",
-    onPrev:function (tour) {tour.goTo(4);}
-  },
-  {
-    path: /admin\.php\?page=(photos_add|batch_manager&filter=prefilter-last_import|prefilter-caddie)/,
-    redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
-    placement: "top",
-    element: "",
-    title: "{/literal}{'The Batch Manager'|@translate}{literal}",
-    content: "{/literal}{'You are know in the Batch Manager, where you can batch edit multiple pictures. Here the Caddy is set as a filter because we comes from the upload result page.'|@translate}{literal}"
-  },
-  {//10
-    path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
-    redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
-    placement: "right",
-    element: ".icon-flag",
-    content: "{/literal}{'Here is the link to directly access to your caddy: that/s a tool for administrators to easily add pictures to a set in order to edit them in the Batch Manager. You can add photos to the caddy from the public picture page when logged as an admin, or using the action \"Add to caddy\" on the Batch Manager'|@translate}{literal}"
-  },
-  {
-    path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
-    redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
-    placement: "left",
-    element: "#checkActions",
-    title: "{/literal}{'How to edit a photos'|@translate}{literal}",
-    content: "{/literal}{'So you can select from here one or more photos'|@translate}{literal}"
-  },
-  {
-    path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
-    redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
-    placement: "top",
-    element: "#action",
-    content: "{/literal}{'then edit them using and action. But for instance, you can\'t -for now- batch edit descriptions since they are mostly unique'|@translate}{literal}"
-  },
-  {
-    path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
-    redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
-    placement: "bottom",
-    element: "#tabsheet .normal_tab",
-    content: "{/literal}{'You can edit descriptions and more from the batch manager in unit mode. But for now, let\'s stay in the global mode'|@translate}{literal}"
-  },
-  {
-    path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
-    redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
-    placement: "top",
-    element: "#TAT_FC_14",
-    reflex:true,
-    content: "{/literal}{'We will see now the edition page of one picture. That page is reachable from here but also from the public picture page when logged as an administrator. Click on Edit or go next'|@translate}{literal}",
-    onNext:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";}
-  },
-  {//15
-    path: /admin\.php\?page=photo-/,
-    redirect:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
-    placement: "bottom",
-    element: ".selected_tab",
-    title: "{/literal}{'The edition page of a picture'|@translate}{literal}",
-    content: "{/literal}{'On that page you can edit all the properties of a photo, for instance...'|@translate}{literal}"
-  },
-  {
-    path: /admin\.php\?page=photo-/,
-    redirect:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
-    placement: "top",
-    element: "#TAT_FC_16",
-    content: "{/literal}{'here to add or remove the photo from albums. The link is virtual, no photos will be physcally moved ever.'|@translate}{literal}"
-  },
-  {
-    path: /admin\.php\?page=photo-/,
-    redirect:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
-    placement: "top",
-    element: "#TAT_FC_17",
-    content: "{/literal}{'and here to set the photo as a picture representative of an album. So you can set as a representative of a public album, a photo in a private album, which is ideal to set custom thumbnails for albums but the user won\'t see those pictures inside those albums. Like setting a portrait of someone as representative, for an album which contains photos of nature; it would be weird to see that photo of the man/woman among trees or animals.'|@translate}{literal}"
-  },
-  {
-    path: /admin\.php\?page=photo-/,
-    redirect:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
-    placement: "top",
-    title: "{/literal}{'Manage albums'|@translate}{literal}",
-    content: "{/literal}{'That previous example was just a small overview of tricks and how powerfull Piwigo is. So I\'ve told about private albums, but how can we manage albums? Click On album->Manage or hit Next'|@translate}{literal}"
-  },
-  {
-    path: "{/literal}{$TAT_path}{literal}admin.php?page=cat_list",
-    placement: "left",
-    element: "#content",
-    title: "{/literal}{'Manage Albums'|@translate}{literal}",
-    content: "{/literal}{'Here are listed all the \'top\' albums, the ones at the root of your gallery. If you see an album with a dashed backgroung, it\'s an real physical album from a FTP synchro, which can\'t be moved or deleted from here. The others albums are called virtual albums.'|@translate}{literal}",
-    onPrev: function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
-
-  },
-  {//20
-    path: "{/literal}{$TAT_path}{literal}admin.php?page=cat_list",
-    placement: "top",
-    element: "#categoryOrdering",
-    title: "{/literal}{'Manage Albums'|@translate}{literal}",
-    content: "{/literal}{'When your mouse is hover a album, links and information appear. When you drag and drop an album -a rounded block-, you will change its position and then you can save or cancel your manual order.'|@translate}{literal}"
-  },
-  {
-    path: "{/literal}{$TAT_path}{literal}admin.php?page=cat_list",
-    placement: "left",
-    element: "#tabsheet:first-child",
-    title: "{/literal}{'Other Tabs'|@translate}{literal}",
-    content: "{/literal}{'The next tab is a page where you can move any virtual album.<br>The permalink tab is to set a particular url for an album, for tecnhical reasons like to set a specific template or for just sending cool customized links.<br>But let\'s edit an album: click on Edit of a album'|@translate}{literal}"
-  },
-  {
-    path: /admin\.php\?page=album-/,
-    redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}";},
-    placement: "top",
-    element: ".selected_tab",
-    title: "{/literal}{'Album Edition Page'|@translate}{literal}",
-    content: "{/literal}{'Like for a picture, here you can edit the properties of an album'|@translate}{literal}"
-  },
-  {
-    path: /admin\.php\?page=album-/,
-    redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}";},
-    placement: "top",
-    element: "#TAT_FC_23",
-    content: "{/literal}{'Locking a album means only administrators will be able to see that album: it\'s usually used when an admin is managing the properties of an album or don\'t want to publish the album immediatly'|@translate}{literal}"
-  },
-  {
-    path: /admin\.php\?page=album-/,
-    redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}";},
-    placement: "bottom",
-    element: ".tabsheet",
-    content: "{/literal}{'Certainly, one of the most important page in the permission page of an album. Click on the permission tab or click next'|@translate}{literal}"
-  },
-  {//25
-    path: /admin\.php\?page=album-[0-9]+-permissions/,
-    redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
-    placement: "left",
-    element: "#content",
-    title: "{/literal}{'Album Permission'|@translate}{literal}",
-    content: "{/literal}{'As you can read in the Help of your Piwigo -link at the top right-, album permissions are set by groups and users. You can directly set private/public multiple albums using the Administration » Albums » Properties page.'|@translate}{literal}"
-  },
-  {
-    path: /admin\.php\?page=album-[0-9]+-permissions/,
-    redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
-    placement: "top",
-    element: "#selectStatus",
-    content: "{/literal}{'Here you can set the current album as private, then grant access to users and groups. By default, permissions are not recursive for sub albums, but upper-albums will be granted with the same permission in order to let the granted users browse to the album.'|@translate}{literal}"
-  },
-  {
-    path: /admin\.php\?page=album-[0-9]+-permissions/,
-    redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
-    placement: "top",
-    element: "#selectStatus",
-    content: "{/literal}{'Important fact: the webmasters and administrators are not omniscient when browsing the public part, but they can access to every album and photos on the admin part.'|@translate}{literal}"
-  },
-  {
-    path: /admin\.php\?page=album-[0-9]+-permissions/,
-    redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
-    placement: "top",
-    title: "{/literal}{'Configuration'|@translate}{literal}",
-    content: "{/literal}{'Now we will look at the options available to set Piwigo working your way. Click on Configuration->Options or just hit Next.'|@translate}{literal}"
-  },
-  {
-    path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
-    placement: "top",
-    element: "",
-    title: "{/literal}{'Configuration->Options->General'|@translate}{literal}",
-    content: "{/literal}{'Here, on that first page, you will set the essential and basic configuration of your gallery.'|@translate}{literal}"
-  },
-  {//30
-    path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
-    placement: "right",
-    element: "#gallery_title",
-    content: "{/literal}{'Let\'s start by changing the tittle'|@translate}{literal}"
-  },
-  {
-    path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
-    placement: "right",
-    element: "#page_banner",
-    content: "{/literal}{'Then the banner, which will be displayed on top of every pages. As you can see, HTML tags are allowed here. You can also use the %gallery_title% tag to display the tittle you just typed above.'|@translate}{literal}"
-  },
-  {
-    path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
-    reflex: true,
-    placement: "top",
-    element: ".formButtons input",
-    content: "{/literal}{'Now save you changes'|@translate}{literal}"
-  },
-  {
-    path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
-    placement: "top",
-    title: "{/literal}{'Guest settings'|@translate}{literal}",
-    content: "{/literal}{'Just a final word about the options, the \'Guest settings\' page is to set the preferences of unregistered visitors. Each time Piwigo refers to \'guest\' that means unregistered visitors.<br>Let\'s continue about Configuration: click on Configuration->Themes or just hit Next.'|@translate}{literal}",
-    onPrev:function (tour) {tour.goTo(30);}
-  },
-  {
-    path: "{/literal}{$TAT_path}{literal}admin.php?page=themes",
-    placement: "top",
-    element: "",
-    title: "{/literal}{'Themes'|@translate}{literal}",
-    content: "{/literal}{'Themes are one of the three way to customize your Piwigo, with Plugins and Templates. Themes installed are listed here.<br>More than one theme can be enabled: users can change their theme by choosing one among the one enabled here, if the option \'Allow user customization\' is checked on the Option page.'|@translate}{literal}"
-  },
-  {//35
-    path: "{/literal}{$TAT_path}{literal}admin.php?page=themes",
-    placement: "top",
-    element: "#TAT_FC_35",
-    title: "{/literal}{'Themes'|@translate}{literal}",
-    content: "{/literal}{'Themes can also be set as Default, which means that\'s the theme for unregistred visitors (guests, you remember?) and any new registred user will be have this theme. But for any previously registred users, the theme won\'t change until you do it from the User Management page or you disable their theme: be carefull, you might disturb your users by changing their whole display.'|@translate}{literal}"
-  },
-  {
-    path: "{/literal}{$TAT_path}{literal}admin.php?page=themes",
-    placement: "top",
-    element: "",
-    title: "{/literal}{'Themes'|@translate}{literal}",
-    content: "{/literal}{'Themes have a system of dependency: that\'s why some theme can\'t be deleted (a parent theme can\'t be deleted if a child theme is enabled) or others can\'t be enabled (a child theme need its parent theme). For instance, when you put you\'re mouse over a Delete link, if the theme can\'t be deleted, a information bubble will explain you why.'|@translate}{literal}"
-  },
-  {
-    path: "{/literal}{$TAT_path}{literal}admin.php?page=themes",
-    placement: "right",
-    element: ".tabsheet",
-    title: "{/literal}{'Themes'|@translate}{literal}",
-    content: "{/literal}{'To install new themes, you can directly download them from the tab \'Add a theme\'. Only the themes marked as compatible with your version of Piwigo are showed.<br>Let\'s discover the plugins now! Click on Plugin->Manage'|@translate}{literal}"
-  },
-  {
-    path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
-    placement: "left",
-    element: "",
-    title: "{/literal}{'Plugins'|@translate}{literal}",
-    content: "{/literal}{'Plugins are very easy ways to customize your Piwigo. They can do almost anything you can imagine from small text addition to complete features, like the Community plugin which allows non admistrators users to upload without entering to the administration part.'|@translate}{literal}"
-  },
-  {
-    path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
-    placement: "left",
-    element: "#content",
-    title: "{/literal}{'Plugins'|@translate}{literal}",
-    content: "{/literal}{'On that first page, are listed the installed plugins. At the top, are listed the plugins activated, which are currently running. At the bottom, the plugins which are installed in the /plugins folder, but disabled. Deleting a plugin means that any trace of the plugin will be removed (files, options etc). For most of the plugins, disabling will keep the data registered by the plugins.'|@translate}{literal}"
-  },
-  {
-    path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
-    placement: "bottom",
-    element: "#TakeATour",
-    content: "{/literal}{'Here it\'s me! Don\'t disable me now, but you can see you can Disable or Restore an activated plugin.'|@translate}{literal}"
-  },
-  {
-    path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
-    placement: "right",
-    element: ".tabsheet",
-    content: "{/literal}{'You can see on the last tab all the plugins available for your version of Piwigo. Hundred of plugins are there!'|@translate}{literal}"
-  },
-  {
-    path: "{/literal}{$TAT_path}{literal}admin.php?page=languages",
-    title: "{/literal}{'Languages'|@translate}{literal}",
-    content: "{/literal}{'Piwigo is multilingual. By default, the language displayed by Piwigo change according to the language of the browser of the visitor. If the language of the visitor is not availble, the language set by default is used.'|@translate}{literal}"
-  },
-  {
-    path: "{/literal}{$TAT_path}{literal}admin.php?page=plugin-TakeATour",
-    placement: "top",
-    element: "",
-    title: "{/literal}{'It\'s been a great time'|@translate}{literal}",
-    content: "{/literal}{'This tour was quite long, but we only have seen a small part of how powerfull Piwigo is. Everything has a end, this overview is finished.<br>You can discover much deeper the features of Piwigo by taking an other tour or reading our documentation, on the piwigo.org website'|@translate}{literal}"
-  }
-]);
-
-// Initialize the tour
-tour.init();
-
-// Start the tour
-tour.start();
-
-jQuery( "input[class='submit']" ).click(function() {
-  if (tour.getCurrentStep()==5)
-  {
-    tour.goTo(6);
-  }
-});
-{/literal}{/footer_script}
