Clockworkgeek_Rememberme - Version 0.4.0

Version Notes

Two new options have been added in System > Configuration > Customer Configuration > Remember Me.

Download this release

Release Info

Developer Clockworkgeek
Extension Clockworkgeek_Rememberme
Version 0.4.0
Comparing to
See all releases


Code changes from version 0.3.2 to 0.4.0

app/code/community/Clockworkgeek/Rememberme/etc/config.xml CHANGED
@@ -19,7 +19,7 @@
19
  <config>
20
  <modules>
21
  <Clockworkgeek_Rememberme>
22
- <version>0.3.2</version>
23
  </Clockworkgeek_Rememberme>
24
  </modules>
25
  <global>
19
  <config>
20
  <modules>
21
  <Clockworkgeek_Rememberme>
22
+ <version>0.4.0</version>
23
  </Clockworkgeek_Rememberme>
24
  </modules>
25
  <global>
app/code/community/Clockworkgeek/Rememberme/etc/system.xml ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <sections>
4
+ <customer>
5
+ <groups>
6
+ <rememberme translate="label">
7
+ <label>Remember Me</label>
8
+ <frontend_type>text</frontend_type>
9
+ <sort_order>200</sort_order>
10
+ <show_in_default>1</show_in_default>
11
+ <show_in_website>1</show_in_website>
12
+ <show_in_store>1</show_in_store>
13
+ <fields>
14
+ <checked translate="label">
15
+ <label>Pre-select checkbox</label>
16
+ <frontend_type>select</frontend_type>
17
+ <source_model>adminhtml/system_config_source_yesno</source_model>
18
+ <sort_order>10</sort_order>
19
+ <show_in_default>1</show_in_default>
20
+ <show_in_website>1</show_in_website>
21
+ <show_in_store>1</show_in_store>
22
+ </checked>
23
+ <warning translate="label comment">
24
+ <label>Public computer warning</label>
25
+ <comment>It is inadvisable for customers to select the "Remember Me" checkbox if their computer might be used by someone else. This option adds a warning reminding them of the risk.</comment>
26
+ <frontend_type>select</frontend_type>
27
+ <source_model>adminhtml/system_config_source_yesno</source_model>
28
+ <sort_order>20</sort_order>
29
+ <show_in_default>1</show_in_default>
30
+ <show_in_website>1</show_in_website>
31
+ <show_in_store>1</show_in_store>
32
+ </warning>
33
+ </fields>
34
+ </rememberme>
35
+ </groups>
36
+ </customer>
37
+ </sections>
38
+ </config>
app/design/frontend/base/default/template/rememberme/form/login.phtml CHANGED
@@ -64,8 +64,13 @@
64
  <?php /* Begin rememberme customisation */ ?>
65
  <li>
66
  <div class="input-box">
67
- <label for="rememberme" class="input-box"><input type="checkbox" name="login[rememberme]" class="checkbox left" id="rememberme" title="<?php echo $this->__('Remember me') ?>" style="margin-top: 2px" />
68
- <?php echo $this->__('Remember me on this computer') ?></label>
 
 
 
 
 
69
  </div>
70
  </li>
71
  <?php /* End rememberme customisation */ ?>
64
  <?php /* Begin rememberme customisation */ ?>
65
  <li>
66
  <div class="input-box">
67
+ <label for="rememberme" class="input-box">
68
+ <input type="checkbox" name="login[rememberme]" class="checkbox left" id="rememberme" title="<?php echo $this->__('Remember me') ?>" style="margin-top: 2px" <?php if (Mage::getStoreConfigFlag('customer/rememberme/checked')) echo 'checked="checked"'; ?>/>
69
+ <?php echo $this->__('Remember me on this computer') ?>
70
+ </label>
71
+ <?php if (Mage::getStoreConfigFlag('customer/rememberme/warning')): ?>
72
+ <p><strong><?php echo $this->__('Caution!') ?></strong> <?php echo $this->__('Anyone using this computer might be able to access your account if you check this box.') ?></p>
73
+ <?php endif; ?>
74
  </div>
