forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: ArturO on August 11, 2004, 03:57:03 pm

Title: [Solved]: Category background color
Post by: ArturO on August 11, 2004, 03:57:03 pm
I'm trying to change the background color of the Category-table.
I used the styleguide to find out where i have to adjust changes in the css file to reflect my choices.
But all i found is the table tableb in the styleguide http://coppermine.sourceforge.net/demo/index.php?highlight=tableb
But this is not what im looking for.
I want not the whole thing to be one color.
I want only the table with the Name and Description to be different from the other background color.
maybe the beackground/text-color of the numbers of ALBUMS and FILES could be changed too.
It is very hard for users to divide between the different albums of the different categories.

I added a edited screenshot to facilitate understanding of my problem:
I only want the Blue Area to be different from the rest:
Thankful : ArturO
Title: Re: Category background color
Post by: Casper on August 11, 2004, 04:18:45 pm
Ok, try this,

Open your theme/style.css, and find;

Code: [Select]
.tableb {
        background: #EFEFEF ;
        padding-top: 3px;
        padding-right: 10px;
        padding-bottom: 3px;
        padding-left: 10px;
}

Now create a copy of this, then edit it to call it tableb1, and change the colour code to that you want.  Paste it immediately under the other code.

Now open your theme theme.php, and find;

Code: [Select]
<!-- BEGIN catrow_noalb -->
        <tr>
                <td class="tableb" colspan="3"><table border="0" ><tr><td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
        </tr>
<!-- END catrow_noalb -->
<!-- BEGIN catrow -->
        <tr>
                <td class="tableb"><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="tableb" align="center">{ALB_COUNT}</td>
                <td class="tableb" align="center">{PIC_COUNT}</td>
        </tr>
     <!--if (isset(CAT_ALBUMS)){-->
          <tr>
            <td class="tableb" colspan=3>{CAT_ALBUMS}</td>
      </tr><!--};-->
<!-- END catrow -->


Now change that to this;

Code: [Select]
<!-- BEGIN catrow_noalb -->
        <tr>
                <td class="tableb1" colspan="3"><table border="0" ><tr><td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
        </tr>
<!-- END catrow_noalb -->
<!-- BEGIN catrow -->
        <tr>
                <td class="tableb1"><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="tableb1" align="center">{ALB_COUNT}</td>
                <td class="tableb1" align="center">{PIC_COUNT}</td>
        </tr>
     <!--if (isset(CAT_ALBUMS)){-->
          <tr>
            <td class="tableb" colspan=3>{CAT_ALBUMS}</td>
      </tr><!--};-->
<!-- END catrow -->
Title: Re: Category background color
Post by: ArturO on August 11, 2004, 11:51:49 pm
Thank you very much this really WORKS.
That's what i call support :D