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: Mod per togliere nelle categorie le scritte Albums e Files e totali immagini  (Read 4470 times)

0 Members and 1 Guest are viewing this topic.

BIIPmoni

  • Coppermine frequent poster
  • ***
  • Country: fr
  • Offline Offline
  • Gender: Female
  • Posts: 100

Ciao :)
Posto questo mod del moderatore del forum francese François Keller, che magari può essere utile anche ad altri .

Merci beaucoup pour l’aide François ! :)

Come da titolo del topic, se volete che non appaiano nelle categorie le scritte Albums e Files e i relativi totali (dei primi e delle immagini), (nel mio tema era in alto a destra) , fate cosi :
nel file theme.php del vostro tema cercate :

Quote
// 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 -->
        <tr>
               <!-- <td colspan="3" class="tableh1" align="center"><span class="statlink">{STATISTICS}</span></td>-->
        </tr>
<!-- END footer -->
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->

EOT;


E rimpiazzate con questo :

Quote
// 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 -->
        <tr>
               <!-- <td colspan="3" class="tableh1" align="center"><span class="statlink">{STATISTICS}</span></td>-->
        </tr>
<!-- END footer -->
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->

EOT;


Sempre in questo file cercate i due seguenti codici e cancellateli :

Quote
<td class="tableh1" width="10%" align="center"><b>{ALBUMS}</b></td>
                <td class="tableh1" width="10%" align="center"><b>{PICTURES}</b></td>


Quote
<!-- <td class="tableh1" width="10%" align="center"><b>{ALBUMS}</b></td>
                <td class="tableh1" width="10%" align="center"><b>{PICTURES}</b></td> -->

finito :)

qua un esempio nella mia gallery :
http://www.photolandimagebank.net/gallery/index.php?cat=8

e qua il topic originario dal forum francese :
http://forum.coppermine-gallery.net/index.php?topic=65596.new;topicseen#new
Logged
Un homme qui n'est plus capable de s'émerveiller a pratiquement cessé de vivre. Einstein
<> Vivre à Lanslevillard c'est toujours s'émerveiller <>

Ludo

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 706
    • E+GiElle

C'era, allora ;)
Logged

BIIPmoni

  • Coppermine frequent poster
  • ***
  • Country: fr
  • Offline Offline
  • Gender: Female
  • Posts: 100

C'era, allora ;)

lol non lo so perchè Francois me lo ha corretto dal mio tema, ah già ecco, per chi ha temi diversi non sarà identico, ma penso che il concetto sia uguale, che trovino intendo cosa cambiare :)

beh però le due stringhe da cancellare sono tutta farina del mio sacco oh ! Lol  ;D
Logged
Un homme qui n'est plus capable de s'émerveiller a pratiquement cessé de vivre. Einstein
<> Vivre à Lanslevillard c'est toujours s'émerveiller <>
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 18 queries.