forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: michael1984 on April 03, 2007, 08:57:16 am

Title: chance the style of catlist in "classic" theme
Post by: michael1984 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 (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 (http://www.pr-jaeger.de/www/keller-image/02.jpg)

sry for my bad english.

Title: Re: chance the style of catlist in "classic" theme
Post by: Hein Traag 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 (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
Title: Re: chance the style of catlist in "classic" theme
Post by: michael1984 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;
?>

Title: Re: chance the style of catlist in "classic" theme
Post by: Hein Traag 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.
Title: Re: chance the style of catlist in "classic" theme
Post by: michael1984 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;

Title: Re: chance the style of catlist in "classic" theme
Post by: Hein Traag on April 03, 2007, 03:12:11 pm
Probably the thread http://forum.coppermine-gallery.net/index.php?topic=40417.msg203113;topicseen#msg203113 (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.
Title: Re: chance the style of catlist in "classic" theme
Post by: michael1984 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
Title: Re: chance the style of catlist in "classic" theme
Post by: michael1984 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...
Title: Re: chance the style of catlist in "classic" theme
Post by: Joachim Müller 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.
Title: Re: chance the style of catlist in "classic" theme
Post by: michael1984 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!
Title: Re: chance the style of catlist in "classic" theme
Post by: michael1984 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 ?
Title: Re: chance the style of catlist in "classic" theme
Post by: Joachim Müller 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.
Title: Re: chance the style of catlist in "classic" theme
Post by: michael1984 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