Kunena 7.0.5 & Kunena 6.4.11 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.5 [K 7.0.5] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0.

The Kunena team is also pleased to announce the eleventh version of Kunena 6.4, a native Joomla extension for Joomla! 5.0, 5.1, 5.2, 5.3, 5.4 and 6.0.

Before posting in this category, please read sticky topics and, as general background, My Joomla site template makes a mess of Kunena .

If you have questions about third-party templates, please use the User-written Templates category or contact the author directly. This category should only be used for questions about templates developed and supported by the Kunena project.

Question css minify

More
14 years 11 months ago #97898 by cbrace
css minify was created by cbrace
Hi all,

I have in front of me this page from the wiki: Minified CSS .

It all seems perfectly clear: Kunena uses kunena.forum-min.css for styling. If you want to edit your css, you set DEBUG=YES in the admin pages, edit kunena.forum.css, see how it looks, and when you're done, minify the css and turn debug off again.

However, if I go to the css/ directory, and rename kunena.forum.css to something else, my layout goes all haywire, even though debugging is set to NO. This seems completely illogical. Is kunena reading kunena.forum-min.css or not? If not, why should it care about the contents (or lack thereof) in kunena.forum.css?

I'm totally baffled at this point.

Thanks

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

More
14 years 11 months ago #97902 by Matias
Replied by Matias on topic Re: css minify
Kunena checks for the original file.. Yeah, it's illogical, but was a bit faster..

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

More
14 years 11 months ago - 14 years 11 months ago #97960 by cbrace
Replied by cbrace on topic Re: css minify
Thanks. It appears not only to check it, but to read it.

I have a problem: when I first installed Kunena and didn't know about the DEBUG=ON option, I was a lazy sod and copied kunena.forum.css to kunena.forum-min.css, and just edited the latter. I know, very bad :S

Now these two files are quite out of sync.

I made some changes to min.css, but they didn't "take"; so I figured settings were also being read from forum.css. So, I renamed kunena-forum.css, and, as I said above, my layout went crazy. At this point, I have no idea how to extricate myself from this situation. Some settings appear to be defined in the regular file, some in the min file. :pinch:

(As an aside: I am by no means an expert in these things, so maybe this is a naive question: Why take all this trouble to minify CSS? Why not simply let either Joomla and/or Apache handle compression? If I bzip2 the kunena CSS file, the compression is MUCH better than minify: like 80% vs 25%.)
Last edit: 14 years 11 months ago by cbrace.

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

More
14 years 11 months ago - 14 years 11 months ago #97966 by Matias
Replied by Matias on topic Re: css minify
Minifying css ends up 90% compression if you both minify and zip it.

I'm thinking of having different approach in K2.0, but I'm not sure how much time I have to do it.

In the mean time you can always load css files manually by editing initialize.php
Last edit: 14 years 11 months ago by Matias.

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

More
14 years 11 months ago #97977 by cbrace
Replied by cbrace on topic Re: css minify
Yes, I see you are right:
Code:
-rw-r--r--. 1 colin colin 23K May 23 16:17 kunena.default.css -rw-r--r--. 1 colin colin 4.0K May 23 16:17 kunena.default.css.bz2 -rw-r--r--. 1 colin colin 15K May 23 16:17 kunena.default-min.css -rw-r--r--. 1 colin colin 2.7K May 23 16:17 kunena.default-min.css.bz2 -rw-r--r--. 1 colin colin 68K May 23 16:17 kunena.forum.css -rw-r--r--. 1 colin colin 11K May 23 16:17 kunena.forum.css.bz2 -rw-r--r--. 1 colin colin 54K May 23 16:17 kunena.forum-min.css -rw-r--r--. 1 colin colin 8.1K May 23 16:17 kunena.forum-min.css.bz2
But the savings are really tiny, just a couple of K.

According to a web optimization site I used recently, a fairly minimal Joomla home page is already upwards of 200K in size, so using minify here contributes to just an overall reduction of like 1% or 2%. I am all for fast websites, especially a Kunena forum, for obvious reasons, but I wonder whether using minify is really worth the trouble here, especially when it causes the problems I seem to be having.

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

More
14 years 11 months ago #97990 by cbrace
Replied by cbrace on topic Re: css minify
With the use of diff, I managed to get a working kunena.forum.css and have switched on debug, so I can edit it.

I think things were going wrong above because kunena.default-min.css and kunena.default.css had different settings too.

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

Time to create page: 0.252 seconds