Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] 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

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question how can delete this text

More
16 years 3 months ago #38643 by ghasem karimi
Hi I am using (default_ex) theme,in the CSS file I saw the below code that displays normal and mouse hover:
Code:
#Kunena span.view-username { } #Kunena span.view-username a:link, #Kunena span.view-username a:visited { font-weight:bold; text-decoration: none; color:#357994; } #Kunena span.view-username a:hover { color:#000000; text-decoration: none; }

I wish to colors be displayed according to type (admin,moderator,user) using different colors to seperate them .How can I do this?

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

More
16 years 3 months ago - 16 years 3 months ago #38686 by sozzled
Notice the new subject? We've answered the first of your questions (how to eliminate the text "Admin", "Moderator", "User") so now let's deal with your second question.

As you have discovered, the answer isn't that easy. There are two possible solutions:
  1. Modify the file ../components/com_kunena/template/default_ex/message.php and switch to different CSS classes depending on whether the user was an admin, moderator or user; or
  2. Modify the file ../components/com_kunena/lib/kunena.link.class.php in a similar way so that all username links within Kunena use a similar colour-coded effect.
In addition to either approach that you decide upon, you would also have to modify the file ../components/com_kunena/template/default_ex/kunena.forum.css to define different a:pseudo-classes that rendered the links in different colours.

OK, that's the general idea. For the specifics, you would have to write some code like this:

if ($uIsAdm) {
use the "Admin" colour
}
elseif ($uIsMod) {
use the "Moderator" colour
}
else {
set things as they are now
}

The lines in blue aren't real PHP programming code, of course, this is just to give you the flavour of the program logic that you would need to construct. I hope this helps to get you started.

Just remember, everything changes with K 1.6.

EDIT: The good news is that this feature is already implement in the test version that I've been familiarising myself with!
Last edit: 16 years 3 months ago by sozzled.

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

Time to create page: 0.204 seconds