WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery Voting
[resolved] Plugin freeze after voting (7 posts)

  1. fmonserrate
    Member
    Posted 1 year ago #

    Hi shauno,

    After voting plugin freeze....

    Please see here:
    http://petspot.info/galeria/

    and please submit a vote...you will understand.

    I have Pro version.

    Best Regards

    http://wordpress.org/extend/plugins/nextgen-gallery-voting/

  2. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    Hi fmonserrate

    I seems as though the ajax isn't being picked up properly once the vote is saved. From what I can see in your source code, it seems you are running some sort of HTML compression plugin or code. The code most probably removed HTML comment (eg <!-- this is a comment -->).
    The voting process needs to have comments outputted in the source code, as it using them to parse the response and understand the vote.

    Try disabling that plugin/code, and testing again.

  3. fmonserrate
    Member
    Posted 1 year ago #

    Hello!

    yes...you are right!

    I have some code in functions.php to compress HTML...if i remove that...your plugin works good!

    Thank's one more time for the great support!

    Best Regards

  4. fmonserrate
    Member
    Posted 1 year ago #

    ...by the way ... i have some chance to put both work together?

  5. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    Hi again fmonserrate

    Can you email me the code you are using to shaunalberts AT gmail DOT com. I will have a look at it and see if I can make it work with NGG Voting. I can't promise anything though :)

  6. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    Just to resolve this for anyone else coming across it. The site was using a HTML compression class named "WP_HTML_Compression", and it was removing HTML comments from the source code. NGG Voting needs HTML comments to parse the JS response with AJAX voting. Simply setting the variable $remove_comments to false in the class definition solved the problem.

  7. fmonserrate
    Member
    Posted 1 year ago #

    ok! Thank you very much!

    Have a nice weekend!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.