Example #1
0
    print_yes_no_row($vbphrase['invisible_mode'], 'options[invisible]', $user['invisible']);
    print_yes_no_row($vbphrase['receive_private_messages'], 'options[receivepm]', $user['receivepm']);
    print_yes_no_row($vbphrase['send_notification_email_when_a_private_message_is_received'], 'options[emailonpm]', $user['emailonpm']);
    print_yes_no_row($vbphrase['pop_up_notification_box_when_a_private_message_is_received'], 'user[pmpopup]', $user['pmpopup']);
    print_yes_no_row($vbphrase['display_signature'], 'options[showsignatures]', $user['showsignatures']);
    print_yes_no_row($vbphrase['display_avatars'], 'options[showavatars]', $user['showavatars']);
    print_yes_no_row($vbphrase['display_images'], 'options[showimages]', $user['showimages']);
    //print_yes_no_row($vbphrase['use_email_notification_by_default'], 'options[emailnotification]', $user['emailnotification']);
    print_radio_row($vbphrase['auto_subscription_mode'], 'user[autosubscribe]', array(-1 => $vbphrase['subscribe_choice_none'], 0 => $vbphrase['subscribe_choice_0'], 1 => $vbphrase['subscribe_choice_1'], 2 => $vbphrase['subscribe_choice_2'], 3 => $vbphrase['subscribe_choice_3']), $user['autosubscribe'], 'smallfont');
    print_radio_row($vbphrase['thread_display_mode'], 'threaddisplaymode', array(0 => "{$vbphrase['linear']} - {$vbphrase['oldest_first']}", 3 => "{$vbphrase['linear']} - {$vbphrase['newest_first']}", 2 => $vbphrase['hybrid'], 1 => $vbphrase['threaded']), $threaddisplaymode, 'smallfont');
    print_radio_row($vbphrase['message_editor_interface'], 'user[showvbcode]', array(0 => $vbphrase['do_not_show_editor_toolbar'], 1 => $vbphrase['show_standard_editor_toolbar'], 2 => $vbphrase['show_enhanced_editor_toolbar']), $user['showvbcode'], 'smallfont');
    construct_style_chooser($vbphrase['style'], 'user[styleid]', $user['styleid']);
    print_table_break('', $INNERTABLEWIDTH);
    // TIME FIELDS SECTION
    print_table_header($vbphrase['time_options']);
    print_description_row($vbphrase['timezone'] . ' <select name="user[timezoneoffset]" class="bginput" tabindex="1">' . construct_select_options(fetch_timezones_array(), $user['timezoneoffset']) . '</select>');
    print_label_row($vbphrase['default_view_age'], '<select name="user[daysprune]" class="bginput" tabindex="1">' . construct_select_options($pruneoptions, $user['daysprune']) . '</select>');
    print_time_row($vbphrase['join_date'], 'joindate', $user['joindate'], 0);
    print_time_row($vbphrase['last_visit'], 'lastvisit', $user['lastvisit']);
    print_time_row($vbphrase['last_activity'], 'lastactivity', $user['lastactivity']);
    print_time_row($vbphrase['last_post'], 'lastpost', $user['lastpost']);
    ($hook = vBulletinHook::fetch_hook('useradmin_edit_column2')) ? eval($hook) : false;
    ?>
	</table>
	</tr>
	<?php 
    print_table_break('', $OUTERTABLEWIDTH);
    $tableadded = 1;
    print_table_footer();
}
// ###################### Start editsig #######################
Example #2
0
    print_yes_no_row($vbphrase['show_others_custom_profile_styles'], 'options[showusercss]', $user['showusercss']);
    print_yes_no_row($vbphrase['receieve_friend_request_notification'], 'options[receivefriendemailrequest]', $user['receivefriendemailrequest']);
    print_radio_row($vbphrase['auto_subscription_mode'], 'user[autosubscribe]', array(-1 => $vbphrase['subscribe_choice_none'], 0 => $vbphrase['subscribe_choice_0'], 1 => $vbphrase['subscribe_choice_1'], 2 => $vbphrase['subscribe_choice_2'], 3 => $vbphrase['subscribe_choice_3']), $user['autosubscribe'], 'smallfont');
    print_radio_row($vbphrase['thread_display_mode'], 'user[threadedmode]', array(0 => "{$vbphrase['linear']} - {$vbphrase['oldest_first']}", 3 => "{$vbphrase['linear']} - {$vbphrase['newest_first']}", 2 => $vbphrase['hybrid'], 1 => $vbphrase['threaded']), $threaddisplaymode, 'smallfont');
    print_radio_row($vbphrase['message_editor_interface'], 'user[showvbcode]', array(0 => $vbphrase['do_not_show_editor_toolbar'], 1 => $vbphrase['show_standard_editor_toolbar'], 2 => $vbphrase['show_enhanced_editor_toolbar']), $user['showvbcode'], 'smallfont');
    construct_style_chooser($vbphrase['style'], 'user[styleid]', $user['styleid']);
    print_table_break('', $INNERTABLEWIDTH);
    // ADMIN OVERRIDE OPTIONS SECTION
    print_table_header($vbphrase['admin_override_options']);
    foreach ($vbulletin->bf_misc_adminoptions as $field => $value) {
        print_yes_no_row($vbphrase['keep_' . $field], 'adminoptions[' . $field . ']', $user["{$field}"]);
    }
    print_table_break('', $INNERTABLEWIDTH);
    // TIME FIELDS SECTION
    print_table_header($vbphrase['time_options']);
    print_select_row($vbphrase['timezone'], 'user[timezoneoffset]', fetch_timezones_array(), $user['timezoneoffset']);
    print_yes_no_row($vbphrase['automatically_detect_dst_settings'], 'options[dstauto]', $user['dstauto']);
    print_yes_no_row($vbphrase['dst_currently_in_effect'], 'options[dstonoff]', $user['dstonoff']);
    print_select_row($vbphrase['default_view_age'], 'user[daysprune]', $pruneoptions, $user['daysprune']);
    print_time_row($vbphrase['join_date'], 'user[joindate]', $user['joindate']);
    print_time_row($vbphrase['last_activity'], 'user[lastactivity]', $user['lastactivity']);
    print_time_row($vbphrase['last_post'], 'user[lastpost]', $user['lastpost']);
    ($hook = vBulletinHook::fetch_hook('useradmin_edit_column2')) ? eval($hook) : false;
    ?>
	</table>
	</td>
	</tr>
	<?php 
    print_table_break('', $OUTERTABLEWIDTH);
    $tableadded = 1;
    print_submit_row($vbphrase['save']);
