Kunena 6.4.9 & Kunena 7.0.1 Released

The Kunena team has announce the arrival of Kunena 6.4.9 [K 6.4.9] in stable which is now available for download as a native Joomla extension for J! 5.0.x/5.1.x/5.2.x/5.3.x/5.4.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.4

The Kunena team has announce the arrival of Kunena 7.0.1 [K 7.0.1] in stable which is now available for download as a native Joomla extension for J! 5.0.x/5.1.x/5.2.x/5.3.x/5.4.x/6.0.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 7.0

Important note: Go to the Kunena Dashboard after an upgrade so that the Kunena database tables are also updated. This is particularly necessary for major version jumps so that the table changes are adapted.

This category contains miscellaneous, uncategorised third-party extensions (e.g. JomSocial, Community Builder, etc.) relating to older versions of Kunena that are no longer supported.

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?

More
14 years 7 months ago #99369 by sababer9
give me site's url and a username/password

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

More
14 years 7 months ago - 14 years 7 months ago #99375 by tuumke
www.ooc-clan.com/
you can register an account there.
cuz i dunno what pass+mail you use :)
Last edit: 14 years 7 months ago by tuumke.

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

More
14 years 7 months ago #99665 by tuumke
Any luck so far?

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

More
14 years 7 months ago #99666 by sababer9
no dude, just busy in other things. will work on it at first available time

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

More
14 years 7 months ago - 14 years 7 months ago #99784 by alakentu
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
Code:
<?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;">&nbsp;</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; } }
customfields.xml
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 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.

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
Last edit: 14 years 7 months ago by alakentu.
The following user(s) said Thank You: struchli, JSene

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

More
14 years 7 months ago #99867 by tuumke

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

Code:
<?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;">&nbsp;</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; } }
customfields.xml
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 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.

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

I missed "FIELD_SIGNATURE"
that part.. now it works perfectly! thnx

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

Time to create page: 0.345 seconds