$Form->info(T_('Note'), T_('Enable bubble tips in each skin\'s settings.')); $Form->checkbox_input('bubbletip_anonymous', $Settings->get('bubbletip_anonymous'), T_('Allow to see bubbletips'), array('note' => T_('Check to enable bubble tips on usernames'))); if (isset($GLOBALS['files_Module'])) { $Form->select_input_array('bubbletip_size_anonymous', $Settings->get('bubbletip_size_anonymous'), get_available_thumb_sizes(), T_('Bubble tip image format'), '', $params); } $Form->textarea('bubbletip_overlay', $Settings->get('bubbletip_overlay'), 5, T_('Image overlay text'), '', 20); $Form->end_fieldset(); // -------------------------------------------- $Form->begin_fieldset(T_('Other permissions for anonymous users') . get_manual_link('anonymous-users-permissions')); $Form->checkbox_input('allow_anonymous_user_list', $Settings->get('allow_anonymous_user_list'), T_('Allow to see user list')); $user_level_params = array('input_prefix' => T_('from') . ' '); if (!$Settings->get('allow_anonymous_user_list') && !$Settings->get('allow_anonymous_user_profiles')) { // Disable the user groups levels interval because the users pages are not available for anonymous users $user_level_params['disabled'] = 'disabled'; } $Form->interval('allow_anonymous_user_level_min', $Settings->get('allow_anonymous_user_level_min'), 'allow_anonymous_user_level_max', $Settings->get('allow_anonymous_user_level_max'), 2, T_('Show only User Groups Levels'), '', $user_level_params); $Form->end_fieldset(); // -------------------------------------------- if ($current_User->check_perm('users', 'edit')) { $Form->end_form(array(array('submit', 'submit', T_('Save Changes!'), 'SaveButton'))); } ?> <script type="text/javascript"> jQuery( '#allow_anonymous_user_list, #allow_anonymous_user_profiles' ).click( function() { if( ! jQuery( '#allow_anonymous_user_list' ).is( ':checked' ) && ! jQuery( '#allow_anonymous_user_profiles' ).is( ':checked' ) ) { // Disable the user groups levels interval, If the users pages are not available for anonymous users jQuery( '#allow_anonymous_user_level_min' ).attr( 'disabled', 'disabled' ); jQuery( '#allow_anonymous_user_level_max' ).attr( 'disabled', 'disabled' ); } else