Здравствуйте. Есть хук на отображение второстепенных групп в профиле пользователя (profileModern) и userinfoPane. В темах группы отображаются, а вот в профиле нет. Не подскажете, где ошибка порылась?
By using this site, you agree to our Terms of Use & We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Здравствуйте. Есть хук на отображение второстепенных групп в профиле пользователя (profileModern) и userinfoPane. В темах группы отображаются, а вот в профиле нет. Не подскажете, где ошибка порылась?
Вот функция, отвечающая за вывод групп в профиле:
public function profileModern( $tabs=array(), $member=array(), $visitors=array(), $default_tab='status', $default_tab_content='', $friends=array(), $status=array(), $warns=array(), $show_contact='' ) { $grupos = array(); if ( $member['mgroup_others'] ) { $grupos = explode( ",", IPSText::cleanPermString( $member['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 != $member['member_group_id'] ) { $g_others[] = $grupo[ $sec_group ]['prefix'].$grupo[ $sec_group ]['g_title'].$grupo[ $sec_group ]['suffix']; } } } if ( count( $g_others ) ) { $this->registry->class_localization->loadLanguageFile( array( 'public_global' ), 'core' ); $member['other_groups'] = implode( ", ", $g_others ); $text1 = "<li><span class='row_title'>{$this->lang->words['others']}</span><span class='row_data'>"; $text2 = "</span></li>"; $member['g_title'] .= $text1.$member['other_groups'].$text2; } } return parent::profileModern( $tabs, $member, $visitors, $default_tab', $default_tab_content, $friends, $status, $warns, $show_contact ); }