# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # 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 @@ -472,8 +472,14 @@ $messageobject = $msg_params['messageobject']; if ( $mode === 1 ) { //Beginner - $username = $this->getFieldValue( $user, (int) $this->params->get( 'sidebarBeginnerName', null ), 'html', 'list' ); + $version = substr( $forum->version, 0, 3 ); + if ( strcasecmp( $version, '1.6' ) == 0 ) { + $username = $this->getFieldValue( $user, (int) $this->params->get( 'sidebarBeginnerName', null ) ); + } else { + $username = $this->getFieldValue( $user, (int) $this->params->get( 'sidebarBeginnerName', null ), 'html', 'list' ); + } + \ No newline at end of file if ( $config->changename && ( $messageobject->name != $msg_params['username'] ) ) { $msg_params['username'] = $messageobject->name; } elseif ( $username ) {