coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: nowordneeded on November 25, 2014, 05:23:29 AM

Title: CPG 1.5.34 Update Index Appearance
Post by: nowordneeded 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
Title: Re: CPG 1.5.34 Update Index Appearance
Post by: allvip 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).
Title: Re: CPG 1.5.34 Update Index Appearance
Post by: nowordneeded 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.

Title: Re: CPG 1.5.34 Update Index Appearance
Post by: allvip 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:


.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 (http://forum.coppermine-gallery.net/index.php/topic,77917.0.html)
Title: Re: CPG 1.5.34 Update Index Appearance
Post by: ΑndrĂ© 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}