Version Notes
- Version 1.3.0: new features. Configurable options: display username in Manage Customer Grid, allow customer to edit or not username in frontend My Account, define maximum and minimum length of username for the forms, define what kind of validation desired (letters, digits, both or both " _-)
- Version 1.2.1: fix customer account layout
- Version 1.2.0: fix problem with case sensitive OS, limit the number of characters possible (now it's between 6 and 30 letters), allow only some characters, try to provide compatibility update for users who had the old Jfusion_Username module, generate a username for old customers who don't have it, based on email address and a random id, improve the german translation, tested on 1.6.2 and 1.5.1
- Version 1.1.0: change the module name from Jfusion_Customer to Diglin_Username, fix bugs with checkout frontend and backend and with old customers
- Version 1.0.2 - fix a bug with the installation
- Version 1.0.1 - fix bug in sql query during installation on prefixed tables, add german translation, do package for Magento version prior to 1.5 and version 1.5.x
- Version 1.0.0 - stable version
Release Info
Developer | Magento Core Team |
Extension | Diglin_Username |
Version | 1.3.0 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.3.0
- app/code/community/Diglin/Username/Block/Overwrite/Adminhtml/Config/Source/Hint.php +35 -0
- app/code/community/Diglin/Username/Block/Overwrite/Adminhtml/Grid.php +25 -0
- app/code/community/Diglin/Username/Model/Config/Source/Inputvalidation.php +21 -0
- app/code/community/Diglin/Username/Model/Form.php +1 -1
- app/code/community/Diglin/Username/Model/Observer.php +42 -0
- app/code/community/Diglin/Username/etc/adminhtml.xml +22 -0
- app/code/community/Diglin/Username/etc/config.xml +45 -4
- app/code/community/Diglin/Username/etc/system.xml +81 -0
- app/design/frontend/default/default/template/username/customer/form/edit.phtml +6 -1
- package.xml +6 -5
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Diglin
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
*
|
13 |
+
* @category Diglin
|
14 |
+
* @package Diglin_Username
|
15 |
+
* @copyright Copyright (c) 2011-2012 Diglin (http://www.diglin.com)
|
16 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
17 |
+
*/
|
18 |
+
class Diglin_Username_Block_Overwrite_Adminhtml_Config_Source_Hint
|
19 |
+
extends Mage_Adminhtml_Block_Abstract
|
20 |
+
implements Varien_Data_Form_Element_Renderer_Interface
|
21 |
+
{
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Render fieldset html
|
25 |
+
*
|
26 |
+
* @param Varien_Data_Form_Element_Abstract $element
|
27 |
+
* @return string
|
28 |
+
*/
|
29 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
30 |
+
{
|
31 |
+
$version = Mage::getConfig()->getModuleConfig('Diglin_Username')->version;
|
32 |
+
return '<p><a href="javascript:window.open(\'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Y66QHLU5VX5BC\')"><img src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" alt="Donate via Paypal" /> </a>Please, Invite me for a drink for the hard work done. Thank you in advance for your donation</p>
|
33 |
+
<p><strong>Diglin_Chat Version: '.$version.'</strong></p>';
|
34 |
+
}
|
35 |
+
}
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Diglin
|
4 |
+
*
|
5 |
+
* @category Diglin
|
6 |
+
* @package Diglin_Username
|
7 |
+
* @copyright Copyright (c) 2011 Diglin (http://www.diglin.com)
|
8 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
+
*/
|
10 |
+
class Diglin_Username_Block_Overwrite_Adminhtml_Grid extends Mage_Adminhtml_Block_Customer_Grid
|
11 |
+
{
|
12 |
+
|
13 |
+
protected function _prepareColumns()
|
14 |
+
{
|
15 |
+
if (Mage::getStoreConfigFlag('username/general/grid')) {
|
16 |
+
// Set a new column username after the column name
|
17 |
+
$this->addColumnAfter('username', array(
|
18 |
+
'header' => Mage::helper('customer')->__('Username'),
|
19 |
+
'index' => 'username'
|
20 |
+
),
|
21 |
+
'name');
|
22 |
+
}
|
23 |
+
return parent::_prepareColumns();
|
24 |
+
}
|
25 |
+
}
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Diglin
|
4 |
+
*
|
5 |
+
* @category Diglin
|
6 |
+
* @package Diglin_Username
|
7 |
+
* @copyright Copyright (c) 2011 Diglin (http://www.diglin.com)
|
8 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
+
*/
|
10 |
+
class Diglin_Username_Model_Config_Source_InputValidation
|
11 |
+
{
|
12 |
+
public function toOptionArray()
|
13 |
+
{
|
14 |
+
return array(
|
15 |
+
array('value'=>'default', 'label'=>Mage::helper('username')->__('Default (letters, digits and _- characters)')),
|
16 |
+
array('value'=>'alphanumeric', 'label'=>Mage::helper('username')->__('Letters and digits')),
|
17 |
+
array('value'=>'alpha', 'label'=>Mage::helper('username')->__('Letters only')),
|
18 |
+
array('value'=>'numeric', 'label'=>Mage::helper('username')->__('Digits only')),
|
19 |
+
);
|
20 |
+
}
|
21 |
+
}
|
@@ -54,7 +54,7 @@ class Diglin_Username_Model_Form extends Mage_Customer_Model_Form
|
|
54 |
}
|
55 |
|
56 |
$validate = new Zend_Validate_Regex('/^[\w-]*$/');
|
57 |
-
if(! $validate->isValid($data['username']) ){
|
58 |
$message = Mage::helper('username')->__('Username is invalid! Only letters, digits and \'_-\' values are accepted.');
|
59 |
if ($errors === true) {
|
60 |
$errors = array();
|
54 |
}
|
55 |
|
56 |
$validate = new Zend_Validate_Regex('/^[\w-]*$/');
|
57 |
+
if(Mage::getStoreConfig('username/general/input_validation') == 'default' && ! $validate->isValid($data['username']) ){
|
58 |
$message = Mage::helper('username')->__('Username is invalid! Only letters, digits and \'_-\' values are accepted.');
|
59 |
if ($errors === true) {
|
60 |
$errors = array();
|
@@ -17,4 +17,46 @@ class Diglin_Username_Model_Observer extends Mage_Customer_Model_Observer {
|
|
17 |
throw new Mage_Core_Exception(Mage::helper('customer')->__('This account is disabled.'), 0);
|
18 |
}
|
19 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
}
|
17 |
throw new Mage_Core_Exception(Mage::helper('customer')->__('This account is disabled.'), 0);
|
18 |
}
|
19 |
}
|
20 |
+
|
21 |
+
public function addAttributeToCollection ($observer)
|
22 |
+
{
|
23 |
+
$collection = $observer->getEvent()->getCollection();
|
24 |
+
$collection->addAttributeToSelect('username');
|
25 |
+
}
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Change the attribute of username after the configuration
|
29 |
+
* has been changed
|
30 |
+
*
|
31 |
+
* @param Varien_Event_Observer $observer
|
32 |
+
*/
|
33 |
+
public function changeEavAttribute ($observer)
|
34 |
+
{
|
35 |
+
$minLength = Mage::getStoreConfig('username/general/min_length');
|
36 |
+
$maxLength = Mage::getStoreConfig('username/general/max_length');
|
37 |
+
$inputValidation = Mage::getStoreConfig('username/general/input_validation');
|
38 |
+
|
39 |
+
if($minLength > $maxLength) {
|
40 |
+
Mage::throwException(
|
41 |
+
Mage::helper('username')->__('Sorry but you cannot set a minimum length value %s bigger than the maximum length value %s. Please, change the values.',
|
42 |
+
$minLength,
|
43 |
+
$maxLength)
|
44 |
+
);
|
45 |
+
}
|
46 |
+
|
47 |
+
/* @var $attributeUsernameModel Mage_Customer_Model_Attribute */
|
48 |
+
$attributeUsernameModel = Mage::getModel('customer/attribute')->loadByCode('customer', 'username');
|
49 |
+
$rules = $attributeUsernameModel->getValidateRules();
|
50 |
+
$rules['max_text_length'] = $maxLength;
|
51 |
+
$rules['min_text_length'] = $minLength;
|
52 |
+
|
53 |
+
if($inputValidation != 'default') {
|
54 |
+
$rules['input_validation'] = $inputValidation;
|
55 |
+
}else {
|
56 |
+
$rules['input_validation'] = '';
|
57 |
+
}
|
58 |
+
|
59 |
+
$attributeUsernameModel->setValidateRules($rules);
|
60 |
+
$attributeUsernameModel->save();
|
61 |
+
}
|
62 |
}
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<acl>
|
4 |
+
<resources>
|
5 |
+
<admin>
|
6 |
+
<children>
|
7 |
+
<system>
|
8 |
+
<children>
|
9 |
+
<config>
|
10 |
+
<children>
|
11 |
+
<username translate="title">
|
12 |
+
<title>Username Section</title>
|
13 |
+
</username>
|
14 |
+
</children>
|
15 |
+
</config>
|
16 |
+
</children>
|
17 |
+
</system>
|
18 |
+
</children>
|
19 |
+
</admin>
|
20 |
+
</resources>
|
21 |
+
</acl>
|
22 |
+
</config>
|
@@ -2,10 +2,21 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Diglin_Username>
|
5 |
-
<version>1.
|
6 |
</Diglin_Username>
|
7 |
</modules>
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
<global>
|
10 |
<fieldsets>
|
11 |
<customer_account>
|
@@ -35,18 +46,25 @@
|
|
35 |
</helpers>
|
36 |
|
37 |
<blocks>
|
|
|
|
|
|
|
38 |
<adminhtml>
|
39 |
<rewrite>
|
|
|
40 |
<customer_edit_tab_account>Diglin_Username_Block_Overwrite_Adminhtml_Edit_Tab_Account</customer_edit_tab_account>
|
41 |
</rewrite>
|
42 |
</adminhtml>
|
43 |
</blocks>
|
44 |
<models>
|
|
|
|
|
|
|
45 |
<customer>
|
46 |
<rewrite>
|
47 |
<customer>Diglin_Username_Model_Customer</customer>
|
48 |
<form>Diglin_Username_Model_Form</form>
|
49 |
-
<observer>Diglin_Username_Model_Observer</observer
|
50 |
<setup>Diglin_Username_Model_Setup</setup>
|
51 |
</rewrite>
|
52 |
</customer>
|
@@ -79,7 +97,7 @@
|
|
79 |
<observers>
|
80 |
<customer_observer>
|
81 |
<type>singleton</type>
|
82 |
-
<class>
|
83 |
<method>isActive</method>
|
84 |
</customer_observer>
|
85 |
</observers>
|
@@ -105,4 +123,27 @@
|
|
105 |
</updates>
|
106 |
</layout>
|
107 |
</frontend>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
</config>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Diglin_Username>
|
5 |
+
<version>1.3.0</version>
|
6 |
</Diglin_Username>
|
7 |
</modules>
|
8 |
+
<default>
|
9 |
+
<username>
|
10 |
+
<general>
|
11 |
+
<frontend>0</frontend>
|
12 |
+
<grid>1</grid>
|
13 |
+
<max_length>30</max_length>
|
14 |
+
<min_length>6</min_length>
|
15 |
+
<input_validation>default</input_validation>
|
16 |
+
</general>
|
17 |
+
</username>
|
18 |
+
</default>
|
19 |
+
|
20 |
<global>
|
21 |
<fieldsets>
|
22 |
<customer_account>
|
46 |
</helpers>
|
47 |
|
48 |
<blocks>
|
49 |
+
<username>
|
50 |
+
<class>Diglin_Username_Block</class>
|
51 |
+
</username>
|
52 |
<adminhtml>
|
53 |
<rewrite>
|
54 |
+
<customer_grid>Diglin_Username_Block_Overwrite_Adminhtml_Grid</customer_grid>
|
55 |
<customer_edit_tab_account>Diglin_Username_Block_Overwrite_Adminhtml_Edit_Tab_Account</customer_edit_tab_account>
|
56 |
</rewrite>
|
57 |
</adminhtml>
|
58 |
</blocks>
|
59 |
<models>
|
60 |
+
<username>
|
61 |
+
<class>Diglin_Username_Model</class>
|
62 |
+
</username>
|
63 |
<customer>
|
64 |
<rewrite>
|
65 |
<customer>Diglin_Username_Model_Customer</customer>
|
66 |
<form>Diglin_Username_Model_Form</form>
|
67 |
+
<!-- <observer>Diglin_Username_Model_Observer</observer>-->
|
68 |
<setup>Diglin_Username_Model_Setup</setup>
|
69 |
</rewrite>
|
70 |
</customer>
|
97 |
<observers>
|
98 |
<customer_observer>
|
99 |
<type>singleton</type>
|
100 |
+
<class>username/observer</class>
|
101 |
<method>isActive</method>
|
102 |
</customer_observer>
|
103 |
</observers>
|
123 |
</updates>
|
124 |
</layout>
|
125 |
</frontend>
|
126 |
+
|
127 |
+
<adminhtml>
|
128 |
+
<events>
|
129 |
+
<admin_system_config_changed_section_username>
|
130 |
+
<!-- <core_config_data_save_before>-->
|
131 |
+
<observers>
|
132 |
+
<change_eav_username>
|
133 |
+
<class>username/observer</class>
|
134 |
+
<method>changeEavAttribute</method>
|
135 |
+
</change_eav_username>
|
136 |
+
</observers>
|
137 |
+
<!-- </core_config_data_save_before>-->
|
138 |
+
</admin_system_config_changed_section_username>
|
139 |
+
<eav_collection_abstract_load_before>
|
140 |
+
<observers>
|
141 |
+
<customer_load_collection>
|
142 |
+
<class>username/observer</class>
|
143 |
+
<method>addAttributeToCollection</method>
|
144 |
+
</customer_load_collection>
|
145 |
+
</observers>
|
146 |
+
</eav_collection_abstract_load_before>
|
147 |
+
</events>
|
148 |
+
</adminhtml>
|
149 |
</config>
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<tabs>
|
4 |
+
<diglin>
|
5 |
+
<label>Diglin</label>
|
6 |
+
<sort_order>400</sort_order>
|
7 |
+
</diglin>
|
8 |
+
</tabs>
|
9 |
+
|
10 |
+
<sections>
|
11 |
+
<username translate="label" module="username">
|
12 |
+
<label>Username</label>
|
13 |
+
<tab>diglin</tab>
|
14 |
+
<frontend_type>text</frontend_type>
|
15 |
+
<sort_order>120</sort_order>
|
16 |
+
<show_in_default>1</show_in_default>
|
17 |
+
<show_in_website>1</show_in_website>
|
18 |
+
<show_in_store>1</show_in_store>
|
19 |
+
<groups>
|
20 |
+
<hint>
|
21 |
+
<frontend_model>username/overwrite_adminhtml_config_source_hint</frontend_model>
|
22 |
+
<sort_order>0</sort_order>
|
23 |
+
<show_in_default>1</show_in_default>
|
24 |
+
<show_in_website>1</show_in_website>
|
25 |
+
<show_in_store>1</show_in_store>
|
26 |
+
</hint>
|
27 |
+
<general>
|
28 |
+
<label>General configuration</label>
|
29 |
+
<frontend_type>text</frontend_type>
|
30 |
+
<sort_order>1</sort_order>
|
31 |
+
<show_in_default>1</show_in_default>
|
32 |
+
<show_in_website>1</show_in_website>
|
33 |
+
<show_in_store>1</show_in_store>
|
34 |
+
<comment><![CDATA[]]></comment>
|
35 |
+
<fields>
|
36 |
+
<frontend>
|
37 |
+
<label>Allow frontend edit</label>
|
38 |
+
<frontend_type>select</frontend_type>
|
39 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
40 |
+
<sort_order>10</sort_order>
|
41 |
+
<show_in_default>1</show_in_default>
|
42 |
+
<show_in_website>1</show_in_website>
|
43 |
+
<show_in_store>1</show_in_store>
|
44 |
+
<comment><![CDATA[Allow the customer to edit his username in "My Account"]]></comment>
|
45 |
+
</frontend>
|
46 |
+
<grid>
|
47 |
+
<label>Display username in Manage Customers Grid</label>
|
48 |
+
<frontend_type>select</frontend_type>
|
49 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
50 |
+
<sort_order>20</sort_order>
|
51 |
+
<show_in_default>1</show_in_default>
|
52 |
+
<comment><![CDATA[Do you want to display the field 'Username' in the Manage Customer Grid?]]></comment>
|
53 |
+
</grid>
|
54 |
+
<max_length>
|
55 |
+
<label>Maximum length of the username</label>
|
56 |
+
<frontend_type>text</frontend_type>
|
57 |
+
<sort_order>30</sort_order>
|
58 |
+
<show_in_default>1</show_in_default>
|
59 |
+
<comment><![CDATA[What is the maximum length of the string username that you want to accept? By default, it's 30 characters ]]></comment>
|
60 |
+
</max_length>
|
61 |
+
<min_length>
|
62 |
+
<label>Minimum length of the username</label>
|
63 |
+
<frontend_type>text</frontend_type>
|
64 |
+
<sort_order>40</sort_order>
|
65 |
+
<show_in_default>1</show_in_default>
|
66 |
+
<comment><![CDATA[What is the minimum length of the string username that you want to accept? By default, it's 6 characters ]]></comment>
|
67 |
+
</min_length>
|
68 |
+
<input_validation>
|
69 |
+
<label>Input Validation</label>
|
70 |
+
<frontend_type>select</frontend_type>
|
71 |
+
<source_model>username/config_source_inputvalidation</source_model>
|
72 |
+
<sort_order>50</sort_order>
|
73 |
+
<show_in_default>1</show_in_default>
|
74 |
+
<comment><![CDATA[What kind of username do you want to accept? You can set the value 'Default' which accept letters, digits and the special characters '_-' ]]></comment>
|
75 |
+
</input_validation>
|
76 |
+
</fields>
|
77 |
+
</general>
|
78 |
+
</groups>
|
79 |
+
</username>
|
80 |
+
</sections>
|
81 |
+
</config>
|
@@ -46,8 +46,13 @@
|
|
46 |
<div class="field">
|
47 |
<label for="username" class="required"><em>*</em><?php echo Mage::helper('customer')->__('Username') ?></label>
|
48 |
<div class="input-box">
|
|
|
49 |
<input type="text" name="username" id="username" value="<?php echo $this->htmlEscape($this->getCustomer()->getUsername()) ?>" title="<?php echo Mage::helper('customer')->__('Username') ?>" class="input-text required-entry" />
|
50 |
-
|
|
|
|
|
|
|
|
|
51 |
</div>
|
52 |
</li>
|
53 |
<?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
|
46 |
<div class="field">
|
47 |
<label for="username" class="required"><em>*</em><?php echo Mage::helper('customer')->__('Username') ?></label>
|
48 |
<div class="input-box">
|
49 |
+
<?php if(Mage::getStoreConfigFlag('username/general/frontend')) : ?>
|
50 |
<input type="text" name="username" id="username" value="<?php echo $this->htmlEscape($this->getCustomer()->getUsername()) ?>" title="<?php echo Mage::helper('customer')->__('Username') ?>" class="input-text required-entry" />
|
51 |
+
<?php else: ?>
|
52 |
+
<input type="hidden" name="username" id="username" value="<?php echo $this->htmlEscape($this->getCustomer()->getUsername()) ?>"/>
|
53 |
+
<?php echo $this->htmlEscape($this->getCustomer()->getUsername()); ?>
|
54 |
+
<?php endif;?>
|
55 |
+
</div>
|
56 |
</div>
|
57 |
</li>
|
58 |
<?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
|
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Diglin_Username</name>
|
4 |
-
<version>1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -19,16 +19,17 @@ Allow to disable an account from backend. The user will be blocked if the option
|
|
19 |
- The default template override some customer and checkout views to adapt display for login pages, checkout process and account edition in frontend. If you have a customized template, please check the layout file username.xml and compare with your template to use or adapt to your situation.
|
20 |

|
21 |
Compatible Magento version >= 1.4.2 until 1.6.2</description>
|
22 |
-
<notes>- Version 1.
|
|
|
23 |
- Version 1.2.0: fix problem with case sensitive OS, limit the number of characters possible (now it's between 6 and 30 letters), allow only some characters, try to provide compatibility update for users who had the old Jfusion_Username module, generate a username for old customers who don't have it, based on email address and a random id, improve the german translation, tested on 1.6.2 and 1.5.1
|
24 |
- Version 1.1.0: change the module name from Jfusion_Customer to Diglin_Username, fix bugs with checkout frontend and backend and with old customers
|
25 |
- Version 1.0.2 - fix a bug with the installation
|
26 |
- Version 1.0.1 - fix bug in sql query during installation on prefixed tables, add german translation, do package for Magento version prior to 1.5 and version 1.5.x
|
27 |
- Version 1.0.0 - stable version</notes>
|
28 |
<authors><author><name>diglin</name><user>auto-converted</user><email>sly@diglin.com</email></author></authors>
|
29 |
-
<date>2012-
|
30 |
-
<time>
|
31 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Diglin_Username.xml" hash="79603fae3def6dd098d4be51897e1ec6"/></dir></target><target name="magecommunity"><dir name="Diglin"><dir name="Username"><dir name="Block"><dir name="Overwrite"><dir name="Adminhtml"><dir name="Edit"><dir name="Tab"><file name="Account.php" hash="0cf35fc258975ea64a2dc87aa2a18084"/></dir></dir
|
32 |
<compatible/>
|
33 |
<dependencies/>
|
34 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Diglin_Username</name>
|
4 |
+
<version>1.3.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>
|
19 |
- The default template override some customer and checkout views to adapt display for login pages, checkout process and account edition in frontend. If you have a customized template, please check the layout file username.xml and compare with your template to use or adapt to your situation.
|
20 |

|
21 |
Compatible Magento version >= 1.4.2 until 1.6.2</description>
|
22 |
+
<notes>- Version 1.3.0: new features. Configurable options: display username in Manage Customer Grid, allow customer to edit or not username in frontend My Account, define maximum and minimum length of username for the forms, define what kind of validation desired (letters, digits, both or both " _-)
|
23 |
+
- Version 1.2.1: fix customer account layout 
|
24 |
- Version 1.2.0: fix problem with case sensitive OS, limit the number of characters possible (now it's between 6 and 30 letters), allow only some characters, try to provide compatibility update for users who had the old Jfusion_Username module, generate a username for old customers who don't have it, based on email address and a random id, improve the german translation, tested on 1.6.2 and 1.5.1
|
25 |
- Version 1.1.0: change the module name from Jfusion_Customer to Diglin_Username, fix bugs with checkout frontend and backend and with old customers
|
26 |
- Version 1.0.2 - fix a bug with the installation
|
27 |
- Version 1.0.1 - fix bug in sql query during installation on prefixed tables, add german translation, do package for Magento version prior to 1.5 and version 1.5.x
|
28 |
- Version 1.0.0 - stable version</notes>
|
29 |
<authors><author><name>diglin</name><user>auto-converted</user><email>sly@diglin.com</email></author></authors>
|
30 |
+
<date>2012-02-21</date>
|
31 |
+
<time>22:30:48</time>
|
32 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Diglin_Username.xml" hash="79603fae3def6dd098d4be51897e1ec6"/></dir></target><target name="magecommunity"><dir name="Diglin"><dir name="Username"><dir name="Block"><dir name="Overwrite"><dir name="Adminhtml"><dir name="Config"><dir name="Source"><file name="Hint.php" hash="6419dadae08bf316492007996b03c9b9"/></dir></dir><dir name="Edit"><dir name="Tab"><file name="Account.php" hash="0cf35fc258975ea64a2dc87aa2a18084"/></dir></dir><file name="Grid.php" hash="3ba6f9cb0297618210f086dc27182e09"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="82e748e2fbf1b587a8d2563abda34748"/></dir><dir name="Model"><dir name="Config"><dir name="Source"><file name="Inputvalidation.php" hash="be867ef90f84ae4f755b291003852afa"/></dir></dir><dir name="Entity"><file name="Customer.php" hash="fed7a127915a400ec69c3a9ee2328563"/><file name="Setup.php" hash="18404b3f1949e676ba95dd15fd4d3ca8"/></dir><file name="Customer.php" hash="83731999fbfbe3a9825af544011c12a9"/><file name="Form.php" hash="342ee5e7fd6d810113a3ba8160f51219"/><file name="Observer.php" hash="7865b58f55ea4c8ea153fb0ab3a333da"/></dir><dir name="etc"><file name="adminhtml.xml" hash="8eaa2843438b116e9d0425fcdd2ccabf"/><file name="config.xml" hash="7339a07ea3ebe599f24539bfaaaca751"/><file name="system.xml" hash="5a88bf387b290654d0c45665e327b223"/></dir><dir name="sql"><dir name="username_setup"><file name="mysql4-install-1.0.0.php" hash="b7cbb4ffccb65200fae91776f11ab37f"/><file name="mysql4-upgrade-1.0.0-1.1.0.php" hash="c51c4e5322e1a14bbcefe033cf6d719e"/><file name="mysql4-upgrade-1.1.0-1.2.0.php" hash="1a129c0b46afdc4e91e94c24b5fbfd5e"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="username"><dir name="checkout"><dir name="onepage"><file name="billing.phtml" hash="158561d558368712426b803b2f392a8b"/><file name="login.phtml" hash="057960b4b741b21657aed20a15278872"/></dir></dir><dir name="customer"><dir name="account"><dir name="dashboard"><file name="info.phtml" hash="ba4d68c18857691a034c45400deb6e51"/></dir></dir><dir name="form"><file name="edit.phtml" hash="fd93820e2b5aaed8b81b4ce98d7e6822"/><file name="login.phtml" hash="4b0be135d49e4098e093514bc0ddb88f"/><file name="register.phtml" hash="2808979c10df1b36dc0c74333490a50f"/></dir></dir></dir></dir><dir name="layout"><file name="username.xml" hash="cd4f5b85815c981f068da7408e325ba2"/></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_GB"><file name="Diglin_Username.csv" hash="2d18fb6bfc2c4c56f19cfe7ee6761f4b"/></dir><dir name="en_US"><file name="Diglin_Username.csv" hash="2d18fb6bfc2c4c56f19cfe7ee6761f4b"/></dir><dir name="fr_FR"><file name="Diglin_Username.csv" hash="d8d025c852649fc8e9edd2aed5ab377a"/></dir><dir name="de_DE"><file name="Diglin_Username.csv" hash="71ec3c2c428c65a3b700b5a1a12fc772"/></dir></target></contents>
|
33 |
<compatible/>
|
34 |
<dependencies/>
|
35 |
</package>
|