Hi all,
I'm french so excuse my poor english
Hi know that colored group has been discussed before, but it's hard to find answer.
here is my problem: i'd like to add a css class to a special rank.
So i've add it in : /components/com_kunena/template/mon template/css/kunena.forum-min.css
Code:
#Kunena .kwho-admin{color:red!important}
#Kunena .kwho-azur{color:#2bd1ff!important}
#Kunena .kwho-globalmoderator{color:#6cff00!important}
#Kunena .kwho-moderator{color:#6cff00!important}
#Kunena .kwho-user{color:#efd600!important}
#Kunena .kwho-guest{color:#ccc!important}
#Kunena .kwho-banned{color:#A39D49!important}
#Kunena .kwho-blocked{color:#2F7D93!important}
Customise /components/com_kunena/template/default/plugin/who/whoisonline.php to show it
And the most diffucult part (i'm not develloper) add an else if in :
/components/com_kunena/lib/kunena.link.class.php
Code:
function GetProfileLink($userid, $name = null, $title ='', $rel = 'nofollow', $class = '') {
if (!$name) {
$profile = KunenaFactory::getUser($userid);
$name = htmlspecialchars($profile->getName(), ENT_COMPAT, 'UTF-8');
}
if ($userid == 0) {
$uclass = 'kwho-guest';
} else if (CKunenaTools::isAdmin ( $userid )) {
$uclass = 'kwho-admin';
} else if (CKunenaTools::isModerator ( $userid, false )) {
$uclass = 'kwho-globalmoderator';
} else if (CKunenaTools::isModerator ( $userid )) {
$uclass = 'kwho-moderator';
} else if (METHOD TO CALL A RANK ID) {
$uclass = 'kwho-azur';
} else {
$uclass = 'kwho-user';
}
if ($userid > 0) {
$link = CKunenaLink::GetProfileURL ( $userid );
if (! empty ( $link ))
return CKunenaLink::GetHrefLink ( $link, $name, $title, $rel, $uclass );
}
return "<span class=\"{$uclass}\">{$name}</span>";
}
In a test i have already colored one user by calling his userid.
But can you teach me kow to call the rankid of a Kunena user ?
Topic in French support :
www.kunena.org/forum/24-french/84060-col...s-kunenalinkclassphp
Kunena 1.6.2 Joomla 1.5.20