Project

General

Profile

Feature proposal #3472 » 3472-part2.patch

krileon, 16 May 2012 18:53

View differences:

components/com_comprofiler/plugin/user/plug_cbsimpleboardtab/cb.simpleboardtab.php
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 ) {
......
if ( $format ) {
$extraFrom = array( '[karmaplus]', '[karmaminus]' );
$extraTo = array( ( isset( $msg_params['karmaplus'] ) ? $msg_params['karmaplus'] : '' ),
( isset( $msg_params['karmaminus'] ) ? $msg_params['karmaminus'] : '' ) );
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'] : '' )
);
}
$return = $cbUser->replaceUserVars( str_replace( $extraFrom, $extraTo, $format ) );
}
} elseif ( $mode === 3 ) { //Expert
(2-2/2)