Kunena 6.2.6 released

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

This is not a support forum for JomSocial or its related products. For JomSocial support you should visit JomSocial .

The information given in this category is intended to guide users who want to use JomSocial with Kunena and, mostly, was written by Kunena users. The information here is not necessarily accurate, up-to-date nor is it intended to replace the support given by the developers of JomSocial.

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 code submission JOMSOCIAL SIGNATURE in kunena

More
7 years 5 months ago - 7 years 5 months ago #1 by voraistos
Hi, I wrote this code a long time ago and just readapted it for the new kunena template following a massive upgrade. I don't know if it's any good, but it works. I guess it could be reasonably integrated in the existing plugins with the right option in the admin panel by a kunena dev.

in layouts/message/item/default.php, near the beginning of the file
Code:
//joms sig begin $jspath = JPATH_ROOT.DS.'components'.DS.'com_community'; include_once($jspath.DS.'libraries'.DS.'core.php'); $user =& CFactory::getUser($this->message->userid); $signature = KunenaHtmlParser::parseBBCode ($user->getInfo('FIELD_SIGNATURE')); //joms sig end //After this is existing code, with original signature line commented out $message = $this->message; $isReply = $this->message->id != $this->topic->first_post_id; //joms sig// $signature = $this->profile->getSignature();
Last edit: 7 years 5 months ago by voraistos.

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

More
7 years 5 months ago #2 by voraistos
To clarify, the FIELD_SIGNATURE is created by the admin on the jomsocial backend. It could be called something different.

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

More
7 years 5 months ago #3 by voraistos
Code:
//joms sig begin $jspath = JPATH_ROOT.DS.'components'.DS.'com_community'; include_once($jspath.DS.'libraries'.DS.'core.php'); $user = CFactory::getUser($this->message->userid); $signature = KunenaHtmlParser::parseBBCode ($user->getInfo('FIELD_SIGNATURE')); //joms sig end //After this is existing code, with original signature line commented out $message = $this->message; $isReply = $this->message->id != $this->topic->first_post_id; //joms sig// $signature = $this->profile->getSignature();

Better this way ;)

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

Time to create page: 0.330 seconds