WordPress.org

Ready to get started?Download WordPress

Forums

Post From Site
No confirmation (13 posts)

  1. wervil
    Member
    Posted 2 years ago #

    Hi using Post from site after the recent update, and it works perfectly except for one problem.. the form doesnt go away when its done which would allow users to keep clicking submit not knowing they are submitting multiple times.

    shouldnt there be a redirect or a confirmation message there and termination of the form?

    http://wordpress.org/extend/plugins/post-from-site/

  2. Kelly Dwan
    Member
    Plugin Author

    Posted 2 years ago #

    on a successful submission, the form should clear and the page should refresh. can I see your site (to check that the JS is called correctly/the form set up right)?

  3. wervil
    Member
    Posted 2 years ago #

    i thought maybe another plugin could be interfering, but i stopped that one and reinstalled post from site. the site is http://barflyva.com/wordpress/

    Thanks very much!

  4. Flora1234
    Member
    Posted 2 years ago #

    {"image":"none","error":"","success":"Post added, please wait to return to the previous page.","post":208}

    I got this message after submitting the form for POST FROM SITE. Please help- Would be appreciative.

  5. wervil
    Member
    Posted 2 years ago #

    bump, anything on the confirmation and successful submissions?

  6. cynomyso
    Member
    Posted 2 years ago #

    I am getting the same type of message as Flora1234. It seems that everything goes well and the post does get created but it's getting hung up at the very end simply displaying {"image":"none","error":"","success":"Post added, please wait to return to the previous page.","post":450}

  7. stevekane
    Member
    Posted 2 years ago #

    Hi guys,

    I was getting the {"image":"none","error":"","success":"Post added, please wait to return to the previous page.","post":xyz} message too. I realised I didn't have the wp_head() function in my theme's header file. That fixed it for me. Hope that helps.

    - Steve

  8. cynomyso
    Member
    Posted 2 years ago #

    Thank you for the reply stevekane, unfortunately, that was not the problem here.

  9. dilemma123
    Member
    Posted 2 years ago #

    Hi Im facing a problem where in if users enter the post details doesnt get any notification that there post have been sent...

    Theres no success message..

    Please help to resolve it

    My website is http://www.tradeportindia.com/submit-articles/

  10. mkeranen
    Member
    Posted 2 years ago #

    I'm having the same problem. Any progress on this would be appreciated.

  11. wervil
    Member
    Posted 2 years ago #

    It doesn't look like creator is listening. Since I couldn't wait around for an answer i had to go ahead with another plugin. more complicated but works and has support (if you pay for pro, i wouldnt expect too much help if not)

    theres Formidable Pro, and i havent used this but Gravity Forms might be suitable for some, though some of their capabilities are limited

  12. javhy
    Member
    Posted 1 year ago #

    I've found a little trick. In pfs-script.js (line 34) add this:

    //succes message & reload;
                    jQuery('#pfs-alert').addClass('success').html('<p>Done!</p>').show();
                    	jQuery("#pfs_form.pfs").fadeIn('fast');
                        setInterval("location.reload()", 3000);
                    }

    :)

  13. bobbo314
    Member
    Posted 1 year ago #

    Change line 9 of pfs-submit.php to read:
    ini_set('display_errors',0);

    I had the same problem and found that it was because PHP errors were displayed. When parseJSON() was called on line 27 of pfs-script.js it was printing HTML along with the JSON string which parseJSON cannot parse. The author must have used lines 8 & 9 on pfs-submit.php to debug.

    I display the success message similar to how error messages are displayed by changing the complete function in pfs-script.js to read:

    complete: function(request,textStatus,error) {
                    data = jQuery.parseJSON(request.responseText);
                    if (data && data.error) {
                    	//alert(data);
                        jQuery('#pfs-alert').addClass('error').html('<p>'+data.error+'</p>').show();
                        jQuery('.pfs-post-form #post').val('Post');
                    } else {
    		jQuery('form.pfs').reset();
                        jQuery('#pfs-alert').addClass('success').html('<p>'+data.success+'</p>').show();
                        jQuery('.pfs-post-form #post').val('Post');
                    }
    
    		jQuery('html, body').animate({ scrollTop: 0 }, 500);
    
                }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic