Categories are indented. Categories are indented.
 

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]

Main Menu

Categories are indented.

Started by jharris634, August 02, 2013, 05:02:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jharris634

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  ;)

Jeff Bailey

In your themes theme.php if it does not already exist add

/******************************************************************************
** 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:
<td align="left">{CAT_THUMB}</td>
will be removed.

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

Joe Carver

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

Quote from: Jeff Bailey on August 02, 2013, 09:33:35 PM
In your themes theme.php if it does not already exist add

/******************************************************************************
** 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:
<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 :)

Quote from: Joe Carver 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)

Thanks, I'll keep this in my bookmarks!

Jeff Bailey

What do you mean
Quote from: jharris634 on August 02, 2013, 11:34:31 PM
but it messed everything up.
Did it look funny? give errors?

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

jharris634

Quote from: Jeff Bailey on August 02, 2013, 11:37:42 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 :/

phill104

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.
It is a mistake to think you can solve any major problems just with potatoes.

ΑndrĂ©

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.