UserPulse_Toolbar - Version 1.0.0

Version Notes

This Extension is used for Live Chat, Contact Form, Get Feedback and Shopper Alerts. Optimize your Shop Support.

Please follow the instruction given below.

1. To installation extract the file in your setup Magento and put all files on the same folder location.
2. Open your Magento Admin Panel and set admin account from system->myaccount.
3. Here you have to setup you Email ,First Name and LastName. If it already setup then no need to change it.

Now the extension setup successfully.....

Download this release

Release Info

Developer UserPulse
Extension UserPulse_Toolbar
Version 1.0.0
Comparing to
See all releases


Version 1.0.0

app/code/community/Userpulse/Toolbar/Helper/Data.php ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * UserPulse Toolbar Module
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magentocommerce.com for more information.
21
+ *
22
+ * UserPulse Toolbar
23
+ *
24
+ * @category UserPulse
25
+ * @package UserPulse_Toolbar
26
+ * @copyright Copyright (c) 2010 Zowta Ltd (http://www.userpulse.com)
27
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
28
+ * @author UserPulse <adi@userpulse.com>
29
+ */
30
+
31
+ class Userpulse_Toolbar_Helper_Data extends Mage_Core_Helper_Abstract
32
+ {
33
+ protected $_requestUrl = null;
34
+
35
+ protected function _call()
36
+ {
37
+ if(extension_loaded('curl'))
38
+ {
39
+ $session = curl_init();
40
+ curl_setopt($session, CURLOPT_URL, $this->_requestUrl);
41
+ curl_setopt($session, CURLOPT_GET, 1);
42
+ curl_setopt($session, CURLOPT_HEADER, false);
43
+ curl_setopt($session, CURLOPT_HTTPHEADER, array('Accept: application/xml', 'Content-Type: application/xml'));
44
+ curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
45
+
46
+ if(ereg("^(https)",$this->_requestUrl)) curl_setopt($session, CURLOPT_SSL_VERIFYPEER, false);
47
+
48
+ $newOrganizationResult = curl_exec($session);
49
+
50
+ curl_close($session);
51
+
52
+ return $newOrganizationResult;
53
+ }
54
+ }
55
+
56
+ public function setupTool()
57
+ {
58
+ $currentDate = strtotime(date("Y-m-d"));
59
+
60
+ if(!Mage::getStoreConfig("toolbar_info/settings/start_number") || $currentDate != Mage::getStoreConfig("toolbar_info/settings/updated_at"))
61
+ {
62
+ $startNumber = null;
63
+
64
+ $admin = Mage::getModel('admin/user')->load(1);
65
+
66
+ if($admin)
67
+ {
68
+ $domainName = parse_url(Mage::getBaseUrl(), PHP_URL_HOST);
69
+
70
+ $this->_requestUrl = "http://www.userpulse.com/organization?username=".$admin->getEmail()."&LastName=".$admin->getLastname()."&website=".$domainName;
71
+
72
+ $startNumber = $this->_call();
73
+
74
+ if($startNumber)
75
+ {
76
+ Mage::getModel('core/config')->saveConfig('toolbar_info/settings/start_number',$startNumber);
77
+ Mage::getModel('core/config')->saveConfig('toolbar_info/settings/updated_at', $currentDate);
78
+ }
79
+ }
80
+ }
81
+ else
82
+ {
83
+ $startNumber = Mage::getStoreConfig("toolbar_info/settings/start_number");
84
+ }
85
+
86
+ return $startNumber;
87
+
88
+ }
89
+ }
app/code/community/Userpulse/Toolbar/etc/adminhtml.xml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" ?>
2
+ <config>
3
+ <acl>
4
+ <resources>
5
+ <all>
6
+ <title>Allow Everything</title>
7
+ </all>
8
+ <admin>
9
+ <children>
10
+ <system>
11
+ <children>
12
+ <config>
13
+ <children>
14
+ <toolbar_info translate="title" module="userpulse_toolbar">
15
+ <title>Userpulse Toolbar</title>
16
+ <sort_order>100</sort_order>
17
+ </toolbar_info>
18
+ </children>
19
+ </config>
20
+ </children>
21
+ </system>
22
+ <userpulse_toolbar>
23
+ <title>Userpulse Toolbar Module</title>
24
+ <sort_order>10</sort_order>
25
+ </userpulse_toolbar>
26
+ </children>
27
+ </admin>
28
+ </resources>
29
+ </acl>
30
+ </config>
app/code/community/Userpulse/Toolbar/etc/config.xml ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+
3
+ <!--
4
+ /**
5
+ * UserPulse Toolbar Module
6
+ *
7
+ * NOTICE OF LICENSE
8
+ *
9
+ * This source file is subject to the Open Software License (OSL 3.0)
10
+ * that is bundled with this package in the file LICENSE.txt.
11
+ * It is also available through the world-wide-web at this URL:
12
+ * http://opensource.org/licenses/osl-3.0.php
13
+ * If you did not receive a copy of the license and are unable to
14
+ * obtain it through the world-wide-web, please send an email
15
+ * to license@magentocommerce.com so we can send you a copy immediately.
16
+ *
17
+ * DISCLAIMER
18
+ *
19
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
20
+ * versions in the future. If you wish to customize Magento for your
21
+ * needs please refer to http://www.magentocommerce.com for more information.
22
+ *
23
+ * UserPulse Toolbar
24
+ *
25
+ * @category UserPulse
26
+ * @package UserPulse_Toolbar
27
+ * @copyright Copyright (c) 2010 Zowta Ltd (http://www.userpulse.com)
28
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
29
+ * @author UserPulse <adi@userpulse.com>
30
+ */
31
+
32
+ -->
33
+
34
+ <config>
35
+ <modules>
36
+ <Userpulse_Toolbar>
37
+ <version>0.1.0</version>
38
+ </Userpulse_Toolbar>
39
+ </modules>
40
+
41
+ <global>
42
+ <blocks>
43
+ <userpulse_toolbar>
44
+ <class>Userpulse_Toolbar_Block</class>
45
+ </userpulse_toolbar>
46
+ </blocks>
47
+ <helpers>
48
+ <userpulse_toolbar>
49
+ <class>Userpulse_Toolbar_Helper</class>
50
+ </userpulse_toolbar>
51
+ </helpers>
52
+ </global>
53
+
54
+ <frontend>
55
+ <routers>
56
+ <userpulse_toolbar>
57
+ <use>standard</use>
58
+ <args>
59
+ <module>Userpulse_Toolbar</module>
60
+ <frontName>toolbar</frontName>
61
+ </args>
62
+ </userpulse_toolbar>
63
+ </routers>
64
+
65
+ <layout>
66
+ <updates>
67
+ <userpulse_toolbar>
68
+ <file>toolbar.xml</file>
69
+ </userpulse_toolbar>
70
+ </updates>
71
+ </layout>
72
+ </frontend>
73
+
74
+ </config>
app/code/community/Userpulse/Toolbar/etc/system.xml ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <toolbar translate="label" module="userpulse_toolbar">
5
+ <label>Toolbar</label>
6
+ <sort_order>300</sort_order>
7
+ </toolbar>
8
+ </tabs>
9
+
10
+ <sections>
11
+ <toolbar_info translate="label" module="userpulse_toolbar">
12
+ <label>Toolbar Settings</label>
13
+ <tab>toolbar</tab>
14
+ <frontend_type>text</frontend_type>
15
+ <sort_order>1000</sort_order>
16
+ <show_in_default>0</show_in_default>
17
+ <show_in_website>0</show_in_website>
18
+ <show_in_store>0</show_in_store>
19
+ <groups>
20
+ <settings translate="label">
21
+ <label>Toolbar Settings</label>
22
+ <frontend_type>text</frontend_type>
23
+ <sort_order>100</sort_order>
24
+ <show_in_default>1</show_in_default>
25
+ <show_in_website>1</show_in_website>
26
+ <show_in_store>1</show_in_store>
27
+ <fields>
28
+ <start_number translate="label comment">
29
+ <label>Start Number</label>
30
+ <!-- <comment><![CDATA[]]></comment> -->
31
+ <frontend_type>text</frontend_type>
32
+ <sort_order>1</sort_order>
33
+ <show_in_default>1</show_in_default>
34
+ <show_in_website>1</show_in_website>
35
+ <show_in_store>1</show_in_store>
36
+ </start_number>
37
+ <updated_at translate="label comment">
38
+ <label>Last Update Time</label>
39
+ <!-- <comment><![CDATA[]]></comment> -->
40
+ <frontend_type>text</frontend_type>
41
+ <sort_order>1</sort_order>
42
+ <show_in_default>1</show_in_default>
43
+ <show_in_website>1</show_in_website>
44
+ <show_in_store>1</show_in_store>
45
+ </updated_at>
46
+ </fields>
47
+ </settings>
48
+ </groups>
49
+ </toolbar_info>
50
+ </sections>
51
+ </config>
app/design/frontend/base/default/layout/toolbar.xml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+
3
+ <!--
4
+ /**
5
+ * UserPulse Toolbar Module
6
+ *
7
+ * NOTICE OF LICENSE
8
+ *
9
+ * This source file is subject to the Open Software License (OSL 3.0)
10
+ * that is bundled with this package in the file LICENSE.txt.
11
+ * It is also available through the world-wide-web at this URL:
12
+ * http://opensource.org/licenses/osl-3.0.php
13
+ * If you did not receive a copy of the license and are unable to
14
+ * obtain it through the world-wide-web, please send an email
15
+ * to license@magentocommerce.com so we can send you a copy immediately.
16
+ *
17
+ * DISCLAIMER
18
+ *
19
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
20
+ * versions in the future. If you wish to customize Magento for your
21
+ * needs please refer to http://www.magentocommerce.com for more information.
22
+ *
23
+ * UserPulse Toolbar
24
+ *
25
+ * @category UserPulse
26
+ * @package UserPulse_Toolbar
27
+ * @copyright Copyright (c) 2010 Zowta Ltd (http://www.userpulse.com)
28
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
29
+ * @author UserPulse <adi@userpulse.com>
30
+ */
31
+
32
+ -->
33
+
34
+ <layout version="0.1.0">
35
+ <default>
36
+ <reference name="after_body_start">
37
+ <block type="core/template" template="toolbar/toolbar.phtml" />
38
+ </reference>
39
+ </default>
40
+ </layout>
app/design/frontend/base/default/template/toolbar/toolbar.phtml ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * UserPulse Toolbar Module
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magentocommerce.com for more information.
21
+ *
22
+ * UserPulse Toolbar
23
+ *
24
+ * @category UserPulse
25
+ * @package UserPulse_Toolbar
26
+ * @copyright Copyright (c) 2010 Zowta Ltd (http://www.userpulse.com)
27
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
28
+ * @author UserPulse <adi@userpulse.com>
29
+ */
30
+
31
+ $startNumber = Mage::helper('userpulse_toolbar')->setupTool();
32
+
33
+ if($startNumber)
34
+ {
35
+ ?>
36
+ <script type="text/javascript">
37
+ document.write(unescape("%3Cscript src='" + ((document.location.protocol=="https:")?"https://userpulse.com/":"http://www.userpulse.com/") + "/toolbar.js?source=7&startForm=<?php echo $startNumber; ?>' type='text/javascript'%3E%3C/script%3E"));
38
+ </script>
39
+ <?php
40
+ }
41
+ ?>
app/etc/modules/Userpulse_Toolbar.xml ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+
3
+ <!--
4
+ /**
5
+ * UserPulse Toolbar Module
6
+ *
7
+ * NOTICE OF LICENSE
8
+ *
9
+ * This source file is subject to the Open Software License (OSL 3.0)
10
+ * that is bundled with this package in the file LICENSE.txt.
11
+ * It is also available through the world-wide-web at this URL:
12
+ * http://opensource.org/licenses/osl-3.0.php
13
+ * If you did not receive a copy of the license and are unable to
14
+ * obtain it through the world-wide-web, please send an email
15
+ * to license@magentocommerce.com so we can send you a copy immediately.
16
+ *
17
+ * DISCLAIMER
18
+ *
19
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
20
+ * versions in the future. If you wish to customize Magento for your
21
+ * needs please refer to http://www.magentocommerce.com for more information.
22
+ *
23
+ * UserPulse Toolbar
24
+ *
25
+ * @category UserPulse
26
+ * @package UserPulse_Toolbar
27
+ * @copyright Copyright (c) 2010 Zowta Ltd (http://www.userpulse.com)
28
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
29
+ * @author UserPulse <adi@userpulse.com>
30
+ */
31
+
32
+ -->
33
+
34
+ <config>
35
+ <modules>
36
+ <Userpulse_Toolbar>
37
+ <active>true</active>
38
+ <codePool>community</codePool>
39
+ </Userpulse_Toolbar>
40
+ </modules>
41
+ </config>
package.xml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>UserPulse_Toolbar</name>
4
+ <version>1.0.0</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/osl-3.0.php">OSL 3.0</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Live Chat, Contact Form, Get Feedback and Shopper Alerts. Optimize your Shop Support.</summary>
10
+ <description>1. Reduce cart abandonment by answering questions with live chat.&#xD;
11
+ 2. Identify serious shoppers while they are on your site.&#xD;
12
+ 3. Sell more by responding to the serious shoppers first.&#xD;
13
+ 4. Includes free live chat, contact form, feedback form, request-a-call form all in one fully customizable toolbar.</description>
14
+ <notes>This Extension is used for Live Chat, Contact Form, Get Feedback and Shopper Alerts. Optimize your Shop Support.&#xD;
15
+ &#xD;
16
+ Please follow the instruction given below.&#xD;
17
+ &#xD;
18
+ 1. To installation extract the file in your setup Magento and put all files on the same folder location.&#xD;
19
+ 2. Open your Magento Admin Panel and set admin account from system-&gt;myaccount.&#xD;
20
+ 3. Here you have to setup you Email ,First Name and LastName. If it already setup then no need to change it.&#xD;
21
+ &#xD;
22
+ Now the extension setup successfully.....</notes>
23
+ <authors><author><name>UserPulse</name><user>adibenari</user><email>adi@userpulse.com</email></author></authors>
24
+ <date>2012-03-01</date>
25
+ <time>12:39:31</time>
26
+ <contents><target name="magecommunity"><dir name="Userpulse"><dir name="Toolbar"><dir name="Helper"><file name="Data.php" hash="f24b34a9bdd78658ac8c1c7043575845"/></dir><dir name="etc"><file name="adminhtml.xml" hash="0ca352745926d796c22f84e5c513a7af"/><file name="config.xml" hash="a80166fbb8a05641eece62a6fa1e4008"/><file name="system.xml" hash="659ce401d98986515e423b1e0eddcde5"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="toolbar.xml" hash="f975969aa5e75f133c5f311c0e38d7d2"/></dir><dir name="template"><dir name="toolbar"><file name="toolbar.phtml" hash="bb22fea46962b360c1eb04471ced7f85"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Userpulse_Toolbar.xml" hash="d9bce959f6c7db213c5aca771854d8c8"/></dir></target><target name="mage"><dir name="."><file name="readme.txt" hash="16feb376ec26b74f874838920f55accc"/></dir></target></contents>
27
+ <compatible/>
28
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
29
+ </package>
readme.txt ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ UserPulse Toobar Module
3
+ --------------------------------------
4
+
5
+ This Extension is used for Live Chat, Contact Form, Get Feedback and Shopper Alerts. Optimize your Shop Support.
6
+
7
+ Please follow the instructions given below.
8
+
9
+ 1. To install extract the file in your setup Magento and put all files on the same folder location.
10
+ 2. Open your Magento Admin Panel and set admin account from system->myaccount.
11
+ 3. Here you have to setup you Email ,First Name and LastName. If it is already setup then no need to change it.
12
+ 4. Goto system->configuration tab. click on advanced link on the left panel. Here you can check that module installed or not.
13
+ 5. clear the cache.
14
+ 6. Now you can see a button at bottom or top of your site frontend if it is installed properly.
15
+
16
+ Now the extension is setup successfully.....