
Originally Posted by
swguy
Sorry, I should have been more clear. Scenario:
- Cart is running 1.5.6 plus zenNonCaptcha.
- User wants to go to 1.5.7.
- What changes should be made?
Maybe run the uninstall.sql for example?
From the templates where it was installed, remove the email-pot divs and the block with if (SPAM_USE_SLIDER == 'true') ?
My Bad.. I would fully remove non-captcha files, I see I missed adding this part. the template files modified should be replaced or edited to match default template files of ZC1.5.7..
remove all three honeypot lines.
Code:
<div class="email-pot">
<label for="email-us"></label>
<?php echo zen_draw_input_field(SPAM_TEST_TEXT, '', ' id="email-us" title="do not fill in!" placeholder="do not fill in!" autocomplete="off"', 'email'); ?>
</div>
<div class="email-pot">
<p><?php echo HUMAN_TEXT_NOT_DISPLAYED; ?></p>
<?php echo zen_draw_radio_field(SPAM_TEST_USER, 'H1', '', 'id="user-1"') . '<span class="input-group-addon"><i class="fa fa-male fa-2x"></i></span>' . zen_draw_radio_field(SPAM_TEST_USER, 'C2', '', 'id="user-2"') . '<span class="input-group-addon"><i class="fa fa-laptop fa-2x"></i></span>'; ?>
</div>
<?php if (SPAM_USE_SLIDER == 'true') { ?>
<div class="slidecontainer">
<p><?php echo HUMAN_TEXT_DISPLAYED; ?></p>
<?php echo zen_draw_input_field(SPAM_TEST_IQ, '', ' min="0" max="50" value="25" class="slider" id="id1"', 'range'); ?>
<br /><br />
<span>Value:</span> <span id="f" style="font-weight:bold;color:red"></span>
</div>
<?php } ?>
after removing the ADMIN/includes/functions/extra_functions/init_noncaptcha.php file open the uninstall.sql file in a text editor, copy all and paste in the ADMIN Sql patch tool and run..
If its missing..
Code:
DELETE FROM configuration WHERE configuration_key = 'SPAM_TEST_TEXT';
DELETE FROM configuration WHERE configuration_key = 'SPAM_TEST_USER';
DELETE FROM configuration WHERE configuration_key = 'SPAM_TEST_IQ';
DELETE FROM configuration WHERE configuration_key = 'SPAM_TEST';
DELETE FROM configuration WHERE configuration_key = 'HUMAN_TEXT_DISPLAYED';
DELETE FROM configuration WHERE configuration_key = 'HUMAN_TEXT_NOT_DISPLAYED';
DELETE FROM configuration WHERE configuration_key = 'SPAM_ERROR';
DELETE FROM configuration WHERE configuration_key = 'SPAM_USE_SLIDER';
DELETE FROM configuration WHERE configuration_key = 'SPAM_ANSWER';
After all is removed, upgrade to ZC1.5.7 per instructions.
I need to do some looking before I can tell you how to update other template files not part of the default install. The mod I'm updating right now well be part of that process/testing.
Bookmarks