Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Eliminare statistiche galleria  (Read 6887 times)

0 Members and 1 Guest are viewing this topic.

Dany ERM

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Eliminare statistiche galleria
« 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
« Last Edit: June 29, 2007, 10:55:10 pm by Lontano »
Logged

Davide Renda

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1427
  • aka "Lontano"
    • www.daviderenda.eu
Re: Eliminare statistiche galleria
« Reply #1 on: June 20, 2007, 09:25:29 am »

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:
Code: [Select]
<!-- 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

Code: [Select]
//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
Code: [Select]
<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.

Dany ERM

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: Eliminare statistiche galleria
« Reply #2 on: June 20, 2007, 09:56:03 am »

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ì...
Code: [Select]
<?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...
Logged

Dany ERM

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: Eliminare statistiche galleria
« Reply #3 on: June 20, 2007, 10:03:23 am »

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
Logged

Dany ERM

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: Eliminare statistiche galleria
« Reply #4 on: June 20, 2007, 10:22:40 am »

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
Logged

Davide Renda

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1427
  • aka "Lontano"
    • www.daviderenda.eu
Re: Eliminare statistiche galleria
« Reply #5 on: June 20, 2007, 10:42:21 am »

Quote
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.

Dany ERM

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: Eliminare statistiche galleria
« Reply #6 on: June 20, 2007, 11:54:59 am »

forse sono un pò rinco... ;D

allora io ho fatto così adesso:

Code: [Select]
<?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ì:

Code: [Select]
<?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);

?>
Logged

Davide Renda

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1427
  • aka "Lontano"
    • www.daviderenda.eu
Re: Eliminare statistiche galleria
« Reply #7 on: June 20, 2007, 10:41:39 pm »

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
Code: [Select]
$lang_album_list = array(

  'album_on_page' => '%d albums on %d page(s)',

);
e cambiala in
Code: [Select]
$lang_album_list = array(

  'album_on_page' => '',

);
Pages: [1]   Go Up
 

Page created in 0.031 seconds with 18 queries.