360 odpowiedź w Usunięcie pokazywania pod avatarem został oznaczony jako odpowiedź
11 Listopada 2015
Wystarczyło usunąć.. Łatwo się było domyśleć:
<file>
<hook_file_real>sos32_othersgroups_global.php</hook_file_real>
<hook_type>skinHooks</hook_type>
<hook_classname>sos32_othersgroups_global</hook_classname>
<hook_data><![CDATA[a:7:{s:12:"dataLocation";s:0:"";s:15:"classToOverload";s:11:"skin_global";s:9:"skinGroup";N;s:12:"skinFunction";N;s:4:"type";N;s:2:"id";N;s:8:"position";N;}]]></hook_data>
<hooks_source><![CDATA[class sos32_othersgroups_global extends skin_global(~id~)
{
public function userInfoPane( $author, $contentid, $options )
{
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 );
}
}]]></hooks_source>
</file>