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: chance the style of catlist in "classic" theme  (Read 9591 times)

0 Members and 1 Guest are viewing this topic.

michael1984

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
chance the style of catlist in "classic" theme
« on: April 03, 2007, 08:57:16 am »

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.

Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: chance the style of catlist in "classic" theme
« Reply #1 on: April 03, 2007, 11:59:12 am »

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
Logged

michael1984

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: chance the style of catlist in "classic" theme
« Reply #2 on: April 03, 2007, 12:16:25 pm »

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

Code: [Select]
<?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;
?>

Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: chance the style of catlist in "classic" theme
« Reply #3 on: April 03, 2007, 01:11:33 pm »

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.

Code: [Select]
// 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.
Logged

michael1984

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: chance the style of catlist in "classic" theme
« Reply #4 on: April 03, 2007, 02:26:40 pm »

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  :-\ ??? :'(

Code: [Select]
// 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;

Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: chance the style of catlist in "classic" theme
« Reply #5 on: April 03, 2007, 03:12:11 pm »

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

michael1984

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: chance the style of catlist in "classic" theme
« Reply #6 on: April 03, 2007, 04:15:56 pm »

mh key,.. nothing is workin now...
i'll give you thwe adress for my gallery:

http://www.pr-jaeger.de/www/keller-image/index.php
Logged

michael1984

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: chance the style of catlist in "classic" theme
« Reply #7 on: April 03, 2007, 10:35:55 pm »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: chance the style of catlist in "classic" theme
« Reply #8 on: April 04, 2007, 07:55:42 am »

i can post new code if necessary...
Go ahead, zip your entire custom theme folder and attach it to this thread.
Logged

michael1984

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: chance the style of catlist in "classic" theme
« Reply #9 on: April 04, 2007, 08:40:00 am »

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

michael1984

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: chance the style of catlist in "classic" theme
« Reply #10 on: April 04, 2007, 05:34:53 pm »

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 ?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: chance the style of catlist in "classic" theme
« Reply #11 on: April 04, 2007, 08:12:58 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.
Logged

michael1984

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: chance the style of catlist in "classic" theme
« Reply #12 on: April 05, 2007, 08:43:59 am »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.