# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: Joomla root # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. --- components/com_comprofiler/plugin/user/plug_cbsimpleboardtab/cb.simpleboardtab.php +++ components/com_comprofiler/plugin/user/plug_cbsimpleboardtab/cb.simpleboardtab.php @@ -467,11 +467,17 @@ if ( $forum && ( $forum->component == 'com_kunena' ) ) { $mode = (int) $this->params->get( 'sidebarMode', 0 ); $config = $params['config']; - $msg_params = $params['msg_params']; $userprofile = $params['userprofile']; - $messageobject = $msg_params['messageobject']; - if ( $mode === 1 ) { //Beginner + if ( class_exists( 'KunenaForum' ) ) { + $msg_params = $params['params']; + $messageobject = null; + } else { + $msg_params = $params['msg_params']; + $messageobject = $msg_params['messageobject']; + } + + if ( ( $mode === 1 ) && $messageobject ) { //Beginner $version = substr( $forum->version, 0, 3 ); if ( strcasecmp( $version, '1.6' ) >= 0 ) { @@ -495,8 +501,15 @@ if ( $format ) { $extraFrom = array( '[karmaplus]', '[karmaminus]' ); - $extraTo = array( ( isset( $msg_params['karmaplus'] ) ? $msg_params['karmaplus'] : '' ), - ( isset( $msg_params['karmaminus'] ) ? $msg_params['karmaminus'] : '' ) ); \ No newline at end of file + + if ( class_exists( 'KunenaForum' ) ) { + $extraTo = array( $additional->userkarma_plus, $additional->userkarma_minus ); + } else { + $extraTo = array( ( isset( $msg_params['karmaplus'] ) ? $msg_params['karmaplus'] : '' ), + ( isset( $msg_params['karmaminus'] ) ? $msg_params['karmaminus'] : '' ) + ); + } + \ No newline at end of file $return = $cbUser->replaceUserVars( str_replace( $extraFrom, $extraTo, $format ) ); } } elseif ( $mode === 3 ) { //Expert