Advanced search  


CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: configuring categories and sub-categories  (Read 3024 times)

0 Members and 1 Guest are viewing this topic.


  • Coppermine newbie
  • Offline Offline
  • Posts: 1
configuring categories and sub-categories
« on: July 12, 2004, 10:22:11 pm »

I'm working with the theme file and I've ran into a couple of problems.

I'm unable to edit the part of the theme file that controls the look of the categories without effecting the look of sub-categories. Here's my current code for categories within the theme.php file:
Code: [Select]
// HTML template for the category list
$template_cat_list = <<<EOT

<!-- BEGIN header -->
                <td class="tableh1" width="80%">&nbsp;<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>
<!-- END header -->
<!-- BEGIN catrow_noalb -->
                <td class="tableh2"><table border="0"><tr><td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
<!-- END catrow_noalb -->
<!-- BEGIN catrow -->
<td class="tableb"><table border="0">
<td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td>
<td bgcolor="#FFFFFF" align="center">{ALB_COUNT}</td>
<td bgcolor="#FFFFFF" align="center">{PIC_COUNT}</td>
<td class="tableb" colspan="3">{CAT_ALBUMS}</td>
<!-- END catrow -->
<!-- BEGIN footer -->
                <td colspan="3" class="tableh1" align="left"><span class="statlink">{STATISTICS}</span></td>
<!-- END footer -->
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="17" alt="" /><br />
<!-- END spacer -->


I need to break this code apart so that one part controls categories and the other part to control sub categories.

If you takea look at:
you'll notice the main categories set-up

However, when you click on any of the categories you'll be taken to its corresponding sub-category and notice that the set-up is realigned with all of the content positioned in the middle of the page.

To avoid this problem, I am looking for a way to be able to control both the look of categories and sub categories individualy. Is there any way to do this?
Pages: [1]   Go Up

Page created in 0.026 seconds with 19 queries.