Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Category in 2 columns  (Read 2510 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.014 seconds with 20 queries.