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: How to remove the number of file show on the Album page?  (Read 2632 times)

0 Members and 1 Guest are viewing this topic.

vickysuen

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
How to remove the number of file show on the Album page?
« on: October 20, 2007, 09:14:24 pm »

I have attached the picture for easy reference.
I don't want to show the number of file for the album, how can i remove it?
I'm using igames theme.
thanks
« Last Edit: October 22, 2007, 01:19:50 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to remove the number of file show on the Album page?
« Reply #1 on: October 21, 2007, 11:45:46 am »

Edit themes/yourtheme/theme.php, find
Code: [Select]
$template_album_listand edit as suggested below. If your custom theme doesn't contain that piece of code, copy
Code: [Select]
// HTML template for the album list
$template_album_list = <<<EOT

<!-- BEGIN stat_row -->
        <tr>
                <td colspan="{COLUMNS}" class="tableh1" align="center"><span class="statlink">{STATISTICS}</span></td>
        </tr>
<!-- END stat_row -->
<!-- BEGIN header -->
        <tr class="tableb_compact">
<!-- END header -->
<!-- BEGIN album_cell -->
        <td width="{COL_WIDTH}%" valign="top">
        <table width="100%" cellspacing="0" cellpadding="0">
        <tr>
                <td colspan="3" height="1" align="left" valign="top" class="tableh2">
                        <span class="alblink"><a href="{ALB_LINK_TGT}"><b>{ALBUM_TITLE}</b></a></span>
                </td>
        </tr>
        <tr>
                <td colspan="3">
                        <img src="images/spacer.gif" width="1" height="1" border="0" alt="" /><br />
                </td>
        </tr>
        <tr>
                <td align="center" valign="middle" class="thumbnails">
                        <img src="images/spacer.gif" width="{THUMB_CELL_WIDTH}" height="1" class="image" style="margin-top: 0px; margin-bottom: 0px; border: none;" alt="" /><br />
                        <a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>
                </td>
                <td>
                        <img src="images/spacer.gif" width="1" height="1" border="0" alt="" />
                </td>
                <td width="100%" valign="top" align="left" class="tableb_compact">
                        {ADMIN_MENU}
                        <p>{ALB_DESC}</p>
                        <p class="album_stat">{ALB_INFOS}</p>
                </td>
        </tr>
        </table>
        </td>
<!-- END album_cell -->
<!-- BEGIN empty_cell -->
        <td width="{COL_WIDTH}%" valign="top">
        <table width="100%" cellspacing="0" cellpadding="0">
        <tr>
                <td height="1" valign="top" class="tableh2">
                        <b>&nbsp;</b>
                </td>
        </tr>
        <tr>
                <td>
                        <img src="images/spacer.gif" width="1" height="1" border="0" alt="" /><br />
                </td>
        </tr>
        <tr>
                <td width="100%" valign="top" class="tableb_compact">
                    <div class="thumbnails" style="background-color:transparent"><img src="images/spacer.gif" width="1" height="{SPACER}" border="0" class="image" style="border:0;margin-top:1px;margin-bottom:0" alt="" /></div>
                </td>
        </tr>
        </table>
        </td>
<!-- END empty_cell -->
<!-- BEGIN row_separator -->
        </tr>
        <tr class="tableb_compact">
<!-- END row_separator -->
<!-- BEGIN footer -->
        </tr>
<!-- END footer -->
<!-- BEGIN tabs -->
        <tr>
                <td colspan="{COLUMNS}" style="padding: 0px;">
                        <table width="100%" cellspacing="0" cellpadding="0">
                                <tr>
                                       {TABS}
                                </tr>
                        </table>
                </td>
        </tr>
<!-- END tabs -->
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->

EOT;
from themes/sample/theme.php into a new line before
Code: [Select]
?>into the file themes/yourtheme/theme.php




To get rid of the album statistics as you want, edit the above mentioned code bloack (the stuff you pasted into your custom theme if it didn't reside there already), find
Code: [Select]
<p class="album_stat">{ALB_INFOS}</p>and comment it out by replacing with
Code: [Select]
<!--<p class="album_stat">{ALB_INFOS}</p>-->or delete that line.
Save your changes, re-upload the file to your server (make sure to overwrite the file that exists on your server) and you should be done.

As adviced in the other thread: it's nearly mandatory to always post a link to your gallery in every new thread you start. Please do so in the future. I'm also pretty sure that this has been asked (and answered) before already, so you should have searched and browsed the board before asking your questions.
Logged

vickysuen

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: How to remove the number of file show on the Album page?
« Reply #2 on: October 22, 2007, 01:04:54 pm »

Thanks~it work great~~~thank for your support~ ;)
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.