4images Forum & Community
4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started 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...
-
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
-
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
-
I think it's little bug....
here is the fix:
1. Open /includes/functions.php file.
1.2. Find: 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.
-
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
-
edit categories_bit.html template, u'll find couple commented lines, just uncomment them
-
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
-
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.