4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 30, 2010, 04:44:42 AM

Login with username, password and session length
Search:     Advanced search
4images is now on facebook. Click here and become a fan!
Translate this page with google
=>
 Translate this page with Google =>
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Issues / Ausgaben
| |-+  Discussion & Troubleshooting (Moderators: Acidgod, ivan, Rembrandt)
| | |-+  Subcategory columns do not show proportionately
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Subcategory columns do not show proportionately  (Read 9741 times)
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17088

Thank You
-Given: 21
-Receive: 191

mmm PHP...


View Profile WWW
« 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...
Logged

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)
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17088

Thank You
-Given: 21
-Receive: 191

mmm PHP...


View Profile WWW
« 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:
Shocked
Logged

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)
slave4brit
Newbie
*
Offline Offline

Posts: 26

Thank You
-Given: 0
-Receive: 0


View Profile
« 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
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17088

Thank You
-Given: 21
-Receive: 191

mmm PHP...


View Profile WWW
« 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:
1
2
3
4
5
6
7
8
9
     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.
Logged

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)
bgmurphy
Full Member
***
Offline Offline

Posts: 113

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #4 on: June 23, 2003, 05:29:23 PM »

hey all  Very Happy  -

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

where can i find this code routine?  Question

bruce
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17088

Thank You
-Given: 21
-Receive: 191

mmm PHP...


View Profile WWW
« Reply #5 on: June 23, 2003, 05:41:55 PM »

edit categories_bit.html template, u'll find couple commented lines, just uncomment them
Logged

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)
bgmurphy
Full Member
***
Offline Offline

Posts: 113

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #6 on: June 23, 2003, 06:09:46 PM »

thanx v@no for the fast reply  Cool ...
next question - how can i make the text appear under the thumbnail image ? - otherwise the thumbnail + text blows out the screen !!

thanx
bruce
Logged
jengwen
Jr. Member
**
Offline Offline

Posts: 85

Thank You
-Given: 0
-Receive: 1


View Profile WWW
« 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.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
piqs.de - Fotocommunity & lizenzfreie Fotos