Kunena 6.2.5 & module Kunena Latest 6.0.7 released

The Kunena team has announce the arrival of Kunena 6.2.5 [K 6.2.5] which is now available for download as a native Joomla extension for J! 4.3.x/4.4.x/5.0.x. This version addresses most of the issues that were discovered in K 6.1 / K 6.2 and issues discovered during the last development stages of K 6.2

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 Personnel text permissions !

More
14 years 5 months ago #1 by richardcool7
Is there a possibility that only moderators and administrators may have access to Pesonnel text?

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

More
14 years 5 months ago #2 by Matias
Please define "Pesonnel text"..?

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

More
14 years 5 months ago #3 by richardcool7
this text in the picture:

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

More
14 years 5 months ago #4 by Matias
OK..

/components/com_kunena/template/default_ex/view.php around line 959:
Code:
if ($userinfo->personalText != '') { $msg_personal = kunena_htmlspecialchars(stripslashes($userinfo->personalText)); }

to:
Code:
if (($isAdmin || $isMod) && $userinfo->personalText != '') { $msg_personal = kunena_htmlspecialchars(stripslashes($userinfo->personalText)); }

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

More
14 years 5 months ago #5 by Matias
Or did you mean that only they can set it ->

$uIsAdm || $uIsMod

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

More
14 years 5 months ago - 14 years 5 months ago #6 by richardcool7
thank you for your quick response, I tried the soconde code :
Code:
if (($uIsAdm || $uIsMod) && $userinfo->personalText != '') { $msg_personal = kunena_htmlspecialchars(stripslashes($userinfo->personalText)); }
is ok for admin but i must set permissions in User Manager of joomla and not in kunena,because i have a moderator in kunena but the personnel text does not show.
Last edit: 14 years 5 months ago by richardcool7.

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

More
14 years 5 months ago #7 by Matias
I believe that the user needs to be moderator in that particular category in order to get field shown.

To show all moderators you need to run SQL query.

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

More
14 years 5 months ago #8 by richardcool7
thinks...

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

More
14 years 5 months ago #9 by Matias
Just count all rows which contains userid in current message. If result > 0, user is a moderator. Well, you may have to check also fb_users table, as user can be also (global) moderator=yes without assigned categories..

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

Time to create page: 0.362 seconds