Magazento_Emailregistration - Version 1.0.2

Version Notes

1.0.2

Download this release

Release Info

Developer Magento Core Team
Extension Magazento_Emailregistration
Version 1.0.2
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.2

app/code/community/Magazento/Emailregistration/Block/Developer.php ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Magazento_Emailregistration_Block_Developer extends Mage_Adminhtml_Block_System_Config_Form_Fieldset {
4
+
5
+ public function render(Varien_Data_Form_Element_Abstract $element) {
6
+ $content = '<p></p>';
7
+ $content.= '<style>';
8
+ $content.= '.magazento {
9
+ background:#FAFAFA;
10
+ border: 1px solid #CCCCCC;
11
+ margin-bottom: 10px;
12
+ padding: 10px;
13
+ height:auto;
14
+
15
+ }
16
+ .magazento h3 {
17
+ color: #EA7601;
18
+ }
19
+ .contact-type {
20
+ color: #EA7601;
21
+ font-weight:bold;
22
+ }
23
+ .magazento img {
24
+ border: 1px solid #CCCCCC;
25
+ float:left;
26
+ height:235px;
27
+ }
28
+ .magazento .info {
29
+ border: 1px solid #CCCCCC;
30
+ background:#E7EFEF;
31
+ padding: 5px 10px 0 5px;
32
+ margin-left:210px;
33
+ height:230px;
34
+ }
35
+ ';
36
+ $content.= '</style>';
37
+
38
+
39
+ $content.= '<div class="magazento">';
40
+ $content.= '<a href="http://www.magazento.com/" target="_blank"><img src="'.Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN).'frontend/default/default/magazento/promo/magazento.jpg" alt="www.magazento.com" /></a>';
41
+ $content.= '<div class="info">';
42
+ $content.= '<h3>Magento extensions</h3>';
43
+ $content.= '<p><a href="http://www.magazento.com/" target="_blank">www.magazento.com</a> - experts are specializing in custom extension development for the world\'s fastest growing eCommerce platform - Magento. <br/>';
44
+ $content.= 'All extensions are designed for the Magento CMS archetecture, using native libraries and only the most efficient approaches to development.<br/>';
45
+ $content.= 'If you need Magento development or have a concept for an extension you\'d like developed for the Magento CMS platform, please contact us.</br></p>';
46
+ $content.= '--------------------------------------------------------<br>';
47
+ $content.= '<span class="contact-type">Company website:</span> <a href="http://www.magazento.com/" target="_blank">www.magazento.com</a> <br/>';
48
+ $content.= '<span class="contact-type">E-mail:</span> magazento@gmail.com <br/>';
49
+ $content.= '<span class="contact-type">Skype:</span> volgodark <br/>';
50
+ $content.= '<span class="contact-type">Phone:</span> +7 909389 2222 <br/>';
51
+ $content.= '<span class="contact-type">Magento:</span> <a href="http://www.magentocommerce.com/magento-connect/developer/Magazento" target="_blank">visit</a> <br/>';
52
+ $content.= '<span class="contact-type">Facebook:</span> <a href="http://www.facebook.com/ivan.proskuryakov" target="_blank">visit</a> <br/>';
53
+ // $content.= '<span class="contact-type">LinkedIn:</span> <a href="http://www.linkedin.com/pub/ivan-proskuryakov/31/200/316" target="_blank">visit</a> <br/>';
54
+
55
+ $content.= '</div>';
56
+
57
+ $content.= '</div>';
58
+
59
+ return $content;
60
+
61
+
62
+ }
63
+
64
+
65
+ }
app/code/community/Magazento/Emailregistration/Block/Links.php CHANGED
@@ -13,7 +13,7 @@ class Magazento_Emailregistration_Block_Links extends Mage_Customer_Block_Accoun
13
  // $title = 'Magazento-Log-In';
14
  // $this->getParentBlock()->addLink($title, '#', $title, false, array(), 15, null, 'class="osx"');
15
  // }