75
  </li>
76
  <?php /* End rememberme customisation */ ?>
app/design/frontend/base/default/template/rememberme/form/mini.login.phtml CHANGED
@@ -33,7 +33,7 @@
33
  <label for="mini-login"><?php echo $this->__('Email:') ?></label><input type="text" name="login[username]" id="mini-login" class="input-text" />
34
  <label for="mini-password"><?php echo $this->__('Password:') ?></label><input type="password" name="login[password]" id="mini-password" class="input-text" />
35
  <?php /* Begin rememberme customisation */ ?>
36
- <label for="mini-rememberme" class="input-box"><input type="checkbox" name="login[rememberme]" id="mini-rememberme" class="right" /> <?php echo $this->__('Remember me:') ?></label>
37
  <?php /* End rememberme customisation */ ?>
38
  <div class="actions">
39
  <button type="submit" class="button"><span><span><?php echo $this->__('Login') ?></span></span></button>
33
  <label for="mini-login"><?php echo $this->__('Email:') ?></label><input type="text" name="login[username]" id="mini-login" class="input-text" />
34
  <label for="mini-password"><?php echo $this->__('Password:') ?></label><input type="password" name="login[password]" id="mini-password" class="input-text" />
35
  <?php /* Begin rememberme customisation */ ?>
36
+ <label for="mini-rememberme" class="input-box"><input type="checkbox" name="login[rememberme]" id="mini-rememberme" class="right" <?php if (Mage::getStoreConfigFlag('customer/rememberme/checked')) echo 'checked="checked"'; ?>/> <?php echo $this->__('Remember me:') ?></label>
37
  <?php /* End rememberme customisation */ ?>
38
  <div class="actions">
39
  <button type="submit" class="button"><span><span><?php echo $this->__('Login') ?></span></span></button>
