forum.coppermine-gallery.net
Support => Italian (Italiano) => Closed boards => Language Specific Support => cpg1.4.x Italian (Italiano) => Topic started by: Dany ERM on June 20, 2007, 07:41:18 am
-
grazie mille Lontano...
un'altra cosuccia...è possibile eliminare i contatori anche in home page della gallery?
tipo questi:
37 files, ultimo inserito il Giu 12, 2007
1 albums in 1 pagina(e)
52 files in 2 albums e 2 categorie con 0 commenti, viste 134 volte
-
Per eliminare le statistiche della galleria devi agire manualmente sul file theme.php del tuo tema in uso.
Trova $template_cat_list e rimuovi il codice contenuto fra <!-- BEGIN footer --> e <!-- END footer -->.
Cerca questa stringa di codice nel tuo tema:
<!-- BEGIN footer -->
<tr>
<td colspan="3" class="tableh1" align="center"><span class="statlink"><b>{STATISTICS}</b></span></td>
</tr>
<!-- END footer -->
Se non la trovi (non tutti i temi sono fatti allo stesso modo), copia la seguente stringa di codice all'interno di theme.php
//Moded for removing statistics
// HTML template for the category list
$template_cat_list = <<<EOT
<!-- BEGIN header -->
<tr>
<td class="tableh1" width="80%" align="left"><b>{CATEGORY}</b></td>
<td class="tableh1" width="10%" align="center"><b>{ALBUMS}</b></td>
<td class="tableh1" width="10%" align="center"><b>{PICTURES}</b></td>
</tr>
<!-- END header -->
<!-- BEGIN catrow_noalb -->
<tr>
<td class="catrow_noalb" colspan="3"><table border="0"><tr><td align="left">{CAT_THUMB}</td><td align="left"><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
</tr>
<!-- END catrow_noalb -->
<!-- BEGIN catrow -->
<tr>
<td class="catrow" align="left"><table border="0"><tr><td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
<td class="catrow" align="center">{ALB_COUNT}</td>
<td class="catrow" align="center">{PIC_COUNT}</td>
</tr>
<tr>
<td class="tableb" colspan="3">{CAT_ALBUMS}</td>
</tr>
<!-- END catrow -->
<!-- BEGIN footer -->
<!-- END footer -->
<!-- BEGIN spacer -->
<img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->
EOT;
Se desideri proprio disfarti di tutte le statistiche, comprese quelle degli album, dovrai agire sulle variabili $template_album_list e $template_album_list_cat del tuo tema, cercare la stringa
<p class="album_stat">{ALB_INFOS}</p>
e commentarla o rimuoverla tout-court (più o meno come indicato sopra).
PS. Una sola domanda per thread per cortesia! Ho splittato il messaggio questa volta, la prossima sarà ignorato ed il thread chiuso. Mi raccomando, serve a rendere più semplice la ricerca nel forum per gli utenti (molti problemi/dubbi sono ricorrenti) ed è chiaramente richiesto nel regolamento del forum.
-
chiedo scusa per non aver aperto un nuovo topic... ora penso di aver capito.. ;D
cmq sempre riguardo a questo problema...ho incollato la stringa all'interno di theme.php
che ora è così...
<?php
/*************************
Coppermine Photo Gallery
************************
Copyright (c) 2003-2006 Coppermine Dev Team
v1.1 originally written by Gregory DEMAR
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; either version 2 of the License, or
(at your option) any later version.
********************************************
Coppermine version: 1.4.10
$Source$
$Revision: 3275 $
$Author: gaugau $
$Date: 2006-09-03 12:10:47 +0200 (So, 03 Sep 2006) $
**********************************************/
// ------------------------------------------------------------------------- //
// This theme has all CORE items removed //
// ------------------------------------------------------------------------- //
define('THEME_IS_XHTML10_TRANSITIONAL',1);
//Moded for removing statistics
// HTML template for the category list
$template_cat_list = <<<EOT
<!-- BEGIN header -->
<tr>
<td class="tableh1" width="80%" align="left"><b>{CATEGORY}</b></td>
<td class="tableh1" width="10%" align="center"><b>{ALBUMS}</b></td>
<td class="tableh1" width="10%" align="center"><b>{PICTURES}</b></td>
</tr>
<!-- END header -->
<!-- BEGIN catrow_noalb -->
<tr>
<td class="catrow_noalb" colspan="3"><table border="0"><tr><td align="left">{CAT_THUMB}</td><td align="left"><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
</tr>
<!-- END catrow_noalb -->
<!-- BEGIN catrow -->
<tr>
<td class="catrow" align="left"><table border="0"><tr><td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
<td class="catrow" align="center">{ALB_COUNT}</td>
<td class="catrow" align="center">{PIC_COUNT}</td>
</tr>
<tr>
<td class="tableb" colspan="3">{CAT_ALBUMS}</td>
</tr>
<!-- END catrow -->
<!-- BEGIN footer -->
<!-- END footer -->
<!-- BEGIN spacer -->
<img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->
EOT;
?>
ma purtroppo le statistiche non sono state eliminate...
-
penso di aver capito anche il discorso della stringa....tu mi hai dato la completa...e ci sono le parti da eliminare!! adesso mi ci metto dietro!
grazie mille... ;D
-
niente...sono riuscito a eliminare solo alcune statistiche! mi rimangono queste:
37 files, ultimo inserito il Giu 12, 2007
1 albums in 1 pagina(e)
in home
e queste negli album...
37 files su 4 pagina(e)
non ho trovato queste stringhe:
$template_album_list e $template_album_list_cat
-
non ho trovato queste stringhe:
$template_album_list e $template_album_list_cat
Il procedimento da effettuare è lo stesso indicato sopra, basta solo cambiare le variabili. Aggiungi la stringa completa, rimuovi la parte che non t'interessa/non vuoi; cosi' per ogni variabile statistica che vuoi far sparire.
Per comprendere meglio il funzionamento dei file theme.php di ciascun tema, prova a comparare quello del tema "classic" e quello del tuo tema in uso.
-
forse sono un pò rinco... ;D
allora io ho fatto così adesso:
<?php
/*************************
Coppermine Photo Gallery
************************
Copyright (c) 2003-2006 Coppermine Dev Team
v1.1 originally written by Gregory DEMAR
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; either version 2 of the License, or
(at your option) any later version.
********************************************
Coppermine version: 1.4.10
$Source$
$Revision: 3275 $
$Author: gaugau $
$Date: 2006-09-03 12:10:47 +0200 (So, 03 Sep 2006) $
**********************************************/
// ------------------------------------------------------------------------- //
// This theme has all CORE items removed //
// ------------------------------------------------------------------------- //
define('THEME_IS_XHTML10_TRANSITIONAL',1);
//Moded for removing statistics
// HTML template for the category list
$template_cat_list = <<<EOT
<!-- BEGIN header -->
<tr>
<td class="tableh1" width="100%" align="left"><b>{CATEGORY}</b></td>
</tr>
<!-- END header -->
<!-- BEGIN catrow_noalb -->
<tr>
<td class="catrow_noalb" colspan="3"><table border="0"><tr><td align="left">{CAT_THUMB}</td><td align="left"><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
</tr>
<!-- END catrow_noalb -->
<!-- BEGIN catrow -->
<tr>
<td class="catrow" align="left"><table border="0"><tr><td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
</tr>
<tr>
<td class="tableb" colspan="3">{CAT_ALBUMS}</td>
</tr>
<!-- END catrow -->
<!-- BEGIN footer -->
<!-- END footer -->
<!-- BEGIN spacer -->
<img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->
EOT;
//Moded for removing statistics
// HTML template for the category list
$template_album_list = <<<EOT
<!-- BEGIN header -->
<tr>
<td class="tableh1" width="80%" align="left"><b>{CATEGORY}</b></td>
<td class="tableh1" width="10%" align="center"><b>{ALBUMS}</b></td>
<td class="tableh1" width="10%" align="center"><b>{PICTURES}</b></td>
</tr>
<!-- END header -->
<!-- BEGIN catrow_noalb -->
<tr>
<td class="catrow_noalb" colspan="3"><table border="0"><tr><td align="left">{CAT_THUMB}</td><td align="left"><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
</tr>
<!-- END catrow_noalb -->
<!-- BEGIN catrow -->
<tr>
<td class="catrow" align="left"><table border="0"><tr><td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
<td class="catrow" align="center"></td>
<td class="catrow" align="center"></td>
</tr>
<!-- END catrow -->
<!-- BEGIN footer -->
<!-- END footer -->
<!-- BEGIN spacer -->
<img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->
EOT;
?>
ma non cambia niente
inoltre ho guardato il theme.php del tema classic....ma è così:
<?php
/*************************
Coppermine Photo Gallery
************************
Copyright (c) 2003-2006 Coppermine Dev Team
v1.1 originally written by Gregory DEMAR
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; either version 2 of the License, or
(at your option) any later version.
********************************************
Coppermine version: 1.4.10
$Source$
$Revision: 3275 $
$Author: gaugau $
$Date: 2006-09-03 12:10:47 +0200 (So, 03 Sep 2006) $
**********************************************/
// ------------------------------------------------------------------------- //
// This theme has all CORE items removed //
// ------------------------------------------------------------------------- //
define('THEME_IS_XHTML10_TRANSITIONAL',1);
?>
-
Scusa, ho scritto troppo veloce senza rileggere... intendevo guarda il file theme.php dalla cartella /themes/sample e confrontalo con il tuo.
Ad ogni modo, per levare ogni traccia di statistiche, dovrai anche editare il tuo file di lingua (italian.php dalla cartella /lang); cerca la stringa
$lang_album_list = array(
'album_on_page' => '%d albums on %d page(s)',
);
e cambiala in
$lang_album_list = array(
'album_on_page' => '',
);