• Resolved kmallick

    (@kmallick)


    I am using GF Advanced File Uploader v 1.19 in one of my sites. The plugin installed without a problem and I have gone over the settings.
    When creating a form within GF, I can see the Adv Uploader and Terms of Service buttons. When I click on any of those buttons, it creates a new form field with a form ID, but it is missing the Advanced Uploader part before the : Field ID #. On the front end, I see the title of the field but I do not see the normal Advanced uploader field where we can drag and drop the files.

    I am familiar with your plugin and it works properly in another site I have. I am puzzled with this problem. What could I be doing wrong?

    https://wordpress.org/plugins/gravity-forms-advanced-file-uploader/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter kmallick

    (@kmallick)

    I found out that the Gravity Forms Advanced File Uploader is conflicting with the Gravity Forms WYSIWYG plugin. I removed the latter and everything is working fine again.

    Plugin Author ben.moody

    (@benmoody)

    Hi

    Thanks for the info, can you post the link for the other plugin so i can test out what might be conflicting?

    THanks

    Thread Starter kmallick

    (@kmallick)

    Plugin Author ben.moody

    (@benmoody)

    Thanks does this notice apply to your setup?

    PLEASE NOTE This plugin uses features that are only available in the most recent versions of WordPress (v3.2) and Gravity Forms (v.1.6.4). It goes without saying that you need to upgrade to the latest versions of both in order for this plugin to work.

    Hi,

    I had the same problem so I investigate, here is a fix for gravity-forms-wysiwyg plugin :

    in the file “gf_wysiwyg_class.php”, search the function “wysiwyg_field_input”
    (Line 69), and at the end of this function, replace the “return false;” by “return $input;”

    The function must be like that :

    function wysiwyg_field_input($input, $field, $value, $lead_id, $form_id) {
    
    			if ($this->is_wysiwyg($field)) { 
    
    				$input_id = 'input_' . $form_id . '_' . $field["id"];
    
    				if (is_admin()) {
    
    					$tabindex = GFCommon::get_tabindex();
    
    					return sprintf("<div class='ginput_container'><textarea readonly name='input_%s' id='input_%s' class='textarea gform_wysiwyg' {$tabindex} rows='10' cols='50'>WYSIWYG editor</textarea></div>", $field["id"], 'wysiwyg-' . $field['id']);
    
    				} else {
    
    					$media_buttons = strpos($field["cssClass"], 'media_buttons') !== false;
    
    					$args = array(
    						'textarea_name' => 'input_' . $field["id"],
    						'wpautop'       => true,
    						'media_buttons' => $media_buttons,
    						'editor_class'  => 'frontend',
    						'textarea_rows' => 5,
    						'tabindex'      => 0 //$tabindex
    					);
    
    					ob_start();
    					wp_editor($value, $input_id, $args);
    					$html = ob_get_contents();
    					ob_end_clean();
    
    					return "<div class='ginput_container'>" . $html . "</div>";
    
    				}
    
    			}
    			return $input;
    		}
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Advanced Uploader field not loading correctly’ is closed to new replies.