16
-
17
  if (!Mage::getSingleton('customer/session')->isLoggedIn()) {
18
  $storeId = Mage::app()->getStore()->getId();
19
  $storeUrl = Mage::getModel('core/store')->load($storeId)->getUrl();
13
  // $title = 'Magazento-Log-In';
14
  // $this->getParentBlock()->addLink($title, '#', $title, false, array(), 15, null, 'class="osx"');
15
  // }
16
+ if (Mage::getStoreConfig('emailregistration/options/link'))
17
  if (!Mage::getSingleton('customer/session')->isLoggedIn()) {
18
  $storeId = Mage::app()->getStore()->getId();
19
  $storeUrl = Mage::getModel('core/store')->load($storeId)->getUrl();
app/code/community/Magazento/Emailregistration/etc/config.xml CHANGED
@@ -23,6 +23,46 @@
23
  </updates>
24
  </layout>
25
  </frontend>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  <admin>
27
  <routers>
28
  <emailregistration>
@@ -84,5 +124,11 @@
84
  </helpers>
85
  </global>
86
 
87
-
 
 
 
 
 
 
88
  </config>
23
  </updates>
24
  </layout>
25
  </frontend>
26
+ <adminhtml>
27
+ <acl>
28
+ <resources>
29
+ <admin>
30
+ <children>
31
+ <system>
32
+ <children>
33
+ <config>
34
+ <children>
35
+ <emailregistration translate="title" module="emailregistration">
36
+ <title>Email registration</title>
37
+ </emailregistration>
38
+ </children>
39
+ </config>
40
+ </children>
41
+ </system>
42
+ </children>
43
+ </admin>
44
+ </resources>
45
+ </acl>
46
+ <menu>
47
+ <magazento translate="title" module="emailregistration">
48
+ <title>Magazento</title>
49
+ <sort_order>65</sort_order>
50
+ <children>
51
+ <emailregistration translate="title" module="emailregistration">
52
+ <title>Email registration</title>
53
+ <sort_order>65</sort_order>
54
+ <children>
55
+ <settings translate="title" module="emailregistration">
56
+ <title>Settings</title>
57
+ <action>adminhtml/system_config/edit/section/emailregistration</action>
58
+ <sort_order>40</sort_order>
59
+ </settings>
60
+ </children>
61
+ </emailregistration>
62
+ </children>
63
+ </magazento>
64
+ </menu>
65
+ </adminhtml>
66
  <admin>
67
  <routers>
68
  <emailregistration>
124
  </helpers>
125
  </global>
126
 
127
+ <default>
128
+ <emailregistration>
129
+ <options>
130
+ <link>1</link>
131
+ </options>
132
+ </emailregistration>
133
+ </default>
134
  </config>
app/code/community/Magazento/Emailregistration/etc/system.xml ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <magazento translate="label">
5
+ <label>Magazento.com</label>
6
+ <sort_order>250</sort_order>
7
+ </magazento>
8
+ </tabs>
9
+ <sections>
10
+ <emailregistration translate="label" module="emailregistration">
11
+ <label>Email registration</label>
12
+ <tab>magazento</tab>
13
+ <frontend_type>text</frontend_type>
14
+ <sort_order>100</sort_order>
15
+ <show_in_default>1</show_in_default>
16
+ <show_in_website>1</show_in_website>
17
+ <show_in_store>1</show_in_store>
18
+ <groups>
19
+ <developer>
20
+ <frontend_model>emailregistration/developer</frontend_model>
21
+ <sort_order>999</sort_order>
22
+ <show_in_default>1</show_in_default>
23
+ <show_in_website>1</show_in_website>
24
+ <show_in_store>1</show_in_store>
25
+ </developer>
26
+ <options translate="label">
27
+ <label>Options</label>
28
+ <frontend_type>text</frontend_type>
29
+ <sort_order>1</sort_order>
30
+ <show_in_default>1</show_in_default>
31
+ <show_in_website>1</show_in_website>
32
+ <show_in_store>1</show_in_store>
33
+ <fields>
34
+ <link translate="label">
35
+ <label>Add to Links</label>
36
+ <frontend_type>select</frontend_type>
37
+ <source_model>adminhtml/system_config_source_yesno</source_model>
38
+ <sort_order>60</sort_order>
39
+ <show_in_default>1</show_in_default>
40
+ <show_in_website>1</show_in_website>
41
+ <show_in_store>0</show_in_store>
42
+ </link>
43
+ </fields>
44
+ </options>
45
+ </groups>
46
+ </emailregistration>
47
+ </sections>
48
+ </config>
app/design/frontend/default/default/layout/magazento_emailregistration.xml CHANGED
@@ -1,31 +1,6 @@
1
  <?xml version="1.0"?>
2
  <layout version="0.1.0">
3
 
4
- <!-- <default>
5
- <reference name="head">
6
- <action method="addCss"><stylesheet>magazento/emailregistration/osx.css</stylesheet></action>
7
- <action method="addItem">
8
- <type>skin_js</type>
9
- <name>magazento/jquery-1.5.1.min.js</name>
10
- <params/>
11
- </action>
12
- <action method="addItem">
13
- <type>skin_js</type>
14
- <name>magazento/emailregistration/jquery.simplemodal.js</name>
15
- <params/>
16
- </action>
17
- <action method="addItem">
18
- <type>skin_js</type>
19
- <name>magazento/emailregistration/osx.js</name>
20
- <params/>
21
- </action>
22
- </reference>
23
- <reference name="before_body_end">
24
- <block type="emailregistration/register" name="emailregistration" template="magazento/emailregistration/form.phtml" />
25
- </reference>
26
- </default>-->
27
-
28
-
29
  <default>
30
  <reference name="top.links">
31
  <block type="emailregistration/links" name="add.reg.link">
@@ -37,7 +12,6 @@
37
 
38
  <customer_account_create>
39
  <remove name="customer_form_register"/>
40
-
41
  <reference name="root">
42
  <action method="setTemplate"><template>page/1column.phtml</template></action>
43
  </reference>
1
  <?xml version="1.0"?>
2
  <layout version="0.1.0">
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  <default>
5
  <reference name="top.links">
6
  <block type="emailregistration/links" name="add.reg.link">
12
 
13
  <customer_account_create>
14
  <remove name="customer_form_register"/>
 
15
  <reference name="root">
16
  <action method="setTemplate"><template>page/1column.phtml</template></action>
17
  </reference>
package.xml CHANGED
@@ -1,21 +1,21 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Magazento_Emailregistration</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>We have created a very simple customer registration where customer can just enter his or her email address.</summary>
10
- <description>We have created a very simple customer registration where one can just enter his or her email address and then the system would set this as the new username, add a generic password, which only had to be changed by the user when she/he wants to login next time to add more info into the name/address/etc fields.
11
 
12
  ------------
13
  Registrations are annoying. People hate them. No matter how clear benefits of registration are and no matter how much of them WILL register eventually, they still hate it. But, in the other hand, they want to finish their jobs online, and most of them are willing to provide some information in order to finish their jobs. So why don't make their lives easier?</description>
14
- <notes>1.0.0</notes>
15
  <authors><author><name>volgodark</name><user>auto-converted</user><email>volgodark@gmail.com</email></author></authors>
16
- <date>2011-04-16</date>
17
- <time>10:36:48</time>
18
- <contents><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="magazento_emailregistration.xml" hash="4fe81a392efb860195fe56a1b253ed68"/></dir><dir name="template"><dir name="magazento"><dir name="emailregistration"><file name="account.create.phtml" hash="24e380ef953d57e5d622b7ba4e196212"/></dir></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="Magazento"><dir name="Emailregistration"><dir name="Block"><file name="Links.php" hash="a2cb967cd9095ab429cd5aa9083434a0"/><file name="Register.php" hash="199e6700cefe89c437b415ad22675c40"/></dir><dir name="controllers"><file name="AccountController.php" hash="50df6b6bd36cf423fa4e7ecc9907ec5f"/></dir><dir name="etc"><file name="config.xml" hash="12564745849e0b5ac6fdbf355eb74ec7"/></dir><dir name="Helper"><file name="Data.php" hash="e6427edf67b1ec12829b15207666c57d"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magazento_Emailregistration.xml" hash="789472d0078ad3bc704fb5a5d5930112"/></dir></target></contents>
19
  <compatible/>
20
  <dependencies/>
21
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Magazento_Emailregistration</name>
4
+ <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>We have created a very simple customer registration where customer can just enter his or her email address.</summary>
10
+ <description>We have created a very simple customer registration where one can just enter his or her email address and then the system would set this as the new username, add a generic password, which only had to be changed by the user when login next time to add more info into the name/address/etc fields.
11
 
12
  ------------
13
  Registrations are annoying. People hate them. No matter how clear benefits of registration are and no matter how much of them WILL register eventually, they still hate it. But, in the other hand, they want to finish their jobs online, and most of them are willing to provide some information in order to finish their jobs. So why don't make their lives easier?</description>
14
+ <notes>1.0.2</notes>
15
  <authors><author><name>volgodark</name><user>auto-converted</user><email>volgodark@gmail.com</email></author></authors>
16
+ <date>2011-04-20</date>
17
+ <time>08:38:17</time>
18
+ <contents><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="magazento"><dir name="promo"><file name="magazento.jpg" hash="88520d456df68c98130433b5184b8e7f"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="magazento_emailregistration.xml" hash="9f8289d1b6195c99315b51a96e5ffea5"/></dir><dir name="template"><dir name="magazento"><dir name="emailregistration"><file name="account.create.phtml" hash="24e380ef953d57e5d622b7ba4e196212"/></dir></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="Magazento"><dir name="Emailregistration"><dir name="Block"><file name="Developer.php" hash="a121b8149a089b342d6d7e02de96c703"/><file name="Links.php" hash="a0a76b431bedabb004320251b058c894"/><file name="Register.php" hash="199e6700cefe89c437b415ad22675c40"/></dir><dir name="controllers"><file name="AccountController.php" hash="50df6b6bd36cf423fa4e7ecc9907ec5f"/></dir><dir name="etc"><file name="config.xml" hash="19a152f5186c2f15080acd461688b750"/><file name="system.xml" hash="84de1a8f81b99e05484031f7d004decb"/></dir><dir name="Helper"><file name="Data.php" hash="e6427edf67b1ec12829b15207666c57d"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magazento_Emailregistration.xml" hash="789472d0078ad3bc704fb5a5d5930112"/></dir></target></contents>
19
  <compatible/>
20
  <dependencies/>
21
  </package>
skin/frontend/default/default/magazento/promo/magazento.jpg ADDED
Binary file