Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Need Help with theme.php and stats area  (Read 2093 times)

0 Members and 1 Guest are viewing this topic.

jlove

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 41
Need Help with theme.php and stats area
« on: October 19, 2007, 01:38:33 am »

If you look at the attached image, you'll understand.

I want to add text in the stats area on the main page with gallery info from other galleries. Just a generic message like, 1000+ Files at Gallery 2 bellow "12145 files in 210 albums and 76 categories with 2 comments viewed 24782 times"


I've gone through the sample theme's theme.php, but I just can't figure out how to do it.
« Last Edit: October 22, 2007, 06:48:10 pm by Frantz »
Logged

jlove

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 41
Re: Need Help with theme.php and stats area
« Reply #1 on: October 19, 2007, 01:40:38 am »

Oy, can't edit sorry.


I also searched the forum and went through tons of threads, but nothing.

I want this because I moved a lot of my pictures into 2 other galleries and re-built the first one, so I want to have a little note saying what's what.
Logged

jlove

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 41
Re: Need Help with theme.php and stats area
« Reply #2 on: October 22, 2007, 06:45:12 pm »

Resolved.


Code: [Select]

// 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;
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 15 queries.