Page 1 of 1

Coppermine: Get rid of Category / Files information.

Posted: Sun Jul 17, 2005 8:47 am
by jasonb
I've always just found this annoying, so here's how to get rid of it in Coppermine 1.4.2.

At line 220 of include/themes.inc.php, replace:

Code: Select all

<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>
with:

Code: Select all

<td class="tableh1" colspan="3" width="100%" align="left"><b>{CATEGORY}</b></td>
Also, at line 232, replace:

Code: Select all

<td class="catrow" align="left"><table border="0"><tr><td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</
b></span>{CAT_DESC}</td></tr></table></td>
<td class="catrow" align="center">{ALB_COUNT}</td>
<td class="catrow" align="center">{PIC_COUNT}</td>
with:

Code: Select all

<td class="catrow" colspan="3" align="left"><table border="0"><tr><td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
Note: This is somewhat messy because it leaves all of the column definitions with a "colspan", which isn't needed any more, but it also involves having to edit fewer lines of code.