Bonjour,
j'ai installé piwigo sur mon serveur, j'utilise le thème Simple Black et j'ai deux questions toutes bêtes :
Est-il possible de cacher/supprimer le titre d'une photo lors de l'affichage des miniatures ?
Et
peut-on supprimer la limite de photo par page ? (ou alors l'augmenter, genre à 100)
Cordialement,
Jérém
Dernière modification par jerem_d (2013-03-15 22:27:01)
Hors ligne
Bonjour,
jerem_d a écrit:
Est-il possible de cacher/supprimer le titre d'une photo lors de l'affichage des miniatures ?
Je ne comprends pas ta question :-(
jerem_d a écrit:
peut-on supprimer la limite de photo par page ? (ou alors l'augmenter, genre à 100)
1/ Aller dans administrations -> plugins -> gerer
Active [extension by Piwigo Team] LocalFiles Editor
2/ Aller dans administrations -> plugins -> localfile Editor -> tab local
ajouter
<?php
$conf['top_number'] = 15;
?>
-----
par défaut c'est 15 tu peux mettre ce que tu veux à la place ;-)
Hors ligne
bonjour
si c'est éventuellement ce que je pense
$conf['show_thumbnail_caption'] = false;
en config locale
Hors ligne
Merci d'avoir répondu,
en ce qui concerne les titres des photos on peut voir sur ma galerie, en dessous des photos des chiffres (1, 2, 3...) ce sont leur titre et je voudrais ne plus les afficher. ex : http://gallery.heliosphere.tk/index.php?/category/4
Pour le localfile editor j'ai une erreur en haut de ma page d'administration :
"Notice: Undefined index: text in /srv/web/gallery.heliosphere.tk/plugins/LocalFilesEditor/admin.php on line 123"
et je ne sais pas ce qu'elle veut dire, donc difficile de résoudre le problème..
Hors ligne
flop25 a écrit:
bonjour
si c'est éventuellement ce que je pense
$conf['show_thumbnail_caption'] = false;
en config locale
:)
Hors ligne
flop25 a écrit:
flop25 a écrit:
bonjour
si c'est éventuellement ce que je pense
$conf['show_thumbnail_caption'] = false;
en config locale:)
D'accord, mais sur quel fichier ?
sinon mon contenu de admin.php pour l'erreur qui m'empeche d'utiliser localfileeditor à cause de "Notice: Undefined index: text in /srv/web/gallery.heliosphere.tk/plugins/LocalFilesEditor/admin.php on line 123" :
<?php // +-----------------------------------------------------------------------+ // | Piwigo - a PHP based photo gallery | // +-----------------------------------------------------------------------+ // | Copyright(C) 2008-2013 Piwigo Team http://piwigo.org | // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | // +-----------------------------------------------------------------------+ // | 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 | // | | // | 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | // | USA. | // +-----------------------------------------------------------------------+ if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); include_once(LOCALEDIT_PATH.'include/functions.inc.php'); load_language('plugin.lang', LOCALEDIT_PATH); $my_base_url = get_root_url().'admin.php?page=plugin-'.basename(dirname(__FILE__)); // +-----------------------------------------------------------------------+ // | Tabssheet // +-----------------------------------------------------------------------+ if (empty($conf['LocalFilesEditor_tabs'])) { $conf['LocalFilesEditor_tabs'] = array('localconf', 'css', 'tpl', 'lang', 'plug'); } $page['tab'] = isset($_GET['tab']) ? $_GET['tab'] : $conf['LocalFilesEditor_tabs'][0]; if (!in_array($page['tab'], $conf['LocalFilesEditor_tabs'])) die('Hacking attempt!'); $tabsheet = new tabsheet(); foreach ($conf['LocalFilesEditor_tabs'] as $tab) { $tabsheet->add($tab, l10n('locfiledit_onglet_'.$tab), $my_base_url.'-'.$tab); } $tabsheet->select($page['tab']); $tabsheet->assign(); include_once(LOCALEDIT_PATH.'include/'.$page['tab'].'.inc.php'); // +-----------------------------------------------------------------------+ // | Load backup file // +-----------------------------------------------------------------------+ if (isset($_POST['restore'])) { $content_file = file_get_contents(get_bak_file($edited_file)); array_push($page['infos'], l10n('locfiledit_bak_loaded1'), l10n('locfiledit_bak_loaded2')); } // +-----------------------------------------------------------------------+ // | Save file // +-----------------------------------------------------------------------+ if (isset($_POST['submit'])) { check_pwg_token(); if (!is_webmaster()) { array_push($page['errors'], l10n('locfiledit_webmaster_only')); } else { $content_file = stripslashes($_POST['text']); if (get_extension($edited_file) == 'php') { $content_file = eval_syntax($content_file); } if ($content_file === false) { array_push($page['errors'], l10n('locfiledit_syntax_error')); } else { if ($page['tab'] == 'plug' and !is_dir(PHPWG_PLUGINS_PATH . 'PersonalPlugin')) { @mkdir(PHPWG_PLUGINS_PATH . "PersonalPlugin"); } if (file_exists($edited_file)) { @copy($edited_file, get_bak_file($edited_file)); array_push($page['infos'], sprintf(l10n('locfiledit_saved_bak'), substr(get_bak_file($edited_file), 2))); } if ($file = @fopen($edited_file , "w")) { @fwrite($file , $content_file); @fclose($file); array_unshift($page['infos'], l10n('locfiledit_save_config')); $template->delete_compiled_templates(); } else { array_push($page['errors'], l10n('locfiledit_cant_save')); } } } } // +-----------------------------------------------------------------------+ // | template initialization // +-----------------------------------------------------------------------+ $template->set_filenames(array( 'plugin_admin_content' => dirname(__FILE__) . '/template/admin.tpl')); if (!empty($edited_file)) { if (!empty($page['errors'])) { $content_file = stripslashes($_POST['text']); } $template->assign('zone_edit', array( 'EDITED_FILE' => $edited_file, 'CONTENT_FILE' => htmlspecialchars($content_file), 'FILE_NAME' => trim($edited_file, './\\') ) ); if (file_exists(get_bak_file($edited_file))) { $template->assign('restore', true); } if (file_exists($edited_file)) { $template->assign('restore_infos', true); } } $template->assign(array( 'F_ACTION' => PHPWG_ROOT_PATH.'admin.php?page=plugin-LocalFilesEditor-'.$page['tab'], 'LOCALEDIT_PATH' => LOCALEDIT_PATH, 'PWG_TOKEN' => get_pwg_token(), 'CODEMIRROR_MODE' => @$codemirror_mode ) ); $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content'); ?>
Hors ligne
Je vous poste un screen ce sera peut-être plus clair :
http://pix.toile-libre.org/?img=1363285740.png
Soit l'erreur PHP m'empêche de modifier "tab local"
soit je bug quelque part..
Dernière modification par jerem_d (2013-03-14 19:29:15)
Hors ligne
D'accord, effectivement. Je l'ai désactivé en attendant.
Sinon je n'ai plus l'erreur PHP, mais je ne vois pas où est le "tab local" pour modifier le nombre de photos par page. Y aurait-il un screen svp ?
Et je ne sais toujours pas où ajouter/modifier l'astuce de flop25 :
$conf['show_thumbnail_caption'] = false;
Merci pour votre aide en tout cas. :)
Hors ligne
ddtddt a écrit:
1/ Aller dans administrations -> plugins -> gerer
Active [extension by Piwigo Team] LocalFiles Editor
2/ Aller dans administrations -> plugins -> localfile Editor -> tab local
ajouter
<?php
$conf['top_number'] = 15;
$conf['show_thumbnail_caption'] = false;
?>
au même endroit en dessous !
Hors ligne
Hum d'acc je beugais sur "tab local", en fait c'est juste la référence à "local/config/config.inc.php"
Ca marche nickel pour les titres, par contre ça ne fonctionne pas pour la limite de photo. J'ai trouvé une solution qui est de mettre ma limite voulue directement dans le panneau d'utilisateurs, mais si ce sera frustrant de le faire à chaque inscription.
Merci :)
Hors ligne
Changez cette valeur dans les options de l'utilisateur par défaut
Hors ligne
jerem_d a écrit:
par contre ça ne fonctionne pas pour la limite de photo. J'ai trouvé une solution q
Certain thème impose un nombre
tu as mis quoi ?
$conf['top_number'] = 60;
?
Hors ligne
tu peux aussi essayer
[extension by rvelices] RV Thumb Scroller
Hors ligne