Project

General

Profile

Bug #2224 » 2224a.patch

krileon, 25 January 2011 17:00

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 );
$userinfo = $params['userinfo'];
$version = substr( $forum->version, 0, 3 );
if ( $mode === 1 ) { //Beginner
$version = substr( $forum->version, 0, 3 );
$fields = array();
$fields[] = $this->getFieldValue( $user, (int) $this->params->get( 'sidebarBeginnerAvatar', null ), 'html', 'list' );
for ( $i = 1; $i <= 23; $i++ ) {
for ( $i = 1; $i <= 21; $i++ ) {
$fields[] = trim( $this->getFieldValue( $user, (int) $this->params->get( 'sidebarBeginner' . $i, null ), 'csv' ) );
}
......
if ( $fields[21] ) {
$userinfo->BEBO = $fields[21];
}
if ( $fields[22] ) {
$userinfo->hideEmail = $fields[22];
}
}
if ( $fields[23] ) {
$userinfo->showOnline = $fields[23];
if ( strcasecmp( $version, '1.6' ) == 0 ) {
global $ueConfig;
$userinfo->hideEmail = ( $ueConfig['allow_email_display'] < 4 ? '0' : '1' );
$userinfo->showOnline = $ueConfig['allow_onlinestatus'];
}
}
}
}
}
} //end of getForumTab
?>
(1-1/2)