Kunena 5.2 Beta 1 Released (24 Sep 2020)

The Kunena team is thrilled to announce the first public beta release of Kunena 5.2, a native Joomla extension for Joomla 3.9. This is a development release and should be only be used for testing; this version is not recommended for live websites at this stage.

The purpose of this release is to encourage testing by downloading, installing and identifying any problems or shortcomings that people may discover. K 5.2.0 B1 is stable and we are aware that people will discover defects. We encourage you to use the forum to report defects, as soon as they are discovered, so that the development team can work through the problems before the release of K 5.1 as a stable product. Reporting defects does not mean that the problems can or will be fixed. The Kunena team is looking forward to hearing your feedback on how well we have achieved our design goals.

× Topics must relate to a currently supported version of Kunena. If you are unsure what is the current supported version of Kunena, please go to the download page.

If you are having problems then, for your own benefit, it would save us all a lot of time if you would kindly post your configuration report when you ask for help from this forum. If you do not post your configuration report we will not ask you for it but you will probably not get your problem solved, either.

Question Userstate in Postprofile (Left) is always online

3 years 2 months ago #1 by Razen

in my installation of Kunema, the state of the user in the post-profile is always online, event if the player is offline since days.
I already checked the cache and some settings mentioned in other threads here, but I didnt find anything.

I also went looking into the templates and found this code in the template user/profile/default.php:
<?php if ($user->exists()) : ?>
		<?php echo $this->subLayout('User/Item/Status')->set('user', $user); ?>
	<?php endif; ?>

If I'm right that refers to user/item/status/default.php:
defined('_JEXEC') or die;
$user = isset($this->user) ? $this->user : KunenaUserHelper::getMyself();
$status = $user->getStatus();
$status_text = $user->getStatusText();
$link = $user->getURL();
switch ($status)
	case 0:
		$label = JText::_("COM_KUNENA_ONLINE");
		$state = "success";
	case 1:
		$label = JText::_("COM_KUNENA_AWAY");
		$state = "warning";
	case 2:
		$label = JText::_("COM_KUNENA_BUSY");
		$state = "important";
	case 3:
		$label = JText::_("COM_KUNENA_INVISIBLE");
		$state = "default";
		$label = JText::_("COM_KUNENA_OFFLINE");
		$state = "default";

but if you var-dump the getStatus();-Method you see that it returns a boolean and not an integer. Any help is welcome...

Here's the report:
Warning: Spoiler!

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.154 seconds