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.

× Please Read This First:

This is a community-driven self-help category to ask questions about designing or developing your own Kunena template. Please be aware that there are rules that apply to topics posted in this category:

Do not use this category for:
  • asking questions about how to make simple changes to a template designed by the Kunena project team (use K 3.0 Templates instead);
  • advertising your own template designs.

Topics that do not meet the above guidelines may be removed without notice.

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 JomSocial custom field show logged in user data instead of authors

4 years 10 months ago - 4 years 10 months ago #1 by Baze
Hi guys,

i'm using this code to show JomSocial custom fields under the Kunena avatar in the forum:
$authorid = $this->profile->userid;
$username = $this->profile->username;
$jspath = JPATH_BASE.DS.'components'.DS.'com_community';
$cuser =& CFactory::getUser($authorid);
$bike = $cuser->getInfo('FIELD_MODEL');
echo "Bike: $bike";

i have this in /components/com_kunena/template/mytemplate/layouts/user/profile/default.php

So in kunena under the avatar on each post i see the "Bike:" label but the data on all posts is from the logged in user, not the user who wrote the post. Any idea how can i get the current author and to show the custom field for him?

Using JomSocial 4.x, Kunena 4.0.7

Last edit: 4 years 10 months ago by Baze.

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