Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nickboss

    (@nickboss)

    Hi,

    this is not currently implemented, it is scheduled for a future release.

    You need to do some coding by your own by changing the plugin code. I can help you with that if you want.

    Nickolas

    Thread Starter nicoromano

    (@nicoromano)

    Hi Nickolas,

    thanks for your answer. If you could point me in the right direction I would be happy to do some coding!

    cheers
    Nico

    Plugin Author nickboss

    (@nickboss)

    Open file wordpress_file_upload_functions.js found inside /js folder of the plugin directory, using a text editor.

    Locate the line that has the string: “wfu_clear(evt.target.shortcode_id);” (without the quotes)

    Add the following right below that line:

    if (GlobalData[sid].upload_state == 4 || GlobalData[sid].upload_state == 5) {
    			var fname = document.getElementById('wfu_messageblock_header_' + sid + '_label_1').innerHTML;
    			fname = fname.replace('File ', '').replace(' uploaded successfully', '');
    			document.getElementById('wordpress_file_upload_block_' + sid).innerHTML = '<label style="font-weight:bold;">' + fname + '</label>';
    		}

    Save the file and reload the page. When you upload a file, the plugin will be replaced by the filename.

    This code should work in free and Pro versions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Execute JS after upload’ is closed to new replies.