CPG 1.5.34 Update Index Appearance CPG 1.5.34 Update Index Appearance
 

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]

Main Menu

CPG 1.5.34 Update Index Appearance

Started by nowordneeded, November 25, 2014, 05:23:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nowordneeded

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
Sometimes my musings are too confusing for someone not inside my head.

allvip

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

nowordneeded

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.

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

allvip

#3
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:


.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 :


        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

ΑndrĂ©

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}