×
Kunena 5.1.15 Released (27 Oct 2019)

The Kunena team has announce the arrival of Kunena 5.1.15 [K 5.1.15] which is now available for download as a native Joomla extension for J! 3.9.x. This version addresses most of the issues that were discovered in K 5.1 and issues discovered during the development stages of K 5.1.

× This category is only for reporting defects or problems with Kunena 1.6 test versions with Joomla 1.6. This is NOT a support forum - there is no support for test versions. Users should NOT install K 1.6 alpha or beta test versions on websites with live production data.

Question Global settings in profile

More
8 years 7 months ago - 8 years 7 months ago #1 by wolfhound512
In K 1.6.4 when registred user edit its profile, he does not see the global settings (language, timezone, etc.).

I think that the error is here: \components\com_kunena\funcs\profile.php

function displayEditUser() {
...
if (...) {
...
} elseif ($jversion->RELEASE == '1.6' && $this->user->authorise( 'com_user', 'edit' )) {

In J1.6 permission to edit the profile defined in the options

ie here:
JComponentHelper::getParams('com_users')->get('frontend_userparams')

function displayEditUser() {
...
if (...) {
...
} elseif ($jversion->RELEASE == '1.6' && JComponentHelper::getParams('com_users')->get('frontend_userparams')) {

Attachments:
Last edit: 8 years 7 months ago by wolfhound512.

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

More
8 years 6 months ago #2 by Smirnov
Replied by Smirnov on topic Global settings in profile
For Joomla 1.5 this algorithm, apparently, does not work. :(

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

More
8 years 6 months ago #3 by wolfhound512
replace this code:
if ($jversion->RELEASE == '1.5' && $this->user->authorize( 'com_user', 'edit' )) {
	$usersConfig = JComponentHelper::getParams( 'com_user' );
	if ($usersConfig->get('frontend_userparams', 0)) {
		$lang = JFactory::getLanguage();
		$lang->load('com_user', JPATH_SITE);
		$params = $this->user->getParameters(true);
		// Legacy template support:
		$this->userparams = $params->renderToArray();
		$i=0;
		// New templates use this:
		foreach ($this->userparams as $userparam) {
			$this->userparameters[$i]->input = $userparam[1];
			$this->userparameters[$i]->label = '<label for="params'.$userparam[5].'" title="'.$userparam[2].'">'.$userparam[0].'</label>';
			$i++;
		}
	}
by this
if ($jversion->RELEASE == '1.5' && JComponentHelper::getParams('com_users')->get('frontend_userparams')) {
	$lang = JFactory::getLanguage();
	$lang->load('com_user', JPATH_SITE);
	$params = $this->user->getParameters(true);
	// Legacy template support:
	$this->userparams = $params->renderToArray();
	$i=0;
	// New templates use this:
	foreach ($this->userparams as $userparam) {
		$this->userparameters[$i]->input = $userparam[1];
		$this->userparameters[$i]->label = '<label for="params'.$userparam[5].'" title="'.$userparam[2].'">'.$userparam[0].'</label>';
		$i++;
	}
The following user(s) said Thank You: Smirnov

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

More
8 years 6 months ago #4 by Smirnov
Replied by Smirnov on topic Global settings in profile
Thanks, all works! :)

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

More
8 years 6 months ago #5 by xillibit
Replied by xillibit on topic Global settings in profile
Do you have checked in k1.6.5 ?

I don't provide support by PM, because this can be useful for someone else.

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

More
8 years 6 months ago #6 by wolfhound512
It is released?

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

More
8 years 6 months ago #7 by xillibit
Replied by xillibit on topic Global settings in profile
sorry, it's a mistake

anyway, thanks for this fix, i will test it later

I don't provide support by PM, because this can be useful for someone else.

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

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.131 seconds