forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: jharris634 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 ;)
-
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.
-
And, if I might add, theme issues and mods should be checked here:
W3C Markup Validation Service (http://validator.w3.org/)
(for all current and future readers - start with that link - save yourself some time)
-
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 :)
And, if I might add, theme issues and mods should be checked here:
W3C Markup Validation Service (http://validator.w3.org/)
(for all current and future readers - start with that link - save yourself some time)
Thanks, I'll keep this in my bookmarks!
-
What do you mean
but it messed everything up.
Did it look funny? give errors?
upload your theme.php as theme.php.txt
-
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 :/
-
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 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.