Forums

Error message when correct answer is given (3 posts)

  1. lvalesko
    Member
    Posted 1 year ago #

    I installed the plug in, activated it, went to their website and copied and pasted their code into the comments.php of my theme, (WordPress Default 1.6 by Michael Heilemann), exactly as they said to.

    The field correctly appears when users want to leave a comment, but even when the correct number is typed in users are told "Error: You have entered the wrong sum in the spam protection field"

  2. justinsamuel
    Member
    Posted 1 year ago #

    If you decided to change the field names through the WordPress options, be sure to change the field names in the code you added to comment.php (and, after correcting the field names in the code you added, be sure to refresh/clear browser cache).

  3. lvalesko
    Member
    Posted 1 year ago #

    I didn't change anything but wonder if I need to...Not sure how to do this... here's what's in the comment.php for Field Names:

    <!-- ****************** Field Names ****************** -->
    <fieldset class="options">
    <legend>Field Names</legend>
    <p style="margin-left: 25px; color: #555; font-size: .85em;">
    <label for="mcsp_opt_fieldname_useranswer">Name of field for user's answer:</label>
    <input name="mcsp_opt_fieldname_useranswer" type="text" id="mcsp_opt_fieldname_useranswer" value="<?php echo $optionarray_def['mcsp_opt_fieldname_useranswer']; ?>" size="30" />

    <label for="mcsp_opt_fieldname_mathresult">Name of hidden field that contains the hash:</label>
    <input name="mcsp_opt_fieldname_mathresult" type="text" id="mcsp_opt_fieldname_mathresult" value="<?php echo $optionarray_def['mcsp_opt_fieldname_mathresult']; ?>" size="30" />
    </p>
    </fieldset>

    And here's what in the Wordpress Options > Field Names:
    User's Answer: mcspvalue
    Hidden Field that Contains the Hash: mcspinfo

    I'm assuming by your post I need to put the Wordpress options into the comment.php code but I don't know exactly where...

    Thanks!
    Lori :-)

Topic Closed

This topic has been closed to new replies.

About this Topic