- Posts: 10
- Thank you received: 1
Kunena 6.3.7 Released
The Kunena team has announce the arrival of Kunena 6.3.7 [K 6.3.7] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x/5.2.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 and issues discovered during the last development stages of K 6.3
Note: Please go to the Kunena Dashboard after an upgrade so that the Kunena database tables are also updated.
This category may also contain a few topics relating to K 1.6 that may have been moved here possibly by mistake.
The topics in this category are for historical interest only. Owing to the structural differences between K 1.6 and K 1.7, the ideas in these topics may not work with later versions and, for that reason, the topics are locked.
Question Kunena and JomSocial. And the signature?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Ok, I have followed this issue because I find it interesting to begin with the user "sababer9" has done an excellent job very well worth it to take JomSocial to be added to your core files.
On the other hand lacked better specify how it should be done. Deputy code of the file and customfields.xml forumsignature.php respectively. Both must go into the directory: joomla_root/components/com_community/libraries/fields/both_files_here!
forumsignature.php
Once entered into JomSocial can observe the firm that shows we can add a kunena or (using bbcode kunena).
EDIT
Joomla: v1.6.4
Jomsocial: v2.2.2
Kunena: v1.6.4
EDIT 2: I tried the hack but apparently the maximum length of the signature must be 100 characters and does not exceed this amount of characters. We must find a way to remove this restriction and may also be able to post images.
Kind Regards
KS!
NO hacer Spam | NO esbribas todo en mayúsculas | Sigue las reglas
Please Log in or Create an account to join the conversation.
I missed "FIELD_SIGNATURE"alakentu wrote: Hi all,
Ok, I have followed this issue because I find it interesting to begin with the user "sababer9" has done an excellent job very well worth it to take JomSocial to be added to your core files.
On the other hand lacked better specify how it should be done. Deputy code of the file and customfields.xml forumsignature.php respectively. Both must go into the directory: joomla_root/components/com_community/libraries/fields/both_files_here!
forumsignature.php
customfields.xmlCode:<?php /** * @license GNU/GPL, see LICENSE.php */ // no direct access defined('_JEXEC') or die('Restricted access'); class CFieldsForumSignature { public function _translateValue( &$string ) { $string = JText::_( $string ); } public function getFieldHTML( $field , $required ) { $config =& CFactory::getConfig(); $js = '/assets/validate-1.5'; $js .= ( $config->getBool('usepackedjavascript') ) ? '.pack.js' : '.js'; CAssets::attach($js, 'js'); // If maximum is not set, we define it to a default $field->max = empty( $field->max ) ? 200 : $field->max; $loggedInUser =& JFactory::getUser(); $userid = JRequest::getVar('userid',$loggedInUser->id,'get'); $db =& JFactory::getDBO(); $query = "SELECT signature FROM #__kunena_users WHERE userid = $userid"; $db->setQuery($query); $field->value = $db->loadResult(); $class = ($field->required == 1) ? ' required' : ''; CFactory::load( 'helpers' , 'string' ); $html = '<textarea id="field' . $field->id . '" name="field' . $field->id . '" class="jomTips tipRight inputbox textarea' . $class . '" title="' . $field->name . '::' . CStringHelper::escape( $field->tips ) . '">' . $field->value . '</textarea>'; $html .= '<span id="errfield'.$field->id.'msg" style="display:none;"> </span>'; $html .= '<script type="text/javascript">cvalidate.setMaxLength("#field' . $field->id . '", "' . $field->max . '");</script>'; return $html; } public function isValid( $value , $required ) { if( $required && empty($value)) { return false; } $loggedInUser =& JFactory::getUser(); $userid = JRequest::getVar('id',$loggedInUser->id); $db =& JFactory::getDBO(); $query = "UPDATE #__kunena_users SET signature ='$value' WHERE userid = $userid"; $db->setQuery($query); $db->query(); return true; } }
Once these preliminary steps to create a new field named "Forum Signature" type is "Forum Signature" (same name ) and the Code Field is "FIELD_SIGNATURE" save changes and go.Code:<?xml version="1.0" encoding="utf-8"?> <jomsocial> <fields> <field> <type>text</type> <name>Textbox</name> </field> <field> <type>textarea</type> <name>Textarea</name> </field> <field> <type>select</type> <name>Select</name> </field> <field> <type>singleselect</type> <name>Select - List</name> </field> <field> <type>list</type> <name>Multiple Select</name> </field> <field> <type>radio</type> <name>Radio buttons</name> </field> <field> <type>checkbox</type> <name>Checkbox</name> </field> <field> <type>country</type> <name>Country</name> </field> <field> <type>email</type> <name>Email</name> </field> <field> <type>time</type> <name>Time</name> </field> <field> <type>date</type> <name>Date</name> </field> <field> <type>url</type> <name>URL</name> </field> <field> <type>label</type> <name>Label</name> </field> <field> <type>birthdate</type> <name>Birthdate</name> </field> <field> <type>forumsignature</type> <name>Forum Signature</name> </field> </fields> </jomsocial>
Once entered into JomSocial can observe the firm that shows we can add a kunena or (using bbcode kunena).
EDIT
Joomla: v1.6.4
Jomsocial: v2.2.2
Kunena: v1.6.4
EDIT 2: I tried the hack but apparently the maximum length of the signature must be 100 characters and does not exceed this amount of characters. We must find a way to remove this restriction and may also be able to post images.
Kind Regards
that part.. now it works perfectly! thnx
Please Log in or Create an account to join the conversation.
tuumke wrote: I missed "FIELD_SIGNATURE"
that part.. now it works perfectly! thnx
FILED_SIGNATURE, in this case is code name for the field that you give, is not added anywhere, you must create it!
Kind Regards
KS!
NO hacer Spam | NO esbribas todo en mayúsculas | Sigue las reglas
Please Log in or Create an account to join the conversation.
Thanks alakentu, you are great.
by the way, working doesnt depend on FIELD_SIGNATURE field code anywhere, you can set any field code if you want.
Please Log in or Create an account to join the conversation.
sababer9 wrote: sorry guys, i was out for sometime.
Thanks alakentu, you are great.
by the way, working doesnt depend on FIELD_SIGNATURE field code anywhere, you can set any field code if you want.
I would like to show 'About Me' - 'FIELD_ABOUTME', in place of FIELD_SIGNATURE, where should I change it?
Thank you in advance.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.