Mod per togliere nelle categorie le scritte Albums e Files e totali immagini Mod per togliere nelle categorie le scritte Albums e Files e totali immagini
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Mod per togliere nelle categorie le scritte Albums e Files e totali immagini

Started by BIIPmoni, June 21, 2010, 02:09:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BIIPmoni

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
Un homme qui n'est plus capable de s'émerveiller a pratiquement cessé de vivre. Einstein
<> Vivre à Lanslevillard c'est toujours s'émerveiller <>

Ludo


BIIPmoni

Quote from: Ludo on June 21, 2010, 11:24:24 AM
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
Un homme qui n'est plus capable de s'émerveiller a pratiquement cessé de vivre. Einstein
<> Vivre à Lanslevillard c'est toujours s'émerveiller <>