app/design/frontend/base/default/template/rememberme/onepage/login.phtml DELETED
@@ -1,128 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
- */
26
- ?>
27
- <div class="col2-set">
28
- <?php echo $this->getChildHtml('login_before')?>
29
- <div class="col-1">
30
- <h3><?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?><?php echo $this->__('Checkout as a Guest or Register') ?><?php else: ?><?php echo $this->__('Register to Create an Account') ?><?php endif; ?></h3>
31
- <?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
32
- <p><?php echo $this->__('Register with us for future convenience:') ?></p>
33
- <?php else: ?>
34
- <p><strong><?php echo $this->__('Register and save time!') ?></strong><br />
35
- <?php echo $this->__('Register with us for future convenience:') ?></p>
36
- <ul>
37
- <li><?php echo $this->__('Fast and easy check out') ?></li>
38
- <li><?php echo $this->__('Easy access to your order history and status') ?></li>
39
- </ul>
40
- <?php endif; ?>
41
- <?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
42
- <ul class="form-list">
43
- <?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
44
- <li class="control">
45
- <input type="radio" name="checkout_method" id="login:guest" value="guest"<?php if($this->getQuote()->getCheckoutMethod()==Mage_Checkout_Model_Type_Onepage::METHOD_GUEST): ?> checked="checked"<?php endif; ?> class="radio" /><label for="login:guest"><?php echo $this->__('Checkout as Guest') ?></label>
46
- </li>
47
- <?php endif; ?>
48
- <li class="control">
49
- <input type="radio" name="checkout_method" id="login:register" value="register"<?php if($this->getQuote()->getCheckoutMethod()==Mage_Checkout_Model_Type_Onepage::METHOD_REGISTER || !$this->getQuote()->isAllowedGuestCheckout()): ?> checked="checked"<?php endif ?> class="radio" /><label for="login:register"><?php echo $this->__('Register') ?></label>
50
- </li>
51
- </ul>
52
- <h4><?php echo $this->__('Register and save time!') ?></h4>
53
- <p><?php echo $this->__('Register with us for future convenience:') ?></p>
54
- <ul class="ul">
55
- <li><?php echo $this->__('Fast and easy check out') ?></li>
56
- <li><?php echo $this->__('Easy access to your order history and status') ?></li>
57
- </ul>
58
- <?php else: ?>
59
- <input type="hidden" name="checkout_method" id="login:register" value="register" checked="checked" />
60
- <?php endif; ?>
61
- </div>
62
- <div class="col-2">
63
- <h3><?php echo $this->__('Login') ?></h3>
64
- <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
65
- <form id="login-form" action="<?php echo $this->getPostAction() ?>" method="post">
66
- <fieldset>
67
- <h4><?php echo $this->__('Already registered?') ?></h4>
68
- <p><?php echo $this->__('Please log in below:') ?></p>
69
- <ul class="form-list">
70
- <li>
71
- <label for="login-email" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
72
- <div class="input-box">
73
- <input type="text" class="input-text required-entry validate-email" id="login-email" name="login[username]" value="<?php echo $this->htmlEscape($this->getUsername()) ?>" />
74
- </div>
75
- </li>
76
- <li>
77
- <label for="login-password" class="required"><em>*</em><?php echo $this->__('Password') ?></label>
78
- <div class="input-box">
79
- <input type="password" class="input-text required-entry" id="login-password" name="login[password]" />
80
- </div>
81
- </li>
82
- <?php /* Begin rememberme customisation */ ?>
83
- <li>
84
- <div class="input-box">
85
- <label for="rememberme" class="input-box"><input type="checkbox" name="login[rememberme]" class="checkbox left" id="rememberme" title="<?php echo $this->__('Remember me') ?>" style="margin-top: 2px" />
86
- <?php echo $this->__('Remember me on this computer') ?></label>
87
- </div>
88
- </li>
89
- <?php /* End rememberme customisation */ ?>
90
- </ul>
91
- </fieldset>
92
- </form>
93
- </div>
94
- </div>
95
- <div class="col2-set">
96
- <div class="col-1">
97
- <div class="buttons-set">
98
- <p class="required">&nbsp;</p>
99
- <button type="button" class="button" onclick="checkout.setMethod();"><span><span><?php echo ($this->getQuote()->isAllowedGuestCheckout() ? $this->__('Continue') : $this->__('Register')) ?></span></span></button>
100
- </div>
101
- </div>
102
- <div class="col-2">
103
- <div class="buttons-set">
104
- <p class="required"><?php echo $this->__('* Required Fields') ?></p>
105
- <a href="<?php echo $this->getUrl('customer/account/forgotpassword') ?>" class="f-left"><?php echo $this->__('Forgot your password?') ?></a>
106
- <button type="submit" class="button" onclick="onepageLogin(this)"><span><span><?php echo $this->__('Login') ?></span></span></button>
107
- </div>
108
- </div>
109
- </div>
110
- <script type="text/javascript">
111
- //<![CDATA[
112
- var loginForm = new VarienForm('login-form', true);
113
- $('login-email').observe('keypress', bindLoginPost);
114
- $('login-password').observe('keypress', bindLoginPost);
115
- function bindLoginPost(evt){
116
- if (evt.keyCode == Event.KEY_RETURN) {
117
- loginForm.submit();
118
- }
119
- }
120
- function onepageLogin(button)
121
- {
122
- if(loginForm.validator && loginForm.validator.validate()){
123
- button.disabled = true;
124
- loginForm.submit();
125
- }
126
- }
127
- //]]>
128
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/locale/en_US/Clockworkgeek_Rememberme.csv CHANGED
@@ -1,3 +1,8 @@
1
  "Remember me","Remember me"
2
  "Remember me:","Remember me:"
3
  "Remember me on this computer","Remember me on this computer"
 
 
 
 
 
1
  "Remember me","Remember me"
2
  "Remember me:","Remember me:"
3
  "Remember me on this computer","Remember me on this computer"
