Popatrz coś z tego dodatku - do wyłuskania:
if ( !$this->settings['sos32_othersgroups_on'] )
{
return parent::userInfoPane( $author, $contentid, $options );
}
$grupos = array();
if ( $author['mgroup_others'] )
{
$grupos = explode( ",", IPSText::cleanPermString( $author['mgroup_others'] ) );
$grupo = ipsRegistry::cache()->getCache( 'group_cache' );
foreach ( $grupos as $sec_group )
{
if ( !in_array( $sec_group, explode( ',', $this->settings['sos32_othersgroups_grupos'] ) ) )
{
if ( $sec_group != $author['member_group_id'] )
{
$g_others[] = $grupo[ $sec_group ]['prefix'].$grupo[ $sec_group ]['g_title'].$grupo[ $sec_group ]['suffix'];
}
}
}
if ( count( $g_others ) )
{
$author['other_groups'] = implode( ", ", $g_others );
}
}
if ( count( $g_others ) )
{
$this->registry->class_localization->loadLanguageFile( array( 'public_global' ), 'core' );
$text1 = "<li><span class='ft'>{$this->lang->words['others']}: </span><span class='fc'>";
$text2 = "</span></li>";
$author['_group_formatted'] .= $text1.$author['other_groups'].$text2;
}
return parent::userInfoPane( $author, $contentid, $options );