Advanced search  

News:

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: Category in 2 columns  (Read 3140 times)

0 Members and 1 Guest are viewing this topic.

mid0ri

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 14
Category in 2 columns
« on: September 17, 2004, 09:12:11 am »

I need to display sub-categories in two columns like this:
Category: RealVideo
  Food             Nature
  Multimedia     User galleries

I modified the following project_vii theme.php as follows
Code: [Select]
<!-- BEGIN catrow -->
  <tr>
    <td class="tableb" width="28%">
      <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="tableb" align="center" width="9%">{ALB_COUNT}</td>
    <td class="tableb" align="center" width="9%">{PIC_COUNT}</td>
    <td class="tableb" width="30%">
      <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="tableb" align="center" width="9%">{ALB_COUNT}</td>
    <td class="tableb" align="center" width="9%">{PIC_COUNT}</td>
  </tr>
  <tr>
    <td class="tableb" colspan="3">{CAT_ALBUMS}</td>
    <td class="tableb" colspan="3">{CAT_ALBUMS}</td>
  </tr>
<!-- END catrow -->

Consequently, the same sub-categories are repeated twice on the both columns:
Category: RealVideo
  Food               Food
  Nature          Nature
  Multimedia        Multimedia
  User galleries     User galleries

Is there someone who is kind enough to help me to correct the HTML code above? Is there any other php files that I need to edit?

Thanks in advance,
midori
« Last Edit: September 17, 2004, 09:42:35 am by mid0ri »
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.