4
+ "Pre-select checkbox","Pre-select checkbox"
5
+ "Public computer warning","Public computer warning"
6
+ "It is inadvisable for customers to select the \"Remember Me\" checkbox if their computer might be used by someone else. This option adds a warning reminding them of the risk.","It is inadvisable for customers to select the \"Remember Me\" checkbox if their computer might be used by someone else. This option adds a warning reminding them of the risk."
7
+ "Caution!","Caution!"
8
+ "Anyone using this computer might be able to access your account if you check this box.","Anyone using this computer might be able to access your account if you check this box."
package.xml CHANGED
@@ -1,22 +1,19 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Clockworkgeek_Rememberme</name>
4
- <version>0.3.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Add a "remember me" option to login forms.</summary>
10
- <description>Add a "remember me" option to login forms. Overrides default forms with those in "design/frontend/base/default/template/rememberme".</description>
11
- <notes>Now packaged for Connect 2.0.&#xD;
12
- &#xD;
13
- If using a custom theme that modifies the login template please pay attention to "design/frontend/base/default/template/rememberme/" directory.&#xD;
14
- &#xD;
15
- For translations see the "app/locale/en_US/Clockworkgeek_Rememberme.csv" file.</notes>
16
- <authors><author><name>clockworkgeek</name><user>auto-converted</user><email>nonproffessional@clockworkgeek.com</email></author></authors>
17
- <date>2011-07-15</date>
18
- <time>22:23:17</time>
19
- <contents><target name="magecommunity"><dir name="Clockworkgeek"><dir name="Rememberme"><dir name="Model"><file name="Cookie.php" hash="9b292945fb1133b52c4b239b48fdebab"/></dir><dir name="etc"><file name="config.xml" hash="afa4a8e3aec53b3b71754e60a61f3bfd"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="rememberme.xml" hash="d9be2b5bea426b07ee54c83477ff024a"/></dir><dir name="template"><dir name="rememberme"><dir name="form"><file name="login.phtml" hash="28278218907cbddfe8d4a43d410e20d5"/><file name="mini.login.phtml" hash="9be6fe073f7298ac54bd6b8a8c1bffb2"/></dir><dir name="onepage"><file name="login.phtml" hash="f44f2936ac9398f8e2f2ccdd311b1f68"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Clockworkgeek_Rememberme.xml" hash="527fa1b6cafaa8c51284db22701526b8"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Clockworkgeek_Rememberme.csv" hash="5735e85f86d3e3a2face58296d113213"/></dir></target></contents>
20
  <compatible/>
21
- <dependencies/>
22
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Clockworkgeek_Rememberme</name>
4
+ <version>0.4.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Add a "remember me" option to login forms.</summary>
10
+ <description>Add a "remember me" option to login forms. Overrides default forms with those in "design/frontend/base/default/template/rememberme/form".</description>
11
+ <notes>Two new options have been added in System &gt; Configuration &gt; Customer Configuration &gt; Remember Me.&#xD;
12
+ </notes>
13
+ <authors><author><name>clockworkgeek</name><user>nonproffessional</user><email>nonproffessional@clockworkgeek.com</email></author></authors>
14
+ <date>2014-05-13</date>
15
+ <time>11:51:26</time>
16
+ <contents><target name="magecommunity"><dir name="Clockworkgeek"><dir name="Rememberme"><dir name="Model"><file name="Cookie.php" hash="9b292945fb1133b52c4b239b48fdebab"/></dir><dir name="etc"><file name="config.xml" hash="6a3cf0df130743da23cd00cfc45e390b"/><file name="system.xml" hash="7302348f852d9db069e3336a9c7f20ee"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="rememberme.xml" hash="d9be2b5bea426b07ee54c83477ff024a"/></dir><dir name="template"><dir name="rememberme"><dir name="form"><file name="login.phtml" hash="36fe9e1aab4deeac1a4f7589edf894a6"/><file name="mini.login.phtml" hash="0b239b0ece858335fa0708304e027217"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Clockworkgeek_Rememberme.xml" hash="527fa1b6cafaa8c51284db22701526b8"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Clockworkgeek_Rememberme.csv" hash="5346ff4284ea8a4a8f504d1668981e60"/></dir></target></contents>
 
 
 
17
  <compatible/>
18
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
19
  </package>