Kunena 7.1.1 & Kunena 6.4.17 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.1.1 [K 7.1.1] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.x./6.2.x This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 / K7.0 and issues discovered during the last development stages of K 7.1
Just a reminder: K6.4.17 receives only securities fixes until end of 2026, so it's advised for users to upgrade to K7.1.

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 customising example template

  • Nihil
  • Nihil's Avatar
  • New Member
  • New Member
More
16 years 1 month ago #65913 by Nihil
Replied by Nihil on topic Re: customising example template
The way i understand it is that there there really isn't a Kunena template, so much as a structure for controlling the appearance of your Kunena forum. You then modify your site's template to override the defaults. In my case i have a template for the whole site with a master CSS file called template.css. When i want to change Kunena i add a line to that file and leave the Kunena template files untouched. You CAN change those files, but i think that's asking for trouble. Whatever changes you put in your site's template will override the defaults anyway.

There's a line in the Kunena template that says something like this:
Code:
/* This line sets the color for every other row in the list of threads */ #Kunena tr.krow2 td { background: none repeat scroll 0 0 #333333 !important;

It probably has some other number in there. But if that's the element you want to change, copy the text, paste it in your site's main template and change away. Firebug will let you see what the change will do before you do it. The only thing i dislike about Firebug is that you can't copy from it (as far as i can tell).

Firebug will tell you which file and which line is dictating the color of the text and anything else. i highly recommend playing with it until you start seeing how it all works. Play in Firebug first. Turn lines on and off, tweak the variables. Then start on your template. By working through it you'll learn quite a bit. Use comments to tell yourself what changes you are making.

i think the line for text color looks something like this:
color: #000 !important;

Kunena defaults to black text on white.

This is what i did in my template.css to make things dark and pretty. i still have some work to do. Note me talking to myself in the comments.
Code:
/* Change the link colors */ #Kunena a:link, #Kunena a:visited, #Kunena a:active { color:#XXXXXX !important; } /* Change the header background colors */ #Kunena .kblock div.kheader { background:none repeat scroll 0 0 #000000; } /* Change the header text colors */ #Kunena .kblock div.kheader h2 a:link, #Kunena .kblock div.kheader h2 a:visited, #Kunena .kblock div.kheader h2 a:active { color: #fff !important; } /* Change the tab colors */ div#ktab ul.menu li a { background-color: #444444 !important; } /* Change the active tab & rollover colors */ div#ktab li#current a { background-color: #444444 !important; } div#ktab ul.menu li a:hover { background-color: #YYYYYY !important; } /* Change the border color under the top nav */ #Kunena #ktop { border-color: #YYYYYY; } /* Change the pagination color */ #Kunena .kpagination .active { background:none repeat scroll 0 0 #XXXXXX; border:1px solid #YYYYYY; } #Kunena .kpagination a { border:1px solid #000000; } #Kunena .kpagination a:hover { border:1px solid #YYYYYY ; color: #fff !important; background: #XXXXXX; } /* Change the post link color */ #Kunena div.kmsg-header h2 a { color: #000 !important; } /* Change the toggler color */ #Kunena #ktop span.ktoggler { background-color:#444444; } /* Change the button rollover color */ #Kunena .kbutton:hover, #Kunena .kbutton:focus { background-color: #XXXXXX; border-color: #YYYYYY; } /* This line turns kunena text black. Turning that off so the text will be white again. #Kunena { color: #000000; }*/ /* Sets the thread title background color */ #Kunena tr.krow1 td { background: none repeat scroll 0 0 #222222 !important; } /* Sets the alternating thread title background color */ #Kunena tr.krow2 td { background: none repeat scroll 0 0 #333333 !important; } /* sets the background color of the threads! */ #Kunena div.kblock { background: none repeat scroll 0 0 #000000 !important; } /* Not sure what this does yet */ #Kunena .kblock div.kheader { background: none repeat scroll 0 0 #000000 !important; } #Kunena .krow2-stickymsg { background: none repeat scroll 0 0 #000000 !important; } #Kunena .krow1-stickymsg { background: none repeat scroll 0 0 #000000 !important; } #Kunena td.kprofile-left { background: none repeat scroll 0 0 #333333 !important; } #Kunena .kwho-globalmoderator { color: #FFFFFF !important; font-weight: bold; } /* attempt to fix quoted text background */ #Kunena div.kmsgtext-quote { background: none repeat scroll 0 0 #222222 !important; } /* The box showing the path in the forum */ #Kunena .kforum-pathway { background: none repeat scroll 0 0 #333333 !important; color: #ffffff; } /* The header description */ #Kunena div.kfheadercontent { background: none repeat scroll 0 0 #333333 !important; color: #ffffff; }

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

Time to create page: 0.120 seconds