coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: BruceS on October 22, 2013, 07:40:53 AM

Title: Category icon for users albums
Post by: BruceS on October 22, 2013, 07:40:53 AM
In my phpBB bridged installation I have users galleries & ONLY recent additions showing on the HOME page.
http://www.ozervnews.com/gallery/
Visitors are having problems finding the Users Galleries.
I wish to include a gif alongside the words to 'catch their eyes'.
Which template etc do I add the code to? I already have the image in "images" folder.
TIA
Title: Re: Category icon for users albums
Post by: Jeff Bailey on October 23, 2013, 09:28:15 PM
Add or modify
in your custom theme.php
/******************************************************************************
** Section <<<$template_cat_list>>> - START
******************************************************************************/
// HTML template for the category list
$template_cat_list = <<<EOT
<!-- BEGIN header -->
        <tr>
                <td class="tableh1" width="80%" align="left">{CATEGORY}</td>
                <td class="tableh1" width="10%" align="center">{ALBUMS}</td>
                <td class="tableh1" width="10%" align="center">{PICTURES}</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">{CAT_TITLE}</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">{CAT_TITLE}</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 tableb_alternate" 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;
/******************************************************************************
** Section <<<$template_cat_list>>> - END
******************************************************************************/

replace {CAT_THUMB} with your image code.
paste before the closing ?>

Untested
Title: Re: Category icon for users albums
Post by: BruceS on October 24, 2013, 01:43:37 AM
Thankyou Jeff.......... will report back on the results in due course!