WordPress.org

Ready to get started?Download WordPress

Forums

User Submitted Posts
[resolved] cannot upload multiple images (12 posts)

  1. masadmin
    Member
    Posted 8 months ago #

    cannot add multiple images in post. when I click on "Add another image", it just ends up with /# in the url. I already enabled images and set maximum number of images as 10. multiple image upload just dont work.

    https://wordpress.org/plugins/user-submitted-posts/

  2. Jeff Starr
    Member
    Plugin Author

    Posted 8 months ago #

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

  3. masadmin
    Member
    Posted 8 months ago #

    Can you explain a bit more please?

  4. Jeff Starr
    Member
    Plugin Author

    Posted 8 months ago #

    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.

  5. masadmin
    Member
    Posted 8 months ago #

    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.

  6. Jeff Starr
    Member
    Plugin Author

    Posted 8 months ago #

    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.

  7. masadmin
    Member
    Posted 8 months ago #

    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

  8. Jeff Starr
    Member
    Plugin Author

    Posted 8 months ago #

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

  9. redaktionbp
    Member
    Posted 8 months ago #

    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

  10. redaktionbp
    Member
    Posted 7 months ago #

    Hi Jeff!

    Please reply! Thanks...

    BR, Petra

  11. Jeff Starr
    Member
    Plugin Author

    Posted 7 months ago #

    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.

  12. Jeff Starr
    Member
    Plugin Author

    Posted 5 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.