Kunena 7.0.5 & Kunena 6.4.11 – Security Updates Released

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

The Kunena team is also pleased to announce the eleventh version of Kunena 6.4, a native Joomla extension for Joomla! 5.0, 5.1, 5.2, 5.3, 5.4 and 6.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 Changing the text description of an existing usertype

More
15 years 5 months ago #74513 by mibert
Hi Sozzled,

I have changed the subject as per your suggestion. I hope that now my explanations are sufficient to get a useful reply.

Best regards

Michael

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

More
15 years 5 months ago #74515 by sozzled
I don't actually know the answer to the question but, at least, someone else who may have the answer will see the question more clearly and may be able to offer a solution.

I am not familiar with ugid. Is this a Joomla concept or is it a Kunena concept? Seems to me that this is a Joomla concept.

Displaying the Joomla usertype does not serve much purpose within the forum - as you will notice at www.kunena.org the usertype is not even displayed. It might be preferable to use a customise rank instead. These are just suggestions that might avoid you having to make customised changes to the source code, changes that you will have to support yourself in future, changes that might prevent you upgrading to future versions of Kunena, changes that might put you beyond the ability of this forum to be able to give you future support.

These warning aside, look at your Joomla language file: ../language/en-GB/en-GB.ini (for example). Find the definition of REGISTERED (for example)

REGISTERED=Registered

and change it

REGISTERED=Member

I haven't tried this for myself but it will probably work.

People should avoid as much as possible hacking Kunena PHP source code.

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

More
15 years 5 months ago - 15 years 5 months ago #74751 by mibert
Hi sozzled,

If I change the language file, all registered users will be named as "Members".
This is not what I want.
I want only the registered user, which have a Joomla Author Status (ugid=19) to be named as "Member". All other registered users are still to be named "Registered".

In the Kunena 1.5 template view.php, there is a code to define the displayed usertype as below:
Code:
if (strtolower($agrp) == "administrator" || strtolower($agrp) == "superadministrator" || strtolower($agrp) == "super administrator") { $msg_usertype = _VIEW_ADMIN; $uIsAdm = 1; } elseif ($uIsMod) { $msg_usertype = _VIEW_MODERATOR; } else { $msg_usertype = _VIEW_USER; } }

In order to reach the users with ugid=19 are displayed as "Member", I have changed this as below:

Code:
if (strtolower($agrp) == "administrator" || strtolower($agrp) == "superadministrator" || strtolower($agrp) == "super administrator") { $msg_usertype = _VIEW_ADMIN; $uIsAdm = 1; } elseif ($uIsMod) { $msg_usertype = _VIEW_MODERATOR; } elseif ($ugid == 19) { $msg_usertype = 'Member'; } else { $msg_usertype = _VIEW_USER; } }

In Kunena 1.6.1 I can not find this code anywhere, so I assume it was moved to another file.
If someone could point to the place, where I can find this, would be great.

I hope that above explanation is clear.

Best regards
Last edit: 15 years 5 months ago by mibert.

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

More
15 years 5 months ago #77985 by mibert
Found a solution to this matter as well:

Change /DKNEW/administrator/components/com_kunena/libraries/user.php

OLD:
$query = "SELECT u.name, u.username, u.block as blocked, ku.*

REPLACE WITH:
$query = "SELECT u.name, u.username, u.gid, u.block as blocked, ku.*


OLD:
elseif ($this->isModerator ( $catid )) {
$type = JText::_ ( 'COM_KUNENA_VIEW_MODERATOR' );
}
else {
$type = JText::_ ( 'COM_KUNENA_VIEW_USER' );
}

REPLACE WITH:
elseif ($this->isModerator ( $catid )) {
$type = JText::_ ( 'COM_KUNENA_VIEW_MODERATOR' );
}
elseif ($this->gid == 19) {
$type = 'Member';
}
else {
$type = JText::_ ( 'COM_KUNENA_VIEW_USER' );
}

In this way all user with Joomla usertype "Author" are displayed as "Member".

Regards

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

Time to create page: 0.232 seconds