source: extensions/TakeATour/tours/scaling/scaling.tpl @ 28059

Last change on this file since 28059 was 28059, checked in by flop25, 10 years ago

first try to set modules

#sync from mobile storage

File size: 6.6 KB
Line 
1{footer_script require='jquery.bootstrap-tour'}{literal}
2// Instance the tour
3var tour = new Tour({
4  name: "scaling",
5  orphan: true,
6  onEnd: function (tour) {window.location = "admin.php?page=plugin-TakeATour&tour_ended=scaling";},
7});
8{/literal}{if $TAT_restart}tour.restart();{/if}{literal}
9// Add your steps. Not too many, you don't really want to get your users sleepy
10tour.addSteps([
11  {
12    path: "{/literal}{$TAT_path}{literal}admin.php",
13    title: "{/literal}{'Welcome on the /'Scaling/' Tour'|@translate}{literal}",
14    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}"
15  },
16  {
17    path: "{/literal}{$TAT_path}{literal}admin.php",
18    title: "{/literal}{'Servers'|@translate}{literal}",
19    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}"
20  },
21
22  {
23    path: "{/literal}{$TAT_path}{literal}admin.phpSIZE",
24    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}"
25  }
26
27  {
28    path: "{/literal}{$TAT_path}{literal}admin.php?page=batch_manager",
29    title: "{/literal}{'Resized picture generation'|@translate}{literal}",
30    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
31generated on your computer in the _data/i folder: be careful when naming the files.'|@translate}{literal}"
32  },
33
34  {
35    path: "{/literal}{$TAT_path}{literal}admin.php",
36    title: "{/literal}{'Graphic library'|@translate}{literal}",
37    content: "{/literal}{''|@translate}{literal}"
38  },
39
40  {
41    path: "{/literal}{$TAT_path}{literal}admin.phpHISTORY",
42    title: "{/literal}{'History'|@translate}{literal}",
43    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}"
44  },
45
46  {
47    path: "{/literal}{$TAT_path}{literal}admin.phpPLUGINS",
48    title: "{/literal}{'Local Configuration'|@translate}{literal}",
49    content: "{/literal}{'Please enable the Local Files Editor for the next step.'|@translate}{literal}"
50  },
51
52  {
53    path: "{/literal}{$TAT_path}{literal}admin.phpLFE",
54    title: "{/literal}{'Local Configuration'|@translate}{literal}",
55    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}"
56  },
57
58  {
59    path: "{/literal}{$TAT_path}{literal}admin.phpLFE",
60    placement: "left",
61    element: "LIEN",
62    title: "{/literal}{'Servers'|@translate}{literal}",
63    content: "{/literal}{'Browse the default config, and when you have found some interesting variable, copy/paste here and change the value.'|@translate}{literal}"
64  },
65  {
66    path: "{/literal}{$TAT_path}{literal}admin.phpLFE",
67    title: "{/literal}{'Local Configuration'|@translate}{literal}",
68    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}",
69  },
70  {
71    path: "{/literal}{$TAT_path}{literal}admin.phpLFE",
72    title: "{/literal}{'Finished'|@translate}{literal}",
73    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}"
74  }
75]);
76
77// Initialize the tour
78tour.init();
79
80// Start the tour
81tour.start();
82
83jQuery( "input[class='submit']" ).click(function() {
84  if (tour.getCurrentStep()==5)
85  {
86    tour.goTo(6);
87  }
88});
89{/literal}{/footer_script}
Note: See TracBrowser for help on using the repository browser.