4images Forum & Community

4images Help / Hilfe => Bug Fixes & Patches => Topic started by: V@no on March 12, 2005, 10:48:09 PM

Title: [1.7] Subcategories columns not shown proportionaly
Post by: V@no on March 12, 2005, 10:48:09 PM
If your subcategories shown something like this:
(http://img156.exs.cx/img156/1851/subcat26eq.gif)

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!
Title: Re: [FIX v1.7] Subcategories columns not shown proportionaly
Post by: agasonex on May 26, 2005, 05:11:10 AM
Thanks, works perfectly. ^_^
Title: Re: [1.7] Subcategories columns not shown proportionaly
Post by: JensF 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
Title: Re: [1.7] Subcategories columns not shown proportionaly
Post by: V@no on July 29, 2005, 02:33:24 PM
I see no problem on your gallery...
Title: Re: [1.7] Subcategories columns not shown proportionaly
Post by: salimiali 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?
Title: Re: [1.7] Subcategories columns not shown proportionaly
Post by: V@no on October 22, 2005, 02:57:31 PM
the category IDs have nothing to do with this issue.