Kunena 6.4.13 Released

The Kunena team has announce the arrival of Kunena 6.4.13 [6.4.13] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.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 6.0
Hint: This version is primarily intended to facilitate an upgrade if Joomla was first updated to version 6.1 before Kunena was up to dated.

Solved getuserid from a kunena profile

More
10 years 8 months ago - 10 years 8 months ago #170454 by breebee2
Here is my config:

This message contains confidential information

Database collation check: The collation of your table fields are correct

Joomla! SEF: Enabled | Joomla! SEF rewrite: Disabled | FTP layer: Disabled |

This message contains confidential information
htaccess: Exists | PHP environment: Max execution time: 30 seconds | Max execution memory: 128M | Max file upload: 2M

Kunena menu details:

Warning: Spoiler!

Joomla default template details : g5_hydrogen | author: RocketTheme, LLC | version: 5.2.3 | creationdate: November 16, 2015

Kunena default template details : Crypsis | author: Kunena Team | version: 4.0.7 | creationdate: 2015-11-16

Kunena version detailed: Kunena 4.0.7 | 2015-11-16 [ Albareto ]
| Kunena detailed configuration:

Warning: Spoiler!
| Kunena integration settings:
Warning: Spoiler!
| Joomla! detailed language files installed:
Warning: Spoiler!

Third-party components: Jomsocial 3.2.0.4 | UddeIM 3.7

Third-party SEF components: None

Plugins: JomSocial - My Kunena Forum Menu 2.0.3 | JomSocial - My Kunena Forum Posts 2.0.3 | JomSocial - Kunena Groups 2.0.3

Modules: Kunena Latest 3.1.1.1





I am trying to get a user id from a users Kunena profile to be able to open a new uddeIM letter with their name already inserted within the message username.

So far I have tried many things but the closest I have gotten is the following (inside plugins/kunena/uddeim/private.php):
Code:
defined('_JEXEC') or die (); class KunenaPrivateUddeIM extends KunenaPrivate { protected $uddeim = null; protected $params = null; /** * @param $params */ public function __construct($params) { $this->params = $params; if (!class_exists('uddeIMAPI')) { return; } $this->uddeim = new uddeIMAPI(); if ($this->uddeim->version() < 1) { return; } } /** * @param $userid * * @return string */ protected function getURL($userid) { static $itemid = false; if ($itemid === false) { $itemid = 0; if (method_exists($this->uddeim, 'getItemid')) { $itemid = $this->uddeim->getItemid(); } if ($itemid) { $itemid = '&Itemid=' . (int) $itemid; } else { $itemid = ''; } } return JRoute::_('index.php?option=com_uddeim&task=new&recip=' . (int) $userid . $itemid); } /** * @param $userid * * @return mixed */ public function getUnreadCount($userid) { return $this->uddeim->getInboxUnreadMessages($userid); } /** * @param $text * * @return string */ public function getInboxLink($text) { if (!$text) { $text = JText::_('COM_KUNENA_PMS_INBOX'); } return '<a href="' . JRoute::_($this->uddeim->getLinkToBox('inbox', false)) . '" rel="follow">' . $text . '</a>'; } /** * @return string */ public function getInboxURL() { $user = JFactory::getUser($userid); return JRoute::_('index.php?option=com_uddeim&task=new&recip=' . ($user ->id)); }
Last edit: 10 years 8 months ago by breebee2.

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

More
10 years 8 months ago #170461 by 810
Replied by 810 on topic getuserid from a kunena profile
try:
Code:
$this->profile->userid;
The following user(s) said Thank You: breebee2

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

More
10 years 8 months ago #170472 by breebee2
Thanks for trying, ive been at this for days. :( I tried what you suggested, inside the parameter, inside the function, in the class, i tried dozens of combinations from previous attemps but nothing. I am so stumpped... I am not even a coder, but it looks like it should already work? i wonder why kunena does not have direct messages open with the users name as the recipient... If i can figure it out i will post it

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

More
10 years 8 months ago #170474 by breebee2
Ok, apparently editing the getInboxURL function is not the way to fix this because people cannot click to there inbox messages anymore.... :side:

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

More
10 years 8 months ago #170598 by breebee2
... Still nothing, is no one able to help?? The uddeIM developer cannot help me with kunena, and all attemps from stack overflow failed.. Can i pay one of you to help me out and publish the button for all users to have in the uddeim integration please..

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

More
10 years 8 months ago #170613 by 810
Replied by 810 on topic getuserid from a kunena profile
what do you want to work.

If you click under the profile the pm icon, you will be redirected to the uddeim compose, with the username already.

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

Time to create page: 0.285 seconds