Edward Swift: AbilityMovingandStorage.com
The changes are VERY simple:
For each of the 3 template files, find the line that says:That's the only change that exists in each of those 3 template files. You can find that line in each file, and put it in the similar spot in the newer version of that same file in your own template.Code:<?php echo recaptcha_get_html(true); ?>
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
This is a great module, and works nice on 1.55d . Is there a way to make it work nice in responsive view at all? Apparently it seems to be an issue with others elsewhere, but not sure if it can be styled within this module?
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
I am using a customized version of the responsive_classic template included in Zen Cart 1.5.5d and those files are no longer in the includes\templates\MY-CUSTOM-RESPONSIVE\templates folder as you suggested, however they are still there in the includes\templates\responsive_classic\templates folder. When I created my own template I used the override system and just copied all of the files from the responsive_classic template to my custom responsive template folder before making any modifications. Did I miss a step here?
Also, help me understand something please. When I use the template override system for my own custom responsive template am I still supposed to use the same override system in the template_default folders as well? I think this is where the confusion is coming into play.
By the way, thank you for all of your help so far in this matter.
Edward Swift: AbilityMovingandStorage.com
Not sure whether you missed a step or undid work that was done. If the file doesn't exist in your renamed custom folder (MY-CUSTOM-RESPONSIVE), then the template_default version of the file will be used. Generally speaking, the files in the template_default folder should remain unchanged. If you need to modify the file(override it) then the template_default version should be brought to your override folder. That is the way of the override system. If it exists in the override directory, then generally speaking ignore the default version. (language files have a little bit of a nuiance to them, but same principle).
Basically you should always be able to go back to the template_default files to see how the base template should look. Then the responsive_classic also should remain unchanged but could be copied to some additional folder and then modified.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Is it possible to only use this plugin on the Contact Us page? Thank you.
There are 3 template files affected, assuming you want the Recaptcha widget on all 3 of those pages:
/includes/templates/YOUR_TEMPLATE/templates/tpl_contact_us_default.php
/includes/templates/YOUR_TEMPLATE/templates/tpl_modules_create_account.php
/includes/templates/YOUR_TEMPLATE/templates/tpl_product_reviews_write_default.php
To update these templates for v1.5.5, specifically for responsive_classic compatibility in your own custom modified responsive_classic:
1. copy their equivalent from responsive_classic over to your modified template. In the case of contact_us this is easy because the file was included.
For the other two, there were no changes from template_default, so the plugin author didn't provide them, since the template_default was already modified to include the widget.
OR, just follow the instructions in the readme to put the recaptcha widget where you wanted it, by adding this line:
For convenience I've updated the plugin zip with complete copies of the affected v155 templates, which you can merge with your modified-responsive_classic template. https://www.zen-cart.com/downloads.php?do=file&id=1455Code:<?php echo recaptcha_get_html(); ?>
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.