Kunena 6.3.8 Released

The Kunena team has announce the arrival of Kunena 6.3.8 [K 6.3.8] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x/5.2.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 and issues discovered during the last development stages of K 6.3
Note: Please go to the Kunena Dashboard after an upgrade so that the Kunena database tables are also updated.

Question Aurelia stickymsg class bug

More
10 months 4 weeks ago - 10 months 4 weeks ago #1 by TomasFC
Hello, 
I have found that in the latest update of Aurelia, the way the categories are marked with "-stickymsg" class is different on the "Recent Topics" and "My Topics" pages. 
Code:
<tbody class="topic-list"> <tr class="category">
When there's a class set for the category (e.g. "-myclass"), in the recent topics, the category class for the row and it's a sticky topic, the class for the tr shows as:
category-myclass (with no "-stickymsg")
in "My Topics" however, it shows as 
category-myclass-stickymsg-stickymsg (with 2 "-stickymsg")

One way to solve this is by modifying the page /components/com_kunena/template/aurelia/layouts/topic/row/default.php around line 33 from
Code:
if ($this->topic->ordering) {     $txt = $this->topic->getCategory()->class_sfx ? $txt . '' : $txt . '-stickymsg'; }


to 

Code:
if ($this->topic->ordering) {     $txt .= ' ' . 'category-stickymsg'; }


And then duplicating that on  /components/com_kunena/template/aurelia/layouts/topic/row/user.php (change line 64 also) 

This is just one way, as I'm not to decide how to list the classes. In this manner, the classes for the rows show as:
category
category category-stickymsg 

or 

category-myclass
category-myclass category-stickymsg 

I see there's the class use of "category" or "category-stickymsg" for whether is a sticky class or not. This becomes an issue when adding other classes like "deleted". It would be much simpler to add the sticky class just separately and use "category.stickymsg" in the css rather than "category-stickymsg" so that the order doesn't affect the class. 

Personally, I start my category classes with a space to simplify my css code, but I see the value of having "category-myclass" since it can nullify previous css lines we don't want to use. 

Thank you,
Tomás
Last edit: 10 months 4 weeks ago by TomasFC. Reason: clarity

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

More
9 months 1 week ago #2 by xillibit
Hello,

The issue is still here with Kunena 6.2.5 ? I'am not able to reproduce it, tjhe sticky topic in recent discussion page have the category-stickymsg class

I don't provide support by PM, because this can be useful for someone else.

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

Time to create page: 0.315 seconds