Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: [Solved]: Category background color  (Read 3445 times)

0 Members and 1 Guest are viewing this topic.

ArturO

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
[Solved]: Category background color
« 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
« Last Edit: August 12, 2004, 05:48:52 am by GauGau »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Category background color
« Reply #1 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 -->
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

ArturO

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Category background color
« Reply #2 on: August 11, 2004, 11:51:49 pm »

Thank you very much this really WORKS.
That's what i call support :D
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.