Kunena 6.3.0 released

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

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

More
8 years 5 months ago - 8 years 5 months ago #1 by Baze
Hi guys,

i'm using this code to show JomSocial custom fields under the Kunena avatar in the forum:
Code:
$authorid = $this->profile->userid; $username = $this->profile->username; $jspath = JPATH_BASE.DS.'components'.DS.'com_community'; include_once($jspath.DS.'libraries'.DS.'core.php'); $cuser =& CFactory::getUser($authorid); $db=JFactory::getDBO(); $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

thanks
Last edit: 8 years 5 months ago by Baze.

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

Time to create page: 0.463 seconds