productreviewcaptcha - Version 1.2.2

Version Notes

Added visibility/accessibility of settings on store view level; added translations of property labels (page of module configuration on admin side);

Download this release

Release Info

Developer Magento Core Team
Extension productreviewcaptcha
Version 1.2.2
Comparing to
See all releases


Code changes from version 1.2.1 to 1.2.2

app/code/community/OlegKoval/ProductReviewCaptcha/Block/Form.php CHANGED
@@ -60,7 +60,7 @@ class OlegKoval_ProductReviewCaptcha_Block_Form extends Mage_Review_Block_Form {
60
 
61
  //create captcha html-code
62
  $publickey = Mage::getStoreConfig(self::XML_PATH_PRC_PUBLIC_KEY);
63
- $captcha_code = recaptcha_get_html($publickey);
64
 
65
  //get reCaptcha theme name
66
  $theme = Mage::getStoreConfig(self::XML_PATH_PRC_THEME);
60
 
61
  //create captcha html-code
62
  $publickey = Mage::getStoreConfig(self::XML_PATH_PRC_PUBLIC_KEY);
63
+ $captcha_code = recaptcha_get_html($publickey, null, Mage::app()->getStore()->isCurrentlySecure());
64
 
65
  //get reCaptcha theme name
66
  $theme = Mage::getStoreConfig(self::XML_PATH_PRC_THEME);
app/code/community/OlegKoval/ProductReviewCaptcha/Helper/recaptchalib.php CHANGED
@@ -103,7 +103,7 @@ function _recaptcha_http_post($host, $path, $data, $port = 80) {
103
 
104
  * @return string - The HTML to be embedded in the user's form.
105
  */
106
- function recaptcha_get_html ($pubkey, $error = null, $use_ssl = false)
107
  {
108
  if ($pubkey == null || $pubkey == '') {
109
  die ("To use reCAPTCHA you must get an API key from <a href='https://www.google.com/recaptcha/admin/create'>https://www.google.com/recaptcha/admin/create</a>");
103
 
104
  * @return string - The HTML to be embedded in the user's form.
105
  */
106
+ function recaptcha_get_html ($pubkey, $error = null, $use_ssl = true)
107
  {
108
  if ($pubkey == null || $pubkey == '') {
109
  die ("To use reCAPTCHA you must get an API key from <a href='https://www.google.com/recaptcha/admin/create'>https://www.google.com/recaptcha/admin/create</a>");
app/code/community/OlegKoval/ProductReviewCaptcha/etc/config.xml CHANGED
@@ -12,7 +12,7 @@
12
  <config>
13
  <modules>
14
  <OlegKoval_ProductReviewCaptcha>
15
- <version>1.2.0</version>
16
  <depends>
17
  <Mage_Contacts/>
18
  </depends>
12
  <config>
13
  <modules>
14
  <OlegKoval_ProductReviewCaptcha>
15
+ <version>1.2.1</version>
16
  <depends>
17
  <Mage_Contacts/>
18
  </depends>
app/code/community/OlegKoval/ProductReviewCaptcha/etc/system.xml CHANGED
@@ -29,7 +29,7 @@
29
  <show_in_store>1</show_in_store>
30
  </prc_enabled>
31
  <prc_public_key translate="label">
32
- <label>Public Key</label>
33
  <comment>You got this from the signup page: https://www.google.com/recaptcha/admin/create</comment>
34
  <frontend_type>text</frontend_type>
35
  <sort_order>120</sort_order>
@@ -38,7 +38,7 @@
38
  <show_in_store>1</show_in_store>
39
  </prc_public_key>
40
  <prc_private_key translate="label">
41
- <label>Private Key</label>
42
  <comment>You got this from the signup page: https://www.google.com/recaptcha/admin/create</comment>
43
  <frontend_type>text</frontend_type>
44
  <sort_order>130</sort_order>
29
  <show_in_store>1</show_in_store>
30
  </prc_enabled>
31
  <prc_public_key translate="label">
32
+ <label>Site Key</label>
33
  <comment>You got this from the signup page: https://www.google.com/recaptcha/admin/create</comment>
34
  <frontend_type>text</frontend_type>
35
  <sort_order>120</sort_order>
38
  <show_in_store>1</show_in_store>
39
  </prc_public_key>
40
  <prc_private_key translate="label">
41
+ <label>Secret Key</label>
42
  <comment>You got this from the signup page: https://www.google.com/recaptcha/admin/create</comment>
43
  <frontend_type>text</frontend_type>
44
  <sort_order>130</sort_order>
app/design/frontend/base/default/template/productreviewcaptcha/form.phtml CHANGED
@@ -37,6 +37,7 @@
37
  </script>
38
  <form action="<?php echo $this->getAction() ?>" method="post" id="review-form">
39
  <fieldset>
 
40
  <?php echo $this->getChildHtml('form_fields_before')?>
41
  <h3><?php echo $this->__("You're reviewing:"); ?> <span><?php echo $this->htmlEscape($this->getProductInfo()->getName()) ?></span></h3>
42
  <?php if( $this->getRatings() && $this->getRatings()->getSize()): ?>
37
  </script>
38
  <form action="<?php echo $this->getAction() ?>" method="post" id="review-form">
39
  <fieldset>
40
+ <?php echo $this->getBlockHtml('formkey'); ?>
41
  <?php echo $this->getChildHtml('form_fields_before')?>
42
  <h3><?php echo $this->__("You're reviewing:"); ?> <span><?php echo $this->htmlEscape($this->getProductInfo()->getName()) ?></span></h3>
43
  <?php if( $this->getRatings() && $this->getRatings()->getSize()): ?>
package.xml CHANGED
@@ -1,20 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>productreviewcaptcha</name>
4
- <version>1.2.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This module add captcha to "Product Reviews" form.</summary>
10
- <description>"Product Review Captcha" extension add in easy way the captcha to "Product Reviews" form and will protect this form from unwanted spambots.&#xD;
11
- &#xD;
12
- This extension uses reCaptcha library (http://www.google.com/recaptcha).&lt;/p&gt;</description>
13
  <notes>Added visibility/accessibility of settings on store view level; added translations of property labels (page of module configuration on admin side);</notes>
14
  <authors><author><name>Oleg Koval</name><user>auto-converted</user><email>oleh.koval@gmail.com</email></author></authors>
15
- <date>2013-04-04</date>
16
- <time>08:45:52</time>
17
- <contents><target name="magecommunity"><dir name="OlegKoval"><dir name="ProductReviewCaptcha"><dir name="Block"><file name="Form.php" hash="c180eb7b2cea394d2290b2436f313bbb"/></dir><dir name="Helper"><file name="recaptchalib.php" hash="b206569ed973563107c29902ca7ab35b"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><dir name="Dropdown"><file name="Lang.php" hash="2378589b507b2c57c04831cf6ac544b0"/><file name="Theme.php" hash="be96ab4e09cd14b48a033c467ae74901"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="ProductController.php" hash="560236e12a38cbbe7d07597413043e8d"/></dir><dir name="etc"><file name="config.xml" hash="5e7a053b0420313104433bbe053a6cb4"/><file name="system.xml" hash="9b6416091033f4b6e13241074e70994a"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="OlegKoval_ProductReviewCaptcha.xml" hash="f83ed30bb9b3b3fbecd4099cf23fa162"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="productreviewcaptcha"><file name="form.phtml" hash="fa0f697bd7efe03446385e78de9f7ca9"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="OlegKoval_ProductReviewCaptcha.csv" hash="f2362617a07150c1783bb5e029e72cb5"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies/>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>productreviewcaptcha</name>
4
+ <version>1.2.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This module add captcha to "Product Reviews" form.</summary>
10
+ <description>"Product Review Captcha" extension add in easy way the captcha to "Product Reviews" form and will protect this form from unwanted spambots.This extension uses reCaptcha library (http://www.google.com/recaptcha).&lt;/p&gt;</description>
 
 
11
  <notes>Added visibility/accessibility of settings on store view level; added translations of property labels (page of module configuration on admin side);</notes>
12
  <authors><author><name>Oleg Koval</name><user>auto-converted</user><email>oleh.koval@gmail.com</email></author></authors>
13
+ <date>2016-01-09</date>
14
+ <time>14:23:51</time>
15
+ <contents><target name="magecommunity"><dir name="OlegKoval"><dir name="ProductReviewCaptcha"><dir name="Block"><file name="Form.php" hash="5e015c8b316403e44998b3c78050a9b9"/></dir><dir name="Helper"><file name="recaptchalib.php" hash="4392db1d69875fd683b2728bd9a5d5f9"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><dir name="Dropdown"><file name="Lang.php" hash="2378589b507b2c57c04831cf6ac544b0"/><file name="Theme.php" hash="be96ab4e09cd14b48a033c467ae74901"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="ProductController.php" hash="560236e12a38cbbe7d07597413043e8d"/></dir><dir name="etc"><file name="config.xml" hash="449f579876655522028977e1e543a7be"/><file name="system.xml" hash="50de1f643b20daab4030ec3fbdc99127"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="OlegKoval_ProductReviewCaptcha.xml" hash="f83ed30bb9b3b3fbecd4099cf23fa162"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="productreviewcaptcha"><file name="form.phtml" hash="b403758b33f501cfeb92544b8a62f70d"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="OlegKoval_ProductReviewCaptcha.csv" hash="f2362617a07150c1783bb5e029e72cb5"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>