Author Topic: How to fix the trailing on my subcategory listings  (Read 3888 times)

0 Members and 1 Guest are viewing this topic.

Offline nette

  • Newbie
  • *
  • Posts: 16
    • View Profile
How to fix the trailing on my subcategory listings
« on: August 26, 2006, 11:00:34 PM »
For some reason the subcategories in my 4images galleries are not lining up at all. Whenever I add a new subcat on the mainpage it just goes all the way at the bottom and won't sort. In the ACP it's already sorted but when I go to the mainpage everything is out of order. Can someone please help me. I am using 1.73 and here is the link to the page that I am talking about

http://www.impeccabledwaynejohnson.net/gallery/categories.php?cat_id=4

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: How to fix the trailing on my subcategory listings
« Reply #1 on: August 27, 2006, 08:02:17 AM »
all 3 columns have 16 subcategories, so I guess, you'll need specify fixed height of each subcategory (category_bit.html)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline nette

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: How to fix the trailing on my subcategory listings
« Reply #2 on: August 28, 2006, 12:54:47 AM »
Ok and the way to do that would be...here's is the coding I have in my category bit template

Quote
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
     <img src="{template_url}/images/folder.gif" width="20" height="13" alt="" />
      <!-- {if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}" border="1"></a>{endif random_cat_image_file}  -->
    </td>
    <td>
     <a href="{cat_url}" class="maincat">{cat_name}</a>&nbsp;({num_images})
      {if cat_is_new}<sup class="new">{lang_new}</sup>{endif cat_is_new}
   </td>
  </tr>
</table>
{if cat_description}<span class="smalltext">{cat_description}</span><br />{endif cat_description}
{if sub_cats}{sub_cats}{endif sub_cats}



where would i put width and height parameters and what happens once it goes over 16?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: How to fix the trailing on my subcategory listings
« Reply #3 on: August 28, 2006, 01:41:13 AM »
you dont know basic HTML codding? :?
[qcode]<table border="0" cellspacing="0" cellpadding="0" height="50">[/qcode]

once it goes over 16, it will add one in first column, then in second, then in third and so on.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline nette

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: How to fix the trailing on my subcategory listings
« Reply #4 on: August 28, 2006, 05:29:40 AM »
yeah I do know basic HTML coding. But I guess the way it was worded earlier when I asked the first time it was not clear to me that is what you meant. It still didn't work but thanks anyways