JEEMA Login

 

Advertisement

 

Visit Counter

mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counterToday195
mod_vvisit_counterYesterday229
mod_vvisit_counterThis week888
mod_vvisit_counterLast week1587
mod_vvisit_counterThis month1800
mod_vvisit_counterLast month7191
mod_vvisit_counterAll days53770
 

Who's Online

We have 5 guests online
 

Home Forum

Welcome, Guest
Please Login or Register.    Lost Password?

Only the first two categories show up in one row
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Only the first two categories show up in one row
#26
Only the first two categories show up in one row 7 Months, 3 Weeks ago Karma: 0
Ok, so this is officially my first bug report ever. Please forgive if it's not done correctly.

I installed the component and found that it worked but it was not displaying the categories in successive columns like this:
Category A - Category B
Category C - Category D
Category E - Category F

Instead it was doing this:
Category A - Category B
Category C -
Category D -
Category E -
Category F -

So I figured it out, here's the code:

lines 81 - 84 in views/shortlook/tmpl/default.php

if(($currentcolumn >= $ar_no_of_columns)||($col==$no_of_collections-1)){
echo "</tr>";
$currentcolumn = 0; // THIS IS WHAT I ADDED TO MAKE IT WORK
}

Basically without that after in there, when $currentcolumn reaches the number of columns set in the component parameters it just keeps going each successive iteration through the main for loop. So the </tr> is printed each time after and all collections are put into their own row.
andrecastillo
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#29
Re:Only the first two categories show up in one row 7 Months, 3 Weeks ago Karma: 0
Hi,

Thanks for reporting the bug.

Can you include the below statement between 80 and 81?

$currentcolumn=0;

Like
Code:

      if(($currentcolumn >= $ar_no_of_columns)||($col==$no_of_collections-1)){
       $currentcolumn=0;
        echo "</tr>";
      }

jeema
Admin
Posts: 47
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#30
Re:Only the first two categories show up in one row 7 Months, 3 Weeks ago Karma: 0
Actually that's what I did do. It's in the first post.

I noticed another issue. I don't think the "Show Article Count" is working, i just need a quick fix so just removed it from line 55. Would be cool if that worked.

Thanks for such quick responses. Love the component.
andrecastillo
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
 

Most Read Manuals

 

Recently Added Manuals

 
Powered by JEEMA Web Solutions