chance the style of catlist in "classic" theme chance the style of catlist in "classic" theme
 

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

Main Menu

chance the style of catlist in "classic" theme

Started by michael1984, April 03, 2007, 08:57:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

michael1984

hi all,

i want to change the style of my category list in my gallery,... i use classic theme.
first, i don't want the "album" and "files" row in my template and then the categorys should be
shown in 2 columns with its albums small under, and no thumbnail.

It looks like  this now:

http://www.pr-jaeger.de/www/keller-image/01.jpg

and i want is something likee this:

http://www.pr-jaeger.de/www/keller-image/02.jpg

sry for my bad english.


Hein Traag

Using the Search function got me this thread: http://forum.coppermine-gallery.net/index.php?topic=30308.0

Which describes what to do if you want to get rid of the category - album - files bar or parts of it.
Read that thread and see if you can get it to work the way you want to.

Hein

michael1984

mh no,.. this doesn't work. 
whatever i am changing in this new code has no efect in my site.
But thanks.


I'll post my theme php: (without the new code) only my admin menu changed,..

<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2006 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.10
  $Source$
  $Revision: 3275 $
  $Author: gaugau $
  $Date: 2006-09-03 12:10:47 +0200 (So, 03 Sep 2006) $
**********************************************/

// ------------------------------------------------------------------------- //
// This theme has all CORE items removed                                     //
// ------------------------------------------------------------------------- //
define('THEME_IS_XHTML10_TRANSITIONAL',1);
// HTML template for gallery admin menu
$template_gallery_admin_menu = <<<EOT
                                <ul>
<!-- BEGIN admin_approval -->
                            <li id="admin_menu_anim"><a href="editpics.php?mode=upload_approval" title="{UPL_APP_TITLE}" class="navmenu">{UPL_APP_LNK}</a></li>
<!-- END admin_approval -->
                            <li class="sidebar_menu"><a href="admin.php" title="{ADMIN_TITLE}">{ADMIN_LNK}</a></li>
                            <li class="sidebar_menu"><a href="catmgr.php" title="{CATEGORIES_TITLE}">{CATEGORIES_LNK}</a></li>
                            <li class="sidebar_menu"><a href="albmgr.php{CATL}" title="{ALBUMS_TITLE}">{ALBUMS_LNK}</a></li>
                            <li class="sidebar_menu"><a href="groupmgr.php" title="{GROUPS_TITLE}">{GROUPS_LNK}</a></li>
                            <li class="sidebar_menu"><a href="usermgr.php" title="{USERS_TITLE}">{USERS_LNK}</a></li>
                            <li class="sidebar_menu"><a href="banning.php" title="{BAN_TITLE}">{BAN_LNK}</a></li>
                            <li class="sidebar_menu"><a href="reviewcom.php" title="{COMMENTS_TITLE}">{COMMENTS_LNK}</a></li>
<!-- BEGIN log_ecards -->
                            <li class="sidebar_menu"><a href="db_ecard.php" title="{DB_ECARD_TITLE}">{DB_ECARD_LNK}</a></li>
<!-- END log_ecards -->
                            <li class="sidebar_menu"><a href="picmgr.php" title="{PICTURES_TITLE}">{PICTURES_LNK}</a></li>
                            <li class="sidebar_menu"><a href="searchnew.php" title="{SEARCHNEW_TITLE}">{SEARCHNEW_LNK}</a></li>
                            <li class="sidebar_menu"><a href="util.php" title="{UTIL_TITLE}">{UTIL_LNK}</a></li>

                                  </ul>
                                </li>

EOT;
?>



Hein Traag

Open your theme.php. Search for a code block beginning with // HTML template for the category list
If it is not there copy the code from the sample theme folder theme.php and paste it before the ?> at the bottom of your theme.php file.
Comment out what is not needed in your cpg. In the below code i commented out the part that displays the album and pictures count table names so only the word category is displayed.

// HTML template for the category list
$template_cat_list = <<<EOT
BEGIN header
        <tr>
                <td class="tableh1" width="80%" align="left"><b>{CATEGORY}</b></td>
                <!--<td class="tableh1" width="10%" align="center"><b>{ALBUMS}</b></td>-->
                <!--<td class="tableh1" width="10%" align="center"><b>{PICTURES}</b></td>-->
        </tr>
END header


The rest of the code block stays the same.

michael1984

i made this,.. but i used a code from a user here which is similar,.. but now i cannot see my alblist any more..
its activated in my config in the backend.... here my new code,.. cannot find out where the alblist is now  :-\ ??? :'(

// HTML template for the category list
$template_cat_list = <<<EOT
<!-- BEGIN header -->
        <tr>
                <td class="tableh1" align="left"><b>{CATEGORY}</b></td>
</tr>
<tr>
<td>
        <div class="categories">
<!-- END header -->
<!-- BEGIN catrow_noalb -->
        <div class="catcell">
            <br /><span class="catlink">{CAT_TITLE}</span><br />{CAT_DESC}<br />
        </div>
<!-- END catrow_noalb -->
<!-- BEGIN catrow -->
        <div class="catcell">
                <br /><span class="catlink">{CAT_TITLE}&nbsp;({PIC_COUNT})</span><br /><span class="thumb_caption">{CAT_DESC}<br /></span>
        </div>
<!-- END catrow -->
<!-- BEGIN footer -->
</div>
</td>
</tr>
        <tr>
                <td colspan="3" class="tableh1" align="center"><span class="statlink"></span></td>
        </tr>
<!-- END footer -->
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->

EOT;


Hein Traag

Probably the thread http://forum.coppermine-gallery.net/index.php?topic=40417.msg203113;topicseen#msg203113

Both threads deal with catlist and alblist. I suggest you drop this one and continue with the other one. This thread only gets you the answer on how to get rid of the album and picture mentioning.

michael1984


michael1984

 :'( nothing,... cannot integrate these albums under the categories.
nobody any idea ? i can post new code if necessary...

Joachim Müller

Quote from: michael1984 on April 03, 2007, 10:35:55 PM
i can post new code if necessary...
Go ahead, zip your entire custom theme folder and attach it to this thread.

michael1984

okey here is my complete theme:
i made a .zip , beause i'm not sure if i can attach .rar!

michael1984

nobody mh ?
3 days now,.. and it seems to be a never ending story.
My alblist is missing.
The only thing i want to do is, to integrate my alblist with small alblinks under echt category.
Category shoud be 2 columns.

Nobody has any idea ?

Joachim Müller

Quote from: michael1984 on April 04, 2007, 05:34:53 PM
nobody mh ?
3 days now,.. and it seems to be a never ending story.
Your previous posting was made less than 12 hours ago. This is not a hotline, but a free support board. You haven't paid anything. I have a real life, I'm not your slave. I'm not willing to look into this any longer, as I don't like being pushed.

Thread is open.

michael1984

Quote from: GauGau on April 04, 2007, 08:12:58 PM
Your previous posting was made less than 12 hours ago. This is not a hotline, but a free support board. You haven't paid anything. I have a real life, I'm not your slave. I'm not willing to look into this any longer, as I don't like being pushed.

Thread is open.
i've never said anything like this.
I'm just saying that it seems to be a never ending story,..
there is no allusion to you or that u have to help me.
i'm just asking for some help.
Anyway, if anybody could help me,... even in 10 Days ! ,.. it would be nice