Version Notes
Fixed captcha displaying bug in IE10.
Download this release
Release Info
Developer | Sitewards Magento Team |
Extension | Sitewards_Captcha |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
app/code/community/Sitewards/Captcha/etc/config.xml
CHANGED
@@ -5,101 +5,101 @@
|
|
5 |
*
|
6 |
* @category Sitewards
|
7 |
* @package Sitewards_Captcha
|
8 |
-
* @copyright Copyright (c)
|
9 |
*/
|
10 |
-->
|
11 |
<config>
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
</config>
|
5 |
*
|
6 |
* @category Sitewards
|
7 |
* @package Sitewards_Captcha
|
8 |
+
* @copyright Copyright (c) 2014 Sitewards GmbH (http://www.sitewards.com/)
|
9 |
*/
|
10 |
-->
|
11 |
<config>
|
12 |
+
<modules>
|
13 |
+
<Sitewards_Captcha>
|
14 |
+
<version>1.0.2</version>
|
15 |
+
</Sitewards_Captcha>
|
16 |
+
</modules>
|
17 |
+
<global>
|
18 |
+
<blocks>
|
19 |
+
<sendfriend>
|
20 |
+
<rewrite>
|
21 |
+
<send>Sitewards_Captcha_Block_Sendfriend_Send</send>
|
22 |
+
</rewrite>
|
23 |
+
</sendfriend>
|
24 |
+
<sitewards_captcha>
|
25 |
+
<class>Sitewards_Captcha_Block</class>
|
26 |
+
</sitewards_captcha>
|
27 |
+
</blocks>
|
28 |
+
<helpers>
|
29 |
+
<captcha>
|
30 |
+
<rewrite>
|
31 |
+
<data>Sitewards_Captcha_Helper_Data</data>
|
32 |
+
</rewrite>
|
33 |
+
</captcha>
|
34 |
+
</helpers>
|
35 |
+
<models>
|
36 |
+
<captcha>
|
37 |
+
<rewrite>
|
38 |
+
<captchachecker>Sitewards_Captcha_Model_CaptchaChecker</captchachecker>
|
39 |
+
</rewrite>
|
40 |
+
</captcha>
|
41 |
+
<sendfriend>
|
42 |
+
<rewrite>
|
43 |
+
<sendfriend>Sitewards_Captcha_Model_Sendfriend</sendfriend>
|
44 |
+
</rewrite>
|
45 |
+
</sendfriend>
|
46 |
+
</models>
|
47 |
+
</global>
|
48 |
+
<frontend>
|
49 |
+
<layout>
|
50 |
+
<updates>
|
51 |
+
<sitewards_productemail>
|
52 |
+
<file>sitewards/captcha.xml</file>
|
53 |
+
</sitewards_productemail>
|
54 |
+
</updates>
|
55 |
+
</layout>
|
56 |
+
<routers>
|
57 |
+
<sendfriend>
|
58 |
+
<args>
|
59 |
+
<modules>
|
60 |
+
<Sitewards_Captcha before="Mage_Sendfriend">Sitewards_Captcha</Sitewards_Captcha>
|
61 |
+
</modules>
|
62 |
+
</args>
|
63 |
+
</sendfriend>
|
64 |
+
</routers>
|
65 |
+
<translate>
|
66 |
+
<modules>
|
67 |
+
<Sitewards_Captcha>
|
68 |
+
<files>
|
69 |
+
<default>Sitewards_Captcha.csv</default>
|
70 |
+
</files>
|
71 |
+
</Sitewards_Captcha>
|
72 |
+
</modules>
|
73 |
+
</translate>
|
74 |
+
</frontend>
|
75 |
+
<default>
|
76 |
+
<sendfriend>
|
77 |
+
<email>
|
78 |
+
<enabled>1</enabled>
|
79 |
+
<template>sendfriend_email_template</template>
|
80 |
+
<allow_guest>1</allow_guest>
|
81 |
+
<max_recipients>5</max_recipients>
|
82 |
+
<max_per_hour>999</max_per_hour>
|
83 |
+
<check_by>0</check_by>
|
84 |
+
</email>
|
85 |
+
</sendfriend>
|
86 |
+
<customer>
|
87 |
+
<captcha>
|
88 |
+
<always_for>
|
89 |
+
<product_sendtofriend_form_captcha>1</product_sendtofriend_form_captcha>
|
90 |
+
</always_for>
|
91 |
+
<max_till_captcha_times>3</max_till_captcha_times>
|
92 |
+
<max_till_captcha_timeframe_seconds>3600</max_till_captcha_timeframe_seconds>
|
93 |
+
</captcha>
|
94 |
+
</customer>
|
95 |
+
<captcha translate="label">
|
96 |
+
<frontend>
|
97 |
+
<areas>
|
98 |
+
<product_sendtofriend_form_captcha>
|
99 |
+
<label>Email to a Friend</label>
|
100 |
+
</product_sendtofriend_form_captcha>
|
101 |
+
</areas>
|
102 |
+
</frontend>
|
103 |
+
</captcha>
|
104 |
+
</default>
|
105 |
</config>
|
app/design/frontend/base/default/layout/sitewards/captcha.xml
CHANGED
@@ -6,33 +6,39 @@
|
|
6 |
*
|
7 |
* @category Sitewards
|
8 |
* @package Sitewards_Captcha
|
9 |
-
* @copyright Copyright (c)
|
10 |
*/
|
11 |
-->
|
12 |
<layout>
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
</layout>
|
6 |
*
|
7 |
* @category Sitewards
|
8 |
* @package Sitewards_Captcha
|
9 |
+
* @copyright Copyright (c) 2014 Sitewards GmbH (http://www.sitewards.com/)
|
10 |
*/
|
11 |
-->
|
12 |
<layout>
|
13 |
+
<sendfriend_product_send>
|
14 |
+
<reference name="root">
|
15 |
+
<action method="setTemplate"><template>page/popup.phtml</template></action>
|
16 |
+
</reference>
|
17 |
+
<reference name="sendfriend.send">
|
18 |
+
<action method="setTemplate"><template>sitewards/captcha/sendfriend/send.phtml</template></action>
|
19 |
+
<block type="captcha/captcha" name="captcha">
|
20 |
+
<action method="setFormId"><formId>product_sendtofriend_form_captcha</formId></action>
|
21 |
+
<action method="setImgWidth"><width>230</width></action>
|
22 |
+
<action method="setImgHeight"><height>50</height></action>
|
23 |
+
<action method="setShowCaptcha"><value>1</value></action>
|
24 |
+
</block>
|
25 |
+
</reference>
|
26 |
+
<block type="captcha/captcha" name="captcha.sendtofriend">
|
27 |
+
<reference name="head">
|
28 |
+
<action method="addJs"><file>mage/captcha.js</file></action>
|
29 |
+
</reference>
|
30 |
+
<action method="setFormId"><formId>product_sendtofriend_form_captcha</formId></action>
|
31 |
+
</block>
|
32 |
+
</sendfriend_product_send>
|
33 |
+
<sendfriend_product_closepopup>
|
34 |
+
<block type="page/html" name="root" template="sitewards/captcha/closepopup.phtml" />
|
35 |
+
</sendfriend_product_closepopup>
|
36 |
+
<catalog_product_view>
|
37 |
+
<reference name="head">
|
38 |
+
<action method="addItem"><type>js</type><name>prototype/window.js</name></action>
|
39 |
+
<action method="addItem"><type>js_css</type><name>prototype/windows/themes/default.css</name></action>
|
40 |
+
<action method="addCss"><name>lib/prototype/windows/themes/magento.css</name></action>
|
41 |
+
<action method="addItem"><type>js</type><name>sitewards/captcha.js</name></action>
|
42 |
+
</reference>
|
43 |
+
</catalog_product_view>
|
44 |
</layout>
|
app/design/frontend/base/default/template/sitewards/captcha/sendfriend/send.phtml
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
*
|
7 |
* @category Sitewards
|
8 |
* @package Sitewards_Captcha
|
9 |
-
* @copyright Copyright (c)
|
10 |
*/
|
11 |
/* @var $this Mage_Sendfriend_Block_Send */
|
12 |
?>
|
@@ -105,12 +105,7 @@
|
|
105 |
<div class="fieldset">
|
106 |
<h2 class="legend"><?php echo $this->__('Captcha:') ?></h2>
|
107 |
<ul class="form-list" id="recipients_options">
|
108 |
-
<?php
|
109 |
-
$oCaptchaBlock = Mage::getBlockSingleton('captcha/captcha')
|
110 |
-
->setFormId('product_sendtofriend_form_captcha')
|
111 |
-
->setShowCaptcha(true);
|
112 |
-
echo $oCaptchaBlock->toHtml();
|
113 |
-
?>
|
114 |
</ul>
|
115 |
</div>
|
116 |
<?php endif;?>
|
6 |
*
|
7 |
* @category Sitewards
|
8 |
* @package Sitewards_Captcha
|
9 |
+
* @copyright Copyright (c) 2014 Sitewards GmbH (http://www.sitewards.com/)
|
10 |
*/
|
11 |
/* @var $this Mage_Sendfriend_Block_Send */
|
12 |
?>
|
105 |
<div class="fieldset">
|
106 |
<h2 class="legend"><?php echo $this->__('Captcha:') ?></h2>
|
107 |
<ul class="form-list" id="recipients_options">
|
108 |
+
<?php echo $this->getChildHtml('captcha');?>
|
|
|
|
|
|
|
|
|
|
|
109 |
</ul>
|
110 |
</div>
|
111 |
<?php endif;?>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Sitewards_Captcha</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/gpl-license.php">GPL</license>
|
7 |
<channel>community</channel>
|
@@ -12,11 +12,11 @@
|
|
12 |

|
13 |
1. Install the extension
|
14 |
2. Go to System -> Configuration -> Customers -> Customer Configuration->Captcha and select "Email to a Friend" option in Forms field.</description>
|
15 |
-
<notes>
|
16 |
<authors><author><name>Sitewards Magento Team</name><user>sitewards</user><email>magento@sitewards.com</email></author></authors>
|
17 |
-
<date>
|
18 |
-
<time>
|
19 |
-
<contents><target name="magecommunity"><dir name="Sitewards"><dir name="Captcha"><dir name="Block"><dir name="Sendfriend"><file name="Send.php" hash="8875265013ec45ffcfe92be6ad2326da"/></dir></dir><dir name="Helper"><file name="Data.php" hash="a268ddaabc47fcbc323e759c873ae869"/></dir><dir name="Model"><file name="CaptchaChecker.php" hash="c6b275af326acd6f2fb95adceb1a23f1"/><file name="Sendfriend.php" hash="5c56a12b97585752cc04ea42c6207540"/></dir><dir name="controllers"><file name="ProductController.php" hash="164a0aa604fd92e30a49ce27a73424ec"/></dir><dir name="etc"><file name="config.xml" hash="
|
20 |
<compatible/>
|
21 |
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
22 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Sitewards_Captcha</name>
|
4 |
+
<version>1.0.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/gpl-license.php">GPL</license>
|
7 |
<channel>community</channel>
|
12 |

|
13 |
1. Install the extension
|
14 |
2. Go to System -> Configuration -> Customers -> Customer Configuration->Captcha and select "Email to a Friend" option in Forms field.</description>
|
15 |
+
<notes>Fixed captcha displaying bug in IE10.</notes>
|
16 |
<authors><author><name>Sitewards Magento Team</name><user>sitewards</user><email>magento@sitewards.com</email></author></authors>
|
17 |
+
<date>2014-03-14</date>
|
18 |
+
<time>08:35:43</time>
|
19 |
+
<contents><target name="magecommunity"><dir name="Sitewards"><dir name="Captcha"><dir name="Block"><dir name="Sendfriend"><file name="Send.php" hash="8875265013ec45ffcfe92be6ad2326da"/></dir></dir><dir name="Helper"><file name="Data.php" hash="a268ddaabc47fcbc323e759c873ae869"/></dir><dir name="Model"><file name="CaptchaChecker.php" hash="c6b275af326acd6f2fb95adceb1a23f1"/><file name="Sendfriend.php" hash="5c56a12b97585752cc04ea42c6207540"/></dir><dir name="controllers"><file name="ProductController.php" hash="164a0aa604fd92e30a49ce27a73424ec"/></dir><dir name="etc"><file name="config.xml" hash="4f42e8fa401b748d11c1c1b7124498cf"/><file name="system.xml" hash="b84ba97ea80312adb7f38c2187670aa5"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sitewards_Captcha.xml" hash="abf4c910ece09269ce5d7fc73c3121a7"/></dir></target><target name="magelocale"><dir name="de_DE"><file name="Sitewards_Captcha.csv" hash="f76b6cded4bd7c78de96685e5cac0519"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="sitewards"><dir name="captcha"><file name="closepopup.phtml" hash="6e963b95e4d7d568b190414fa0c514f6"/><dir name="sendfriend"><file name="send.phtml" hash="ebe69468f3dd67fb6d044429f01b2814"/></dir></dir></dir></dir><dir name="layout"><dir name="sitewards"><file name="captcha.xml" hash="6803facc3933b31d40f7ed9e418c6b44"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="sitewards"><file name="captcha.js" hash="9662f0c2a5ff7f3eb898df7dd6df39a4"/></dir></dir></target></contents>
|
20 |
<compatible/>
|
21 |
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
22 |
</package>
|