Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Categories are indented.  (Read 4532 times)

0 Members and 1 Guest are viewing this topic.

jharris634

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Categories are indented.
« on: August 02, 2013, 05:02:14 pm »

This is something that is really annoying me. As you can see the category names are moved to the right.

http://fansfordanneel.com/gallery/index.php

When you click into the categories to view albums, the same thing is happening in some

http://fansfordanneel.com/gallery/index.php?cat=5

Any ideas in how to change it? I'm still a newbie so not too much technically talk  ;)
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Categories are indented.
« Reply #1 on: August 02, 2013, 09:33:35 pm »

In your themes theme.php if it does not already exist add
Code: [Select]
/******************************************************************************
** Section <<<$template_cat_list>>> - START
******************************************************************************/
// HTML template for the category list
$template_cat_list = <<<EOT
<!-- BEGIN header -->
        <tr>
                <td class="tableh1" width="80%" align="left">{CATEGORY}</td>
                <td class="tableh1" width="10%" align="center">{ALBUMS}</td>
                <td class="tableh1" width="10%" align="center">{PICTURES}</td>
        </tr>
<!-- END header -->
<!-- BEGIN catrow_noalb -->
        <tr>
                <td class="catrow_noalb" colspan="3"><table border="0"><tr><td align="left"><span class="catlink">{CAT_TITLE}</span>{CAT_DESC}</td></tr></table></td>
        </tr>
<!-- END catrow_noalb -->
<!-- BEGIN catrow -->
        <tr>
                <td class="catrow" align="left"><table border="0"><tr><td><span class="catlink">{CAT_TITLE}</span>{CAT_DESC}</td></tr></table></td>
                <td class="catrow" align="center">{ALB_COUNT}</td>
                <td class="catrow" align="center">{PIC_COUNT}</td>
        </tr>
        <tr>
            <td class="tableb tableb_alternate" colspan="3">{CAT_ALBUMS}</td>
        </tr>
<!-- END catrow -->
<!-- BEGIN footer -->
        <tr>
                <td colspan="3" class="tableh1" align="center"><span class="statlink">{STATISTICS}</span></td>
        </tr>
<!-- END footer -->
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->

EOT;
/******************************************************************************
** Section <<<$template_cat_list>>> - END
******************************************************************************/

If it already exits in your theme.php
remove the table columns with the {CAT_THUMB} place holder.
ex:
Code: [Select]
<td align="left">{CAT_THUMB}</td>will be removed.

Untested.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: Categories are indented.
« Reply #2 on: August 02, 2013, 11:23:37 pm »

And, if I might add, theme issues and mods should be checked here:

    W3C Markup Validation Service

(for all current and future readers - start with that link - save yourself some time)

jharris634

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Re: Categories are indented.
« Reply #3 on: August 02, 2013, 11:34:31 pm »

In your themes theme.php if it does not already exist add
Code: [Select]
/******************************************************************************
** Section <<<$template_cat_list>>> - START
******************************************************************************/
// HTML template for the category list
$template_cat_list = <<<EOT
<!-- BEGIN header -->
        <tr>
                <td class="tableh1" width="80%" align="left">{CATEGORY}</td>
                <td class="tableh1" width="10%" align="center">{ALBUMS}</td>
                <td class="tableh1" width="10%" align="center">{PICTURES}</td>
        </tr>
<!-- END header -->
<!-- BEGIN catrow_noalb -->
        <tr>
                <td class="catrow_noalb" colspan="3"><table border="0"><tr><td align="left"><span class="catlink">{CAT_TITLE}</span>{CAT_DESC}</td></tr></table></td>
        </tr>
<!-- END catrow_noalb -->
<!-- BEGIN catrow -->
        <tr>
                <td class="catrow" align="left"><table border="0"><tr><td><span class="catlink">{CAT_TITLE}</span>{CAT_DESC}</td></tr></table></td>
                <td class="catrow" align="center">{ALB_COUNT}</td>
                <td class="catrow" align="center">{PIC_COUNT}</td>
        </tr>
        <tr>
            <td class="tableb tableb_alternate" colspan="3">{CAT_ALBUMS}</td>
        </tr>
<!-- END catrow -->
<!-- BEGIN footer -->
        <tr>
                <td colspan="3" class="tableh1" align="center"><span class="statlink">{STATISTICS}</span></td>
        </tr>
<!-- END footer -->
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->

EOT;
/******************************************************************************
** Section <<<$template_cat_list>>> - END
******************************************************************************/

If it already exits in your theme.php
remove the table columns with the {CAT_THUMB} place holder.
ex:
Code: [Select]
<td align="left">{CAT_THUMB}</td>will be removed.

Untested.

This is really helpful. I went into the theme.php and saw that I didn't have that, so copied it, but it messed everything up. So I'm pretty sure I did it the wrong way.

Is there any chance you could maybe go into my theme.php yourself and fiddle with it? I only ask because this is an issue bugging me, and I've tried to no avail.

Appreciate your help :)

And, if I might add, theme issues and mods should be checked here:

    W3C Markup Validation Service

(for all current and future readers - start with that link - save yourself some time)

Thanks, I'll keep this in my bookmarks!
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Categories are indented.
« Reply #4 on: August 02, 2013, 11:37:42 pm »

What do you mean
but it messed everything up.
Did it look funny? give errors?

upload your theme.php as theme.php.txt
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

jharris634

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Re: Categories are indented.
« Reply #5 on: August 02, 2013, 11:51:31 pm »

What do you meanDid it look funny? give errors?

upload your theme.php as theme.php.txt

I feel like I am so stupid. I've never worked with Coppermine before and someone else actually installed it for me.

So I'm most probably wrong, but I took this to be the theme.php:

http://i39.tinypic.com/2d9y2w1.png

And this is what happened after I pasted the code:
http://i42.tinypic.com/2qi2pev.png

Sorry for wasting your time on what is probably an easy thing to fix :/
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Categories are indented.
« Reply #6 on: August 03, 2013, 12:45:36 am »

Next time please upload your images directly here rather than a hosting service. It makes threads more helpful to others in the future.

What Jeff is askinf for is for you to download the theme.php file to your desktop, rename it to them.php.txt then upload the file here so we can check your edits.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Categories are indented.
« Reply #7 on: August 23, 2013, 02:58:55 pm »

It looks like you're using some kind of web based editor. We recommend to use an FTP app like FileZilla to transfer files between your PC and your server. Then, use some decent editor like Notepad++ (Microsoft's notepad.exe should also work) to apply the changes to the file. Never use Word or some website building tools to edit Coppermine files, as they usually mess everything up by adding nonsense to the files.
Logged
Pages: [1]   Go Up
 

Page created in 0.042 seconds with 20 queries.