×
K5.1.1 is released (10 Jun 2018)

The Kunena team is pleased to announce Kunena 5.1.1 [K 5.1.1].
Please read the blog post for information:

× 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
1 year 7 months ago - 1 year 7 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
//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: 1 year 7 months ago by voraistos.

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

More
1 year 7 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
1 year 7 months ago #3 by voraistos
//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.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Time to create page: 0.120 seconds