Version Notes
Moved the reCAPTCHA library file into extension folder for compatibility with "Contacts Form Captcha" extension;
Download this release
Release Info
Developer | Magento Core Team |
Extension | productreviewcaptcha |
Version | 1.1.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.1.0
- app/code/community/OlegKoval/ProductReviewCaptcha/Block/Form.php +1 -1
- {lib/reCaptcha → app/code/community/OlegKoval/ProductReviewCaptcha/Helper}/recaptchalib.php +0 -0
- app/code/community/OlegKoval/ProductReviewCaptcha/controllers/ProductController.php +1 -1
- app/code/community/OlegKoval/ProductReviewCaptcha/etc/config.xml +7 -1
- package.xml +4 -4
app/code/community/OlegKoval/ProductReviewCaptcha/Block/Form.php
CHANGED
@@ -56,7 +56,7 @@ class OlegKoval_ProductReviewCaptcha_Block_Form extends Mage_Review_Block_Form {
|
|
56 |
//if "Product Review Captcha" module is enabled - then we display template with reCAPTCHA
|
57 |
if (Mage::getStoreConfigFlag(self::XML_PATH_PRC_ENABLED)) {
|
58 |
//include reCaptcha library
|
59 |
-
require_once(Mage::
|
60 |
|
61 |
//create captcha html-code
|
62 |
$publickey = Mage::getStoreConfig(self::XML_PATH_PRC_PUBLIC_KEY);
|
56 |
//if "Product Review Captcha" module is enabled - then we display template with reCAPTCHA
|
57 |
if (Mage::getStoreConfigFlag(self::XML_PATH_PRC_ENABLED)) {
|
58 |
//include reCaptcha library
|
59 |
+
require_once(Mage::getModuleDir('', 'OlegKoval_ProductReviewCaptcha') . DS .'Helper'. DS .'recaptchalib.php');
|
60 |
|
61 |
//create captcha html-code
|
62 |
$publickey = Mage::getStoreConfig(self::XML_PATH_PRC_PUBLIC_KEY);
|
{lib/reCaptcha → app/code/community/OlegKoval/ProductReviewCaptcha/Helper}/recaptchalib.php
RENAMED
File without changes
|
app/code/community/OlegKoval/ProductReviewCaptcha/controllers/ProductController.php
CHANGED
@@ -34,7 +34,7 @@ class OlegKoval_ProductReviewCaptcha_ProductController extends Mage_Review_Produ
|
|
34 |
$post = $this->getRequest()->getPost();
|
35 |
if ($post) {
|
36 |
//include reCaptcha library
|
37 |
-
require_once(Mage::
|
38 |
|
39 |
//validate captcha
|
40 |
$privatekey = Mage::getStoreConfig(self::XML_PATH_PRC_PRIVATE_KEY);
|
34 |
$post = $this->getRequest()->getPost();
|
35 |
if ($post) {
|
36 |
//include reCaptcha library
|
37 |
+
require_once(Mage::getModuleDir('', 'OlegKoval_ProductReviewCaptcha') . DS .'Helper'. DS .'recaptchalib.php');
|
38 |
|
39 |
//validate captcha
|
40 |
$privatekey = Mage::getStoreConfig(self::XML_PATH_PRC_PRIVATE_KEY);
|
app/code/community/OlegKoval/ProductReviewCaptcha/etc/config.xml
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
<config>
|
13 |
<modules>
|
14 |
<OlegKoval_ProductReviewCaptcha>
|
15 |
-
<version>1.
|
16 |
<depends>
|
17 |
<Mage_Contacts/>
|
18 |
</depends>
|
@@ -28,6 +28,12 @@
|
|
28 |
</review>
|
29 |
</blocks>
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
<models>
|
32 |
<productreviewcaptcha>
|
33 |
<class>OlegKoval_ProductReviewCaptcha_Model</class>
|
12 |
<config>
|
13 |
<modules>
|
14 |
<OlegKoval_ProductReviewCaptcha>
|
15 |
+
<version>1.1.0</version>
|
16 |
<depends>
|
17 |
<Mage_Contacts/>
|
18 |
</depends>
|
28 |
</review>
|
29 |
</blocks>
|
30 |
|
31 |
+
<helpers>
|
32 |
+
<productreviewcaptcha>
|
33 |
+
<class>OlegKoval_ProductReviewCaptcha_Helper</class>
|
34 |
+
</productreviewcaptcha>
|
35 |
+
</helpers>
|
36 |
+
|
37 |
<models>
|
38 |
<productreviewcaptcha>
|
39 |
<class>OlegKoval_ProductReviewCaptcha_Model</class>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>productreviewcaptcha</name>
|
4 |
-
<version>1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -10,11 +10,11 @@
|
|
10 |
<description>"Product Review Captcha" extension add in easy way the captcha to "Product Reviews" form and will protect this form from unwanted spambots.
|
11 |

|
12 |
This extension uses reCaptcha library (http://www.google.com/recaptcha).</p></description>
|
13 |
-
<notes>
|
14 |
<authors><author><name>Oleg Koval</name><user>auto-converted</user><email>oleh.koval@gmail.com</email></author></authors>
|
15 |
<date>2012-11-28</date>
|
16 |
-
<time>
|
17 |
-
<contents><target name="magecommunity"><dir name="OlegKoval"><dir name="ProductReviewCaptcha"><dir name="Block"><file name="Form.php" hash="
|
18 |
<compatible/>
|
19 |
<dependencies/>
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>productreviewcaptcha</name>
|
4 |
+
<version>1.1.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
10 |
<description>"Product Review Captcha" extension add in easy way the captcha to "Product Reviews" form and will protect this form from unwanted spambots.
|
11 |

|
12 |
This extension uses reCaptcha library (http://www.google.com/recaptcha).</p></description>
|
13 |
+
<notes>Moved the reCAPTCHA library file into extension folder for compatibility with "Contacts Form Captcha" extension;</notes>
|
14 |
<authors><author><name>Oleg Koval</name><user>auto-converted</user><email>oleh.koval@gmail.com</email></author></authors>
|
15 |
<date>2012-11-28</date>
|
16 |
+
<time>13:42:36</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="422d7135e91cf7ab4b38792da927fd7e"/></dir><dir name="etc"><file name="config.xml" hash="0709850d30aaad9169e6de7aa39922df"/><file name="system.xml" hash="df300a3aa36c9e80c7c13a46892e517d"/></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="3e503ab7756be41684d848deaea746b4"/></dir></target></contents>
|
18 |
<compatible/>
|
19 |
<dependencies/>
|
20 |
</package>
|