Author Topic: Subcategory columns do not show proportionately  (Read 21624 times)

0 Members and 1 Guest are viewing this topic.

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
Subcategory columns do not show proportionately
« on: December 18, 2002, 12:12:56 AM »
for some reason sub categories (when opens categories.php) dont show in even columns...check this pic

can I fix it some how?
thx.

P.S. there is nothing wrong with template, something goes wrong in the code...
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 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
[FIX] Subcategories columns dont show proportionaly?
« Reply #1 on: December 19, 2002, 02:35:11 AM »
am I the only one having this problem?
I found the code where those columns r calculating (function get_categories() in functions.php) but cant figure out where it miss calculating...
I opened 21 subcategories and set 5 Number of table cells, and this what I get:
8O
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 slave4brit

  • Newbie
  • *
  • Posts: 26
    • View Profile
Same Here!! :(
« Reply #2 on: December 19, 2002, 03:34:46 AM »
Hey!!

I get the EXACT SAME problems!! They are never done so that there are actually that many in a line... Why is this!?

I guess ur not the only one with the prob, V@no!

Please someone help... I'm confused :S

Thanx,

Marc
http://www.slave4brit.com

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
[FIX] Subcategories columns dont show proportionaly?
« Reply #3 on: December 26, 2002, 09:23:25 AM »
I think it's little bug....
here is the fix:

1. Open /includes/functions.php file.
1.2. Find:
Code: [Select]
     if ($total <= $table_columns && $table_columns > 1) {
        $table_rows = 1;
      }
      else {
        $table_rows = $total / $table_columns;
        if ($total >= $table_columns && !is_integer($table_rows)) {
          $table_rows = intval($table_rows) + 1;
        }
      }
Just delete it.
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 bgmurphy

  • Full Member
  • ***
  • Posts: 113
    • View Profile
[FIX] Subcategories columns dont show proportionaly?
« Reply #4 on: June 23, 2003, 05:29:23 PM »
hey all  :D  -

this is an interesting piece of code - displaying the thumbs and the subcategory names it ...

where can i find this code routine?  :?:

bruce

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
[FIX] Subcategories columns dont show proportionaly?
« Reply #5 on: June 23, 2003, 05:41:55 PM »
edit categories_bit.html template, u'll find couple commented lines, just uncomment them
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 bgmurphy

  • Full Member
  • ***
  • Posts: 113
    • View Profile
[FIX] Subcategories columns dont show proportionaly?
« Reply #6 on: June 23, 2003, 06:09:46 PM »
thanx v@no for the fast reply  8) ...
next question - how can i make the text appear under the thumbnail image ? - otherwise the thumbnail + text blows out the screen !!

thanx
bruce

Offline jengwen

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
    • http://www.jenrichardsphotography.com
[FIX] Subcategories columns dont show proportionaly?
« Reply #7 on: July 03, 2003, 03:25:06 PM »
When I remove the code, now I just get one column with everything listed going down the page.  Is that what is supposed to happen, or do I need to change something in my settings?  I still want 3 columns going across, I just would like the categories evenly distributed within the columns.