Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • This doesn’t seems to be fixed in the newest version (4.0.37) due to an if statement (from the code: if ( FSCF_EMAIL_FIELD == $field['standard'] ) return(self::display_email($key, $field));). One can however achieve the desired result by applying the filter ‘si_contact_email_input_type’ (from the code: `//filter hook for email input type, someone might want to change it from type=’text’ to type=’email’
    $email_input_type = apply_filters( ‘si_contact_email_input_type’, ‘text’, self::$form_id_num);`)

    Afaik WP doesn’t have this kind of functionality, but you can try this:

    function getDirectory($path = '.', $level = 0)
    {
        $ignore = array('cgi-bin', '.', '..');
        $dh = @opendir($path);
    
        while (false !== ($file = readdir($dh))) {
            if (!in_array($file, $ignore)) {
                $spaces = str_repeat(' ', ($level * 4));
                if (is_dir("$path/$file")) {
                    //it's a dir
                    getDirectory("$path/$file", ($level + 1));
                } else {
                    // it's a file
                }
            }
        }
        closedir($dh);
    }
    call: getDirectory("."); // where . is your path

    Thread Starter Muzaru

    (@muzaru)

    Which reminds me…hate not be able to preview…I’m running 0.9.9.3.4 of the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)