dropping unnecessary info dropping unnecessary info
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

dropping unnecessary info

Started by PdLrAaTgIoNnUM, August 22, 2006, 11:17:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PdLrAaTgIoNnUM

i have a cpg base site at www.omerzohar.com
i have have a modified theme to suit it for a portfolio than a photo gallery. i have do so far, but what i couldnt figure out how to do is how (if it is possilble) to get rid of all the summeries such as how the number of album and pictures on the side, and the "7 albums on 1 page(s)" at the end of each category.
can anybody help me?

Gizmo

These are the {STATISTICS}, {ALB_COUNT} and {PIC_COUNT} tags and found in the $template_cat_list. If this code isn't in your theme.php, copy this code from the sample=>theme.php and paste it in:

// 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"><b>{STATISTICS}</b></span></td>
        </tr>
<!-- END footer -->
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->

EOT;


Edit or remove the lines with the above tags to suit your taste.
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

PdLrAaTgIoNnUM

10x a lot! i managed to take off the statistics and the album count
but im still stuck with the summery at the end of each album (7 albums on 1 page(s)). i assume it's not on the $template_cat_list. where can it be?

Gizmo

No, this isn't as simple. It's part of the {TAB} variable and appears in several functions and to remove this would require some surgery.
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

PdLrAaTgIoNnUM

No actually i found the {tab} in the $template_cat_list and deleted it, and it solved the problem for the main page. i did the same to the $template_album_list and it took care of all the other sub categories. problem solved!

10x for all your help!  :)

Gizmo

OK, glad to see that removing the {TABS} variable worked for you but maybe I should comment for others who may read this. You are talking about the info on the album page that you get when you click on a catrgory on the main page. I was thinking of the info on the thumbnail page that you get when you click on an album. In your case, I can see on your thumbnail pages that you have set a large number of columns and rows in the configuration (Config => Thumbnail view => Number of columns on thumbnail page & Number of rows on thumbnail page). With the default being 4 & 3 respectively, if someone who has 30 pictures in an album and hasn't changed the default values then removing the {TABS} variable in the $template_thumbnail_view, you will not only remove the info at the bottom but also the tabs to go to the next pages that you see on the bottom right. So all you'll be able to see are the first 12 pictures and not the other 18.

I checked this and it seemed to be a bit complicated to remove the info on the bottom left without losing the additional page tabs in the $template_thumbnail_view. However if I'm wrong, hopefully a Dev will say so. Best we don't have bad info lingering around the forum.
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision