- Posts: 3
- Thank you received: 0
Kunena 7.0.10 & Kunena 6.4.15 – Security Updates Released and K7.1 in RC1
The Kunena team has announce the arrival of Kunena 7.0.10 [K 7.0.10] as security release 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 and 6.4.15 [K 6.4.15]. 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
Question Rotating default_ex css file
Here is my issue:
I have a site for my fire department and we have 3 shifts (A, B and C, shifts), each working a 24 hour shift and off 48. The shifts are noted by color on our calendars. A-shift days are color coded black, B-shift color coded red and C-shift color coded green. I use a RT template and I have written a script that changes the color of the entire template based on the shift day.
I use the following as an included file:
It works flawlessly and I has been happy for a year with it
Now I and integrated Kunena and I want the stylesheet for the forums to match the rest of the site. I can change the actuall css myself, but I am having difficulty getting the script to load anything but the default kunena.forum.css
Here is the include for the forum:
Now I included this in the kunena.php file at line 167:
and I changed this:
The variable $shift_forum is supposed to append the url to add the _a, _b, or _c to the end of the kunena.forum.css like this kunena.forum_c.css, but it doesn't work. I still get the default css
I know the require_once file is including fine.
Any suggestions would be greatly appreciated.
Fireman
Please Log in or Create an account to join the conversation.
I think I understand the basic gist of what you have written - I'll leave the PHP coding aside, for the time being, to those who have a penchant for such things - but I wondered if we took a lateral approach to matters we might come up with an alternative that's simpler and just as effective.
You have to keep in the back of your mind what Kunena is used for: it's a discussion forum.
So, as long as we're clear on that point, I guess it's just a matter of your users being able to identify themselves with the categories of discussions that are relevant to them. If colour-coding those categories is a way to assist your users and given them a point of focus, so much the better.
So, what I was about to suggest is for you to look at a screenshot of the upcoming Kunena 1.6 version and tell us whether having colour-coded categories would assist you as an alternative to changing colour theme of the entire discussion board based on the day. My suggestion may not be suitable, but would you like to consider it? See Kunena 1.6 - "Cats" (not the musical)
Please Log in or Create an account to join the conversation.
what happens if you put the files "kunena.forum_a.css", "kunena.forum_b.css" and "kunena.forum_c.css" in the folder
{J!root} / templates / [your_joomla_template] / css /
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
have you tried?
Yes I mean in the RT theme template css folder. You don't need to change nothing else in the kunena.php.
Definition "KUNENA_JTEMPLATEURL" is refered to Joomla selected template.
If you put these files in the css folder of your joomla template your code should work.
Regards
Please Log in or Create an account to join the conversation.
Thanks
Please Log in or Create an account to join the conversation.