Example #3
0
         } else {
             if ($eventinfo['dateline_from'] != $eventinfo['dateline_to']) {
                 $recurcriteria = fetch_event_criteria($eventinfo);
                 $date1 = vbdate($vbulletin->options['dateformat'], $eventinfo['dateline_from']);
                 $date2 = vbdate($vbulletin->options['dateformat'], $eventinfo['dateline_to']);
                 if (!$recurcriteria) {
                     $recurcriteria = $vbcalendar['word6'];
                     // What is word6?
                 }
                 print_label_row('<b>' . $vbphrase['time'] . '</b>', construct_phrase($vbphrase['x_to_y'], $time1, $time2));
                 print_label_row('<b>' . $vbphrase['timezone'] . '</b>', "<select name=\"eventtimezone[{$eventinfo['eventid']}]\" tabindex=\"1\" class=\"bginput\">" . construct_select_options(fetch_timezones_array(), $eventinfo['utc']) . '</select>');
                 print_label_row('<b>' . $vbphrase['date_range'] . '</b>', $recurcriteria . ' | ' . construct_phrase($vbphrase['x_to_y'], $date1, $date2));
             } else {
                 $date = vbdate($vbulletin->options['dateformat'], $eventinfo['from_date']);
                 print_label_row('<b>' . $vbphrase['time'] . '</b>', construct_phrase($vbphrase['x_to_y'], $time1, $time2));
                 print_label_row('<b>' . $vbphrase['timezone'] . '</b>', "<select name=\"eventtimezone[{$eventinfo['eventid']}]\" tabindex=\"1\" class=\"bginput\">" . construct_select_options(fetch_timezones_array(), $eventinfo['utc']) . '</select>');
                 print_label_row('<b>' . $vbphrase['date_range'] . '</b>', $date);
             }
         }
         if (can_moderate_calendar($eventinfo['calendarid'], 'caneditevents')) {
             print_textarea_row('<b>' . $vbphrase['event'] . '</b>', "eventtext[{$eventinfo['eventid']}]", $eventinfo['event'], 15, 70);
         } else {
             print_label_row('<b>' . $vbphrase['event'] . '</b>', nl2br(htmlspecialchars_uni($eventinfo['event'])));
             construct_hidden_code("eventtext[{$eventinfo['eventid']}]", $eventinfo['event']);
         }
         print_label_row($vbphrase['action'], "\n\t\t\t\t<label for=\"val_{$eventinfo['eventid']}\"><input type=\"radio\" name=\"eventaction[{$eventinfo['eventid']}]\" value=\"1\" id=\"val_{$eventinfo['eventid']}\" tabindex=\"1\" />" . $vbphrase['validate'] . "</label>\n\t\t\t\t" . (can_moderate_calendar($eventinfo['calendarid'], 'candeleteevents') ? "<label for=\"del_{$eventinfo['eventid']}\"><input type=\"radio\" name=\"eventaction[{$eventinfo['eventid']}]\" value=\"-1\" id=\"del_{$eventinfo['eventid']}\" tabindex=\"1\" />" . $vbphrase['delete'] . "</label>" : '') . "\n\t\t\t\t<label for=\"ign_{$eventinfo['eventid']}\"><input type=\"radio\" name=\"eventaction[{$eventinfo['eventid']}]\" value=\"0\" id=\"ign_{$eventinfo['eventid']}\" tabindex=\"1\" checked=\"checked\" /> " . $vbphrase['ignore'] . "</label>\n\t\t\t", '', 'top', 'eventaction');
         $done = true;
     }
 }
 if (!$done) {
     print_description_row($vbphrase['no_events_awaiting_moderation']);