*gespannt auf das releas wart*
was meinst du ... wann ist der Mod der öffentlichkeit zugänglich ?
Moderator: Supporter
admin/admin_board.php
#
#----------[ FIND ]-------------------------------------
#
$style_select = style_select($new['default_style'], 'default_style', "../templates");
#
#----------[ BEFORE, ADD ]------------------------------
#
// <!-- BEGIN easyUCP Second Profile -->
$sql = "SELECT group_id, group_name FROM " . GROUPS_TABLE . "
WHERE group_single_user = 0
ORDER BY group_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain usergroups data', '', __LINE__, __FILE__, $sql);
}
$second_profile_group_select = '<select name="second_profilpage_group">';
$second_profile_group_select .= '<option value="0">' . $lang['All_users'] . '</option>';
while( $row = $db->sql_fetchrow($result) )
{
$second_profile_group = $row['group_name'];
$second_profile_group_id = $row['group_id'];
$selected = ( $second_profile_group_id == $new['second_profilpage_group'] ) ? ' selected="selected"' : '';
$second_profile_group_select .= '<option value="' . $second_profile_group_id . '"' . $selected . '>' . $second_profile_group . '</option>';
}
$second_profile_group_select .= '</select>';
($new['max_user_about_chars'] >= '65000') ? $new['max_user_about_chars'] = '0' : '';
// <!-- END easyUCP Second Profile -->
#
#----------[ FIND ]-------------------------------------
#
"L_ALLOW_NAME_CHANGE" => $lang['Allow_name_change'],
#
#----------[ AFTER, ADD ]-------------------------------
#
// <!-- BEGIN easyUCP Second Profile -->
"L_SECOND_PROFILE_GROUP" => $lang['Second_profilepage_group'],
"L_SECOND_PROFILE_GROUP_EXPLAIN" => $lang['Second_profilepage_group_Explain'],
"L_SECOND_PROFILE_POSTS" => $lang['Second_profilepage_posts'],
"L_SECOND_PROFILE_POSTS_EXPLAIN" => $lang['Second_profilepage_posts_Explain'],
"L_MAX_USER_ABOUT_LENGTH" => $lang['Max_user_about_length'],
"L_MAX_USER_ABOUT_LENGTH_EXPLAIN" => $lang['Max_user_about_length_Explain'],
// <!-- END easyUCP Second Profile -->
#
#----------[ FIND ]-------------------------------------
#
"NAMECHANGE_NO" => $namechange_no,
#
#----------[ AFTER, ADD ]-------------------------------
#
// <!-- BEGIN easyUCP Second Profile -->
"SECOND_PROFILE_GROUP_SELECT_BOX" => $second_profile_group_select,
"SECOND_PROFILE_POSTS" => $new['second_profilpage_posts'],
"USER_ABOUT_SIZE" => $new['max_user_about_chars'],
// <!-- END easyUCP Second Profile -->
$user_realname = stripslashes($user_realname); // added by easyUCP
#
#----------[ FIND ]-------------------------------------
#
$template->assign_block_vars('switch_ucp_prefs', array() );
#
#----------[ AFTER, ADD ]-------------------------------
#
// Second Profile
if ( $ucp_mode != '' )
{
( $board_config['second_profilpage_group'] == '0' && $userdata['user_posts'] >= $board_config['second_profilpage_posts'] ) ? $ucp_pref_second_ok = true : $ucp_pref_second_ok = false;
if ( !$ucp_pref_second_ok )
{
$group_id = $board_config['second_profilpage_group'];
$sql = 'SELECT *
FROM '.USER_GROUP_TABLE.'
WHERE group_id=' . $group_id . ' AND user_id=' . $userdata['user_id'] . ' AND user_pending=0';
if ( !($result = $db->sql_query($sql)) ) message_die(GENERAL_ERROR, 'Couldn\'t obtain viewer group list', '', __LINE__, __FILE__, $sql);
$ucp_pref_second_ok = ( $group = $db->sql_fetchrow($result) );
}
if ( $ucp_pref_second_ok )
{
$show_second_profile_select_box = '<select name="user_allow_viewprofile_2">';
$show_second_profile_select_box .= '<option value="-2"' . (( $user_allow_viewprofile_2 == '-2' ) ? ' selected="selected"' : '') . '>' . $lang['Nowbody'] . '</option>';
$show_second_profile_select_box .= '<option value="' . ANONYMOUS . '"' . (( $user_allow_viewprofile_2 == ANONYMOUS ) ? ' selected="selected"' : '') . '>' . $lang['Auth_Anonymous_Users'] . '</option>';
$show_second_profile_select_box .= '<option value="' . USER . '"' . (( $user_allow_viewprofile_2 == USER ) ? ' selected="selected"' : '') . '>' . $lang['Auth_Registered_Users'] . '</option>';
$show_second_profile_select_box .= '<option value="' . MOD . '"' . (( $user_allow_viewprofile_2 == MOD ) ? ' selected="selected"' : '') . '>' . $lang['Auth_Moderators'] . '</option>';
$show_second_profile_select_box .= '<option value="' . ADMIN . '"' . (( $user_allow_viewprofile_2 == ADMIN ) ? ' selected="selected"' : '') . '>' . $lang['Auth_Administrators'] . '</option>';
$show_second_profile_select_box .= '</select>';
$template->assign_block_vars('switch_ucp_prefs.switch_second_profile_pref', array() );
}
}
// Second Profile
#
#----------[ FIND ]-------------------------------------
#
$template->assign_block_vars('switch_ucp_prefs', array() );
}
#
#----------[ AFTER, ADD ]-------------------------------
#
// Second Profile
if ( $ucp_mode != '' )
{
( $board_config['second_profilpage_group'] == '0' && $userdata['user_posts'] >= $board_config['second_profilpage_posts'] ) ? $ucp_pref_second_ok = true : $ucp_pref_second_ok = false;
if ( !$ucp_pref_second_ok )
{
$group_id = $board_config['second_profilpage_group'];
$sql = 'SELECT *
FROM '.USER_GROUP_TABLE.'
WHERE group_id=' . $group_id . ' AND user_id=' . $userdata['user_id'] . ' AND user_pending=0';
if ( !($result = $db->sql_query($sql)) ) message_die(GENERAL_ERROR, 'Couldn\'t obtain viewer group list', '', __LINE__, __FILE__, $sql);
$ucp_pref_second_ok = ( $group = $db->sql_fetchrow($result) );
}
if ( $ucp_pref_second_ok )
{
$show_second_profile_select_box = '<select name="user_allow_viewprofile_2">';
$show_second_profile_select_box .= '<option value="-2"' . (( $user_allow_viewprofile_2 == '-2' ) ? ' selected="selected"' : '') . '>' . $lang['Nowbody'] . '</option>';
$show_second_profile_select_box .= '<option value="' . ANONYMOUS . '"' . (( $user_allow_viewprofile_2 == ANONYMOUS ) ? ' selected="selected"' : '') . '>' . $lang['Auth_Anonymous_Users'] . '</option>';
$show_second_profile_select_box .= '<option value="' . USER . '"' . (( $user_allow_viewprofile_2 == USER ) ? ' selected="selected"' : '') . '>' . $lang['Auth_Registered_Users'] . '</option>';
$show_second_profile_select_box .= '<option value="' . MOD . '"' . (( $user_allow_viewprofile_2 == MOD ) ? ' selected="selected"' : '') . '>' . $lang['Auth_Moderators'] . '</option>';
$show_second_profile_select_box .= '<option value="' . ADMIN . '"' . (( $user_allow_viewprofile_2 == ADMIN ) ? ' selected="selected"' : '') . '>' . $lang['Auth_Administrators'] . '</option>';
$show_second_profile_select_box .= '</select>';
$template->assign_block_vars('switch_ucp_prefs.switch_second_profile_pref', array() );
}
}
// Second Profile
Mitglieder in diesem Forum: 0 Mitglieder und 3 Gäste