Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Jeff Starr

    (@specialk)

    It sounds like JavaScript is not included in the page..

    Thread Starter masadmin

    (@masadmin)

    Can you explain a bit more please?

    Plugin Author Jeff Starr

    (@specialk)

    In order for the “add another” link to work, the page needs to have the required JavaScript included. Check the option to include required JavaScript, and then verify that it is included on the page by viewing the source code. The file is named usp.php, so do a Find for that in the source code will be an easy way to check.

    Thread Starter masadmin

    (@masadmin)

    Hi Jeff,

    yes I have this file. And now how should I include required Javascript…Is their any option via settings because I can see a check box that states include external scripts…..please let me know how should I do that….

    Thanks.

    Plugin Author Jeff Starr

    (@specialk)

    I can see a check box that states include external scripts

    I would try checking the box and saving the changes, see if that works.

    Thread Starter masadmin

    (@masadmin)

    Hi thanks Jeff,

    One more thing in this case, this blog is proxied from nginx server, so if we enable this proxy redirect this plugin will not work other wise it will work as fine

    Plugin Author Jeff Starr

    (@specialk)

    Well, the plugin still works fine, only the redirect needs help.

    Hi Jeff,

    I checked the JavaScript button (…Check this box if you want to include the external JavaScript file (recommended)., but the

    user-submitted-posts/resources/usp.php is: (inaktiv)

    Have no idea what to enter where with your explanation above. I found this code:

    // add another image
    var x = parseInt($(‘#usp-min-images’).val());
    var y = parseInt($(‘#usp-max-images’).val());
    if (x === 0) x = 1;
    if (x >= y) $(‘#usp_add-another’).hide();
    $(‘#usp_add-another’).click(function(e) {
    e.preventDefault();
    x++;
    var $this = $(this);
    var $new = $this.parent().find(‘input:visible:last’).clone().val(”);
    $(‘#usp-min-images’).val(x);
    if (x < y) {
    $this.before($new.fadeIn(300));
    } else if (x = y) {
    $this.before($new.fadeIn(300));
    $this.hide();
    } else {
    $this.hide();
    }
    $new.removeClass(‘usp-required-file’);
    });

    Kindly advise what to do for getting it active.
    Thanks!!

    BR, Petra

    Hi Jeff!

    Please reply! Thanks…

    BR, Petra

    Plugin Author Jeff Starr

    (@specialk)

    I’m not sure.. it looks like something is confused somewhere, but I have no idea what it could be.. normally the plugin just works, so it could be that something is interfering.

    Plugin Author Jeff Starr

    (@specialk)

    Gonna go ahead and close this thread. Feel free to follow-up with any new infos.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘cannot upload multiple images’ is closed to new replies.