coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Dr Preacox on May 31, 2006, 07:37:09 PM

Title: Looking for line.....something!
Post by: Dr Preacox on May 31, 2006, 07:37:09 PM
Hiya i'm looking for a "something" which displays "You have X amount of images in X Albums displayed X amount of times" on the bottom of /catlist/ on the galleries home page.

I have no use for the /catlist/ as I have a LOT of albums :) is there a way I can display this "something" in anycontent.php?

Thank you,

Sam~
Title: Re: Looking for line.....something!
Post by: Gizmo on June 01, 2006, 04:32:08 PM
This is generated by the {STATISTICS} tag. Copy this from the Sample theme.php and paste it into your theme.php. Then edit the line near the bottom that contains the tag to your needs.


// 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;


Cheers,

Gizmo
Title: Re: Looking for line.....something!
Post by: Dr Preacox on June 02, 2006, 03:56:46 PM
I'm not sure if I'm being dumb or you have confused me, I have added it to the theme.php, but I really want to do is make the {statistics} show up in anycontent.php
Title: Re: Looking for line.....something!
Post by: Stramm on June 02, 2006, 04:38:26 PM
here you go
http://forum.coppermine-gallery.net/index.php?topic=28402.msg131618#msg131618
Title: Re: Looking for line.....something!
Post by: Dr Preacox on June 02, 2006, 04:50:35 PM
Thank you very much Stramm, you iz da man
Title: Re: Looking for line.....something!
Post by: Gizmo on June 02, 2006, 10:48:57 PM
Nope... sorry for my misunderstanding. I will have to try this out myself as it looks interesting.

Giz
Title: Re: Looking for line.....something!
Post by: Dr Preacox on June 03, 2006, 06:37:43 AM
Still havn't managed to implement it yet, as it is my 1 year anniversary, so I betta go now, otherwise the misses will lynch me if she finds me on the computer, On topic again, I think this should work well.