4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: V@no on December 18, 2002, 12:12:56 AM

Title: Subcategory columns do not show proportionately
Post by: V@no 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
(http://home.attbi.com/~vanowm/subcat.jpg)
can I fix it some how?
thx.

P.S. there is nothing wrong with template, something goes wrong in the code...
Title: [FIX] Subcategories columns dont show proportionaly?
Post by: V@no 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:
(http://home.attbi.com/~vanowm/subcat2.gif) 8O
Title: Same Here!! :(
Post by: slave4brit 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
Title: [FIX] Subcategories columns dont show proportionaly?
Post by: V@no 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.
Title: [FIX] Subcategories columns dont show proportionaly?
Post by: bgmurphy 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
Title: [FIX] Subcategories columns dont show proportionaly?
Post by: V@no on June 23, 2003, 05:41:55 PM
edit categories_bit.html template, u'll find couple commented lines, just uncomment them
Title: [FIX] Subcategories columns dont show proportionaly?
Post by: bgmurphy 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
Title: [FIX] Subcategories columns dont show proportionaly?
Post by: jengwen 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.