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: CPG 1.5.34 Update Index Appearance  (Read 3382 times)

0 Members and 1 Guest are viewing this topic.

nowordneeded

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 224
CPG 1.5.34 Update Index Appearance
« on: November 25, 2014, 05:23:29 am »

The Gallery I'm seeking help with is here: http://joncypher.org/gallery and it has been updated to the latest CPG stable version of 1.5.34.

The issue I'm having is that I don't like the look of the index page. I have a screencap of what I'm talking about. In the screencap I have what the gallery looked like on the bottom graphic, then after the update. What I don't want is the album/files count on the index and the catrow_noalb to be like it was when I first colour coded my gallery. Is there a way to revert back to the original catrow_noalb look. I don't like the new look with the new update of 1.5.34. Thanks in advance.

NWN
Logged
Sometimes my musings are too confusing for someone not inside my head.

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: CPG 1.5.34 Update Index Appearance
« Reply #1 on: November 30, 2014, 03:01:28 pm »

Looks like you solved it. You should say how you solved it and click topic solved at the bottom of the thread (forum rules).
Logged

nowordneeded

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 224
Re: CPG 1.5.34 Update Index Appearance
« Reply #2 on: November 30, 2014, 06:44:54 pm »

I didn't solve it. I dropped in the index file from an earlier version of CPG because the forum was taking a long time to reply. The problem still isn't solved as the index file for CPG 1.5.36 still the same way as the attachment. So the problem is not solved.

 
Logged
Sometimes my musings are too confusing for someone not inside my head.

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: CPG 1.5.34 Update Index Appearance
« Reply #3 on: December 01, 2014, 12:07:31 am »

I looked with firefox inspector and for some reason in your old index the empty category has the same class as the category with files: .catrow_noalb. Maybe you have function $template_cat_list in themes/your_theme/theme.php and you edit it. You can find the original function in themes/sample/theme.php or maybe you edit the function $template_cat_list in include/themes.inc.php in your previous coppermine (the upgrgade replace it with the new themes.inc.php). You should never edit themes.inc.php. You can find all the functions in themes/sample/theme.php. Just copy in themes/your_theme/theme.php only the functions you need to edit.

Or maybe your old index.php has .catrow_noalb class for all categories (empty and with files).

With the new index the empty category has class .catrow_noalb and the category with files has class .catrow. This is how it should be in cpg 1.5 .

Solution: in your style.css you have:

Code: [Select]
.catrow_noalb {
        background: #727070 ;
        color : #c3c3c3;
-moz-border-radius:  5px;
border-radius: 5px;
-webkit-border-radius: 5px;

-webkit-transition: all 0.2s ease-in;
-moz-transition: all 0.2s ease-in;
-o-transition: all 0.2s ease-in;
        padding-top: 3px;
        padding-right: 10px;
        padding-bottom: 3px;
        padding-left: 10px;
border-bottom: 1px solid #1a1a1a;
}

.catrow {
        background: #252525 ;
        padding-top: 3px;
        padding-right: 10px;
        padding-bottom: 3px;
        padding-left: 10px;
-moz-border-radius:  5px;
border-bottom: 1px solid #1a1a1a;
border-radius: 5px;
-webkit-border-radius: 5px;

-webkit-transition: all 0.2s ease-in;
-moz-transition: all 0.2s ease-in;
-o-transition: all 0.2s ease-in;
border-bottom: 1px solid #1a1a1a;
}

In class .catrow change background: #252525 ;  with :

Code: [Select]
        background: #727070 ;
        color : #c3c3c3;

If you don't want the files and album count read this thread to learn how to edit $template_cat_list function:

http://forum.coppermine-gallery.net/index.php/topic,77917.0.html
« Last Edit: December 01, 2014, 12:29:25 am by allvip »
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: CPG 1.5.34 Update Index Appearance
« Reply #4 on: December 26, 2014, 10:19:24 pm »

Actually, the old behavior was a bug that has been fixed a while ago:
Code: (CHANGELOG.txt) [Select]
2014-01-23 [B] Fixed album and file count if category contains currently not displayed sub-categories (thread ID 60827 & 76914) {eenemeenemuu}
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.