Author Topic: [1.7] Subcategories columns not shown proportionaly  (Read 20690 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
[1.7] Subcategories columns not shown proportionaly
« on: March 12, 2005, 10:48:09 PM »
If your subcategories shown something like this:


Then remove from includes/functions.php this block of code:

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;
       }
     }
MAKE SURE U DIDNT LEAVE OR REMOVE ANY EXTRA BRACKETS!
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 agasonex

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [FIX v1.7] Subcategories columns not shown proportionaly
« Reply #1 on: May 26, 2005, 05:11:10 AM »
Thanks, works perfectly. ^_^

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [1.7] Subcategories columns not shown proportionaly
« Reply #2 on: July 29, 2005, 01:30:40 PM »
When i do this i can´t change the categories cells in the settings......

I change it to 3 but it listed the categories as 1
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

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: [1.7] Subcategories columns not shown proportionaly
« Reply #3 on: July 29, 2005, 02:33:24 PM »
I see no problem on your gallery...
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 salimiali

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [1.7] Subcategories columns not shown proportionaly
« Reply #4 on: October 22, 2005, 10:55:38 AM »
sorry, this number: 1 2 3 4 5 6 7 8 9 ... on subcategori is ID of Categories?

for example:

before:
AFJ (ID:10)
CMN (ID:5)
PZK (ID:1)

after:
PZK (ID:1)
CMN (ID:5)
AFJ (ID:10)

yes? run like this?

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: [1.7] Subcategories columns not shown proportionaly
« Reply #5 on: October 22, 2005, 02:57:31 PM »
the category IDs have nothing to do with this issue.
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)