Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • I tried to post the fix here, but it’s not displaying… I’ll try again later.

    \includes\views\form_settings – around line 24 – add:

    <tr valign="top">
                       <th scope="row">E-mail confirmation label (leave blank for none)</th>
                       <td colspan="2">
    						<input class="widefat" type="text" name="nsu_form[email_confirm_label]" value="<?php echo esc_attr($opts['email_confirm_label']); ?>" />
    					</td>
                   </tr>
                    <tr valign="top">
                       <th scope="row">E-mail confirmation value (leave blank for none)</th>
                       <td colspan="2">
    						<input class="widefat" type="text" name="nsu_form[email_confirm_value]" value="<?php echo esc_attr($opts['email_confirm_value']); ?>" />
    					</td>
                   </tr>

    \includes\NSU_Form – around line 152 – add:

    $email_confirm_label = __( $opts['form']['email_confirm_label'], 'nsu' );
    		$name_confirm_label  = __( $opts['form']['name_confirm_label'], 'nsu' );
    // adding e-mail confirmation - END
    
    <strong>\includes\NSU_Form - around line 175 - add</strong>:
    // adding e-mail confirmation - BEGIN
    		$email_confirm_type       = 'text';
    		$email_confirm_value      = $opts['form']['email_confirm_value'];
    		$name_confirm_value       = $opts['form']['email_confirm_value'];
    		$name_confirm_atts        = 'value="' . esc_attr( $name_confirm_value ) . '"';
    		$redirect_confirm_value   = $opts['form']['email_confirm_value'];

    \includes\NSU_Form – around line 217 – add:

    $output .= "<p><label for=\"$email_confirm_value\">$email_confirm_label</label><input class=\"nsu-field\" id=\"$email_confirm_value\" type=\"$email_type\" name=\"$email_confirm_value\" $email_confirm_atts ";
    			if ( ! $opts['form']['use_html5'] ) {
    				$output .= "onblur=\"if(!this.value) this.value = '$email_confirm_value';\" onfocus=\"if(this.value == '$email_confirm_value') this.value = ''\" ";
    			}
    			$output .= "/>";
Viewing 2 replies - 1 through 2 (of 2 total)