Kunena Crypsis B3 template

8 years 9 months ago - 8 years 9 months ago #1 by chrisc
We have been playing with the new Crypsis template for Bootstrap 3 templates and have managed to get it to work with a couple of small changes.

The first is that we need to define a new CSS rule in our CSS override file:
#kunena.layout .table {
  float: left;
table-layout: fixed;
}

This forces the table to fit within the allocated container area, otherwise the display stretches all over our template columns to to right thus making the modules located on the right hand side of the page impossible to read

The second change we suspect is a coding bug in the file: com_kunena/templates/crypsisb3/layouts/categoryitem/default.php.

The determinations of the column width for the subject column is determined at the top of the file (line 15) based upon whether the field $this->checkbox is set as follows:
$cols = empty($this->checkbox) ? 5 : 6;

If it is empty, as is our situation the value of cols is set to 5.

However the test in the column header for the column where (we presume) the checkbox would be displayed is as follows:
<?php if (!empty($this->topicActions)) : ?>
            <td class="col-md-1 center">
               <label>
                  <input class="kcheckall" type="checkbox" name="toggle" value="" />
               </label>
            </td>
         <?php endif; ?>

If we count up the number of col-md-x values we have 1 (icon) +5 (subject) +2 (replies) +3 (last post) +1 (actions) which makes 12 (as intended).

Unfortunately in our case the value of $this->topicActions is null and hence the sum of the col comes to 11, which does not fill the screen width, leaving a extra space after the last displayed column.

I suspect that either the two tests should be made the same or alternatively switch the test results so that on line 15 the default is 6 if the $this->checkbox field is empty..

Regards

If you are using our extensions please leave a review at the JED: IP Mapping | Issue Tracker | JAudit | Password Control

Please Log in or Create an account to join the conversation.

Time to create page: 0.129 seconds
Go To Top

Joomla! Debug Console

Session

Profile Information

Memory Usage

Database Queries