Sostanza_LiveHelp - Version 1.0.4

Version Notes

Minor bug fix, added compatibility for CE 9

Download this release

Release Info

Developer a.laciura@sostanza.it
Extension Sostanza_LiveHelp
Version 1.0.4
Comparing to
See all releases


Code changes from version 1.0.3 to 1.0.4

app/code/community/Sostanza/Livehelp/Block/Livehelp.php CHANGED
@@ -65,6 +65,23 @@ protected function _toHtml()
65
  case 'bottone grigio-rosso':
66
  $href = "<A HREF='#' OnClick='apri_livehelp(); return(false);'><img border='0' src='http://server.livehelp.it/admin/logo_livehelp.asp?bottone=10&gruppo=".$ID."&stanza='></A>";
67
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  }
69
 
70
  switch ($posizione)
65
  case 'bottone grigio-rosso':
66
  $href = "<A HREF='#' OnClick='apri_livehelp(); return(false);'><img border='0' src='http://server.livehelp.it/admin/logo_livehelp.asp?bottone=10&gruppo=".$ID."&stanza='></A>";
67
  break;
68
+
69
+ case'bottone rosso EN':
70
+ $href = "<A HREF='#' OnClick='apri_livehelp(); return(false);'><img border='0' src='http://server.livehelp.it/admin/logo_livehelp.asp?bottone=17&gruppo=".$ID."&stanza='></A>";
71
+
72
+ case'bottone grigio verde EN':
73
+ $href = "<A HREF='#' OnClick='apri_livehelp(); return(false);'><img border='0' src='http://server.livehelp.it/admin/logo_livehelp.asp?bottone=14&gruppo=".$ID."&stanza='></A>";
74
+
75
+ case 'bottone grigio rosso EN':
76
+ $href = "<A HREF='#' OnClick='apri_livehelp(); return(false);'><img border='0' src='http://server.livehelp.it/admin/logo_livehelp.asp?bottone=20&gruppo=".$ID."&stanza='></A>";
77
+
78
+ case 'bottone con ragazza green':
79
+ $href = "<A HREF='#' OnClick='apri_livehelp(); return(false);'><img border='0' src='http://server.livehelp.it/admin/logo_livehelp.asp?bottone=18&gruppo=".$ID."&stanza='></A>";
80
+ case 'bottone con ragazza red':
81
+ $href = "<A HREF='#' OnClick='apri_livehelp(); return(false);'><img border='0' src='http://server.livehelp.it/admin/logo_livehelp.asp?bottone=19&gruppo=".$ID."&stanza='></A>";
82
+ case 'non perdere tempo EN':
83
+ $href = "<A HREF='#' OnClick='apri_livehelp(); return(false);'><img border='0' src='http://server.livehelp.it/admin/logo_livehelp.asp?bottone=15&gruppo=".$ID."&stanza='></A>";
84
+
85
  }
86
 
87
  switch ($posizione)
app/code/community/Sostanza/Livehelp/controllers/Adminhtml/CustomController.php CHANGED
@@ -1 +1 @@
1
- <?php
2
  * Sostanza LiveHelp® chat
3
  *
4
  * NOTICE OF LICENSE
5
  *
6
  * This source file is subject to the Open Software License (OSL 3.0)
7
  * that is bundled with this package in the file LICENSE.txt.
8
  * It is also available through the world-wide-web at this URL:
9
  * http://opensource.org/licenses/osl-3.0.php
10
  * If you did not receive a copy of the license and are unable to
11
  * obtain it through the world-wide-web, please send an email
12
  * to info@sostanza.it so we can send you a copy immediately.
13
  *
14
  * @category Sostanza
15
  * @package Sostanza_LiveHelp
16
  * @copyright Copyright 2014 Sostanza s.r.l (http://www.sostanza.it)
17
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
  */
19
  public function indexAction()
20
  {
21
  $this->loadLayout()
22
  ->_setActiveMenu('mycustomtab')
23
  ->_title($this->__('Index Action'));
24
 
25
  $key = Mage::helper("adminhtml")->getUrl("adminhtml/widget_instance/");
26
  $url = '/index.php/admin/widget_instance/index/key/'.$key;
27
  $this->renderLayout();
28
  }
29
 
30
  public function listAction()
31
  {
32
  $this->loadLayout()
33
  ->_setActiveMenu('mycustomtab')
34
  ->_title($this->__('List Action'));
35
  //$url = 'http://server.livehelp.it/admin/main.asp';
36
  // $this->getResponse()->setRedirect($url);
37
  $key = Mage::helper("adminhtml")->getUrl("adminhtml/custom/chat");
38
  $url = '/index.php/admin/custom/chat/key/'.$key;
39
  $this->getResponse()->setRedirect($url);
40
  $this->renderLayout();
41
  }
42
  public function aboutAction()
43
  {
44
  $this->loadLayout()
45
  ->_setActiveMenu('mycustomtab')
46
  ->_title($this->__('About Action'));
47
  /* $url = "<script type='text/javascript'>window.open('http://www.livehelp.it/vedit/pagina.asp?pagina=1395')</script>";
48
  // $this->getResponse()->setRedirect('http://magentogiulia.ilbello.com/index.php/admin');
49
  $url2 = '/index.php/admin/widget_instance/index/key/'.$key2;*/
50
 
51
  $url = '/index.php/admin/custom/chat/key/'.$key;
52
  $this->getResponse()->setRedirect($url);
53
 
54
  //$this->loadLayout();
55
  $this->renderLayout();
56
  }
57
  {
58
 
59
  /**
60
  * Retrieve the read connection
61
  */
62
  $readConnection = $resource->getConnection('core_read');
63
 
64
  /**
65
  * Retrieve our table name
66
  */
67
  //$sku = $readConnection->fetchOne($query);
68
 
69
  $this->loadLayout()
70
  ->_setActiveMenu('mycustomtab')
71
  ->_title($this->__('Chat Action'));
72
  ->createBlock('core/text', 'example-block')
73
  ->setText('clicca <a href="'.$url.'" target="blank">qui</a> per chattare<br/>');
74
  ->createBlock('core/text', 'example-block2')
75
  ->setText('clicca <a href="http://server.livehelp.it/admin/main.asp" target="blank">qui</a> per amministrare il tuo account<br/>');
76
  ->createBlock('core/text', 'example-block3')
77
  ->setText('clicca <a href="http://www.livehelp.it/index.asp?lingua=EN" target="blank">qui</a> per andare sul sito livehelp');
78
  <tr>
79
  <td><h1>What is LiveHelp®?</h1>
80
  <td rowspan="3"><img src="http://www.livehelp.it/vedit/15/img/business-opportunity.png"></td>
81
  </tr>
82
  <tr>
83
  <td>
84
  </tr>
85
  <tr>
86
  <td><a href="'.$url.'" target="blank"><button>Agent\'s login</button></a>
87
  </tr>
88
  ->createBlock('core/text', 'example-block4')
89
  ->setText($html);
90
  $this->renderLayout();
91
  }
 
92
  * Sostanza LiveHelp® chat
93
  *
94
  * NOTICE OF LICENSE
95
  *
96
  * This source file is subject to the Open Software License (OSL 3.0)
97
  * that is bundled with this package in the file LICENSE.txt.
98
  * It is also available through the world-wide-web at this URL:
99
  * http://opensource.org/licenses/osl-3.0.php
100
  * If you did not receive a copy of the license and are unable to
101
  * obtain it through the world-wide-web, please send an email
102
  * to info@sostanza.it so we can send you a copy immediately.
103
  *
104
  * @category Sostanza
105
  * @package Sostanza_LiveHelp
106
  * @copyright Copyright 2014 Sostanza s.r.l (http://www.sostanza.it)
107
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
108
  */
109
  public function indexAction()
110
  {
111
  $this->loadLayout()
112
  ->_setActiveMenu('mycustomtab')
113
  ->_title($this->__('Index Action'));
114
 
115
  $key = Mage::helper("adminhtml")->getUrl("adminhtml/widget_instance/");
116
  $url = $key;
117
  $this->renderLayout();
118
  }
119
 
120
  public function listAction()
121
  {
122
  $this->loadLayout()
123
  ->_setActiveMenu('mycustomtab')
124
  ->_title($this->__('List Action'));
125
  //$url = 'http://server.livehelp.it/admin/main.asp';
126
  // $this->getResponse()->setRedirect($url);
127
  $key = Mage::helper("adminhtml")->getUrl("adminhtml/custom/chat");
128
  $url = $key;
129
  $this->getResponse()->setRedirect($url);
130
  $this->renderLayout();
131
  }
132
  public function aboutAction()
133
  {
134
  $this->loadLayout()
135
  ->_setActiveMenu('mycustomtab')
136
  ->_title($this->__('About Action'));
137
  /* $url = "<script type='text/javascript'>window.open('http://www.livehelp.it/vedit/pagina.asp?pagina=1395')</script>";
138
  // $this->getResponse()->setRedirect('http://magentogiulia.ilbello.com/index.php/admin');
139
  $url2 = '/index.php/admin/widget_instance/index/key/'.$key2;*/
140
 
141
  $url = $key;
142
  $this->getResponse()->setRedirect($url);
143
 
144
  //$this->loadLayout();
145
  $this->renderLayout();
146
  }
147
  {
148
 
149
  /**
150
  * Retrieve the read connection
151
  */
152
  $readConnection = $resource->getConnection('core_read');
153
 
154
  /**
155
  * Retrieve our table name
156
  */
157
  //$sku = $readConnection->fetchOne($query);
158
 
159
  $this->loadLayout()
160
  ->_setActiveMenu('mycustomtab')
161
  ->_title($this->__('Chat Action'));
162
  ->createBlock('core/text', 'example-block')
163
  ->setText('clicca <a href="'.$url.'" target="blank">qui</a> per chattare<br/>');
164
  ->createBlock('core/text', 'example-block2')
165
  ->setText('clicca <a href="http://server.livehelp.it/admin/main.asp" target="blank">qui</a> per amministrare il tuo account<br/>');
166
  ->createBlock('core/text', 'example-block3')
167
  ->setText('clicca <a href="http://www.livehelp.it/index.asp?lingua=EN" target="blank">qui</a> per andare sul sito livehelp');
168
  <tr>
169
  <td><h1>What is LiveHelp®?</h1>
170
  <td rowspan="3"><img src="http://www.livehelp.it/vedit/15/img/business-opportunity.png"></td>
171
  </tr>
172
  <tr>
173
  <td>
174
  </tr>
175
  <tr>
176
  <td><a href="'.$url.'" target="blank"><button>Agent\'s login</button></a>
177
  </tr>
178
  ->createBlock('core/text', 'example-block4')
179
  ->setText($html);
180
  $this->renderLayout();
181
  }
 
1
  * Sostanza LiveHelp® chat
2
  *
3
  * NOTICE OF LICENSE
4
  *
5
  * This source file is subject to the Open Software License (OSL 3.0)
6
  * that is bundled with this package in the file LICENSE.txt.
7
  * It is also available through the world-wide-web at this URL:
8
  * http://opensource.org/licenses/osl-3.0.php
9
  * If you did not receive a copy of the license and are unable to
10
  * obtain it through the world-wide-web, please send an email
11
  * to info@sostanza.it so we can send you a copy immediately.
12
  *
13
  * @category Sostanza
14
  * @package Sostanza_LiveHelp
15
  * @copyright Copyright 2014 Sostanza s.r.l (http://www.sostanza.it)
16
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
17
  */
18
  public function indexAction()
19
  {
20
  $this->loadLayout()
21
  ->_setActiveMenu('mycustomtab')
22
  ->_title($this->__('Index Action'));
23
 
24
  $key = Mage::helper("adminhtml")->getUrl("adminhtml/widget_instance/");
25
  $url = '/index.php/admin/widget_instance/index/key/'.$key;
26
  $this->renderLayout();
27
  }
28
 
29
  public function listAction()
30
  {
31
  $this->loadLayout()
32
  ->_setActiveMenu('mycustomtab')
33
  ->_title($this->__('List Action'));
34
  //$url = 'http://server.livehelp.it/admin/main.asp';
35
  // $this->getResponse()->setRedirect($url);
36
  $key = Mage::helper("adminhtml")->getUrl("adminhtml/custom/chat");
37
  $url = '/index.php/admin/custom/chat/key/'.$key;
38
  $this->getResponse()->setRedirect($url);
39
  $this->renderLayout();
40
  }
41
  public function aboutAction()
42
  {
43
  $this->loadLayout()
44
  ->_setActiveMenu('mycustomtab')
45
  ->_title($this->__('About Action'));
46
  /* $url = "<script type='text/javascript'>window.open('http://www.livehelp.it/vedit/pagina.asp?pagina=1395')</script>";
47
  // $this->getResponse()->setRedirect('http://magentogiulia.ilbello.com/index.php/admin');
48
  $url2 = '/index.php/admin/widget_instance/index/key/'.$key2;*/
49
 
50
  $url = '/index.php/admin/custom/chat/key/'.$key;
51
  $this->getResponse()->setRedirect($url);
52
 
53
  //$this->loadLayout();
54
  $this->renderLayout();
55
  }
56
  {
57
 
58
  /**
59
  * Retrieve the read connection
60
  */
61
  $readConnection = $resource->getConnection('core_read');
62
 
63
  /**
64
  * Retrieve our table name
65
  */
66
  //$sku = $readConnection->fetchOne($query);
67
 
68
  $this->loadLayout()
69
  ->_setActiveMenu('mycustomtab')
70
  ->_title($this->__('Chat Action'));
71
  ->createBlock('core/text', 'example-block')
72
  ->setText('clicca <a href="'.$url.'" target="blank">qui</a> per chattare<br/>');
73
  ->createBlock('core/text', 'example-block2')
74
  ->setText('clicca <a href="http://server.livehelp.it/admin/main.asp" target="blank">qui</a> per amministrare il tuo account<br/>');
75
  ->createBlock('core/text', 'example-block3')
76
  ->setText('clicca <a href="http://www.livehelp.it/index.asp?lingua=EN" target="blank">qui</a> per andare sul sito livehelp');
77
  <tr>
78
  <td><h1>What is LiveHelp®?</h1>
79
  <td rowspan="3"><img src="http://www.livehelp.it/vedit/15/img/business-opportunity.png"></td>
80
  </tr>
81
  <tr>
82
  <td>
83
  </tr>
84
  <tr>
85
  <td><a href="'.$url.'" target="blank"><button>Agent\'s login</button></a>
86
  </tr>
87
  ->createBlock('core/text', 'example-block4')
88
  ->setText($html);
89
  $this->renderLayout();
90
  }
91
+ <?php
92
  * Sostanza LiveHelp® chat
93
  *
94
  * NOTICE OF LICENSE
95
  *
96
  * This source file is subject to the Open Software License (OSL 3.0)
97
  * that is bundled with this package in the file LICENSE.txt.
98
  * It is also available through the world-wide-web at this URL:
99
  * http://opensource.org/licenses/osl-3.0.php
100
  * If you did not receive a copy of the license and are unable to
101
  * obtain it through the world-wide-web, please send an email
102
  * to info@sostanza.it so we can send you a copy immediately.
103
  *
104
  * @category Sostanza
105
  * @package Sostanza_LiveHelp
106
  * @copyright Copyright 2014 Sostanza s.r.l (http://www.sostanza.it)
107
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
108
  */
109
  public function indexAction()
110
  {
111
  $this->loadLayout()
112
  ->_setActiveMenu('mycustomtab')
113
  ->_title($this->__('Index Action'));
114
 
115
  $key = Mage::helper("adminhtml")->getUrl("adminhtml/widget_instance/");
116
  $url = $key;
117
  $this->renderLayout();
118
  }
119
 
120
  public function listAction()
121
  {
122
  $this->loadLayout()
123
  ->_setActiveMenu('mycustomtab')
124
  ->_title($this->__('List Action'));
125
  //$url = 'http://server.livehelp.it/admin/main.asp';
126
  // $this->getResponse()->setRedirect($url);
127
  $key = Mage::helper("adminhtml")->getUrl("adminhtml/custom/chat");
128
  $url = $key;
129
  $this->getResponse()->setRedirect($url);
130
  $this->renderLayout();
131
  }
132
  public function aboutAction()
133
  {
134
  $this->loadLayout()
135
  ->_setActiveMenu('mycustomtab')
136
  ->_title($this->__('About Action'));
137
  /* $url = "<script type='text/javascript'>window.open('http://www.livehelp.it/vedit/pagina.asp?pagina=1395')</script>";
138
  // $this->getResponse()->setRedirect('http://magentogiulia.ilbello.com/index.php/admin');
139
  $url2 = '/index.php/admin/widget_instance/index/key/'.$key2;*/
140
 
141
  $url = $key;
142
  $this->getResponse()->setRedirect($url);
143
 
144
  //$this->loadLayout();
145
  $this->renderLayout();
146
  }
147
  {
148
 
149
  /**
150
  * Retrieve the read connection
151
  */
152
  $readConnection = $resource->getConnection('core_read');
153
 
154
  /**
155
  * Retrieve our table name
156
  */
157
  //$sku = $readConnection->fetchOne($query);
158
 
159
  $this->loadLayout()
160
  ->_setActiveMenu('mycustomtab')
161
  ->_title($this->__('Chat Action'));
162
  ->createBlock('core/text', 'example-block')
163
  ->setText('clicca <a href="'.$url.'" target="blank">qui</a> per chattare<br/>');
164
  ->createBlock('core/text', 'example-block2')
165
  ->setText('clicca <a href="http://server.livehelp.it/admin/main.asp" target="blank">qui</a> per amministrare il tuo account<br/>');
166
  ->createBlock('core/text', 'example-block3')
167
  ->setText('clicca <a href="http://www.livehelp.it/index.asp?lingua=EN" target="blank">qui</a> per andare sul sito livehelp');
168
  <tr>
169
  <td><h1>What is LiveHelp®?</h1>
170
  <td rowspan="3"><img src="http://www.livehelp.it/vedit/15/img/business-opportunity.png"></td>
171
  </tr>
172
  <tr>
173
  <td>
174
  </tr>
175
  <tr>
176
  <td><a href="'.$url.'" target="blank"><button>Agent\'s login</button></a>
177
  </tr>
178
  ->createBlock('core/text', 'example-block4')
179
  ->setText($html);
180
  $this->renderLayout();
181
  }
app/code/community/Sostanza/Livehelp/etc/widget.xml CHANGED
@@ -56,6 +56,30 @@
56
  <value>bottone grigio-rosso</value>
57
  <label>bottone grigio-rosso</label>
58
  </grigio_rosso>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  </values>
60
  <description>
61
  Choose the button to display on frontend
56
  <value>bottone grigio-rosso</value>
57
  <label>bottone grigio-rosso</label>
58
  </grigio_rosso>
59
+ <bottone_rosso_EN translate="label">
60
+ <value>bottone rosso EN</value>
61
+ <label>bottone rosso EN</label>
62
+ </bottone_rosso_EN>
63
+ <bottone_grigio_verde_EN translate="label">
64
+ <value>bottone grigio verde EN</value>
65
+ <label>bottone grigio verde EN</label>
66
+ </bottone_grigio_verde_EN>
67
+ <bottone_grigio_rosso_EN translate="label">
68
+ <value>bottone grigio rosso EN</value>
69
+ <label>bottone grigio rosso EN</label>
70
+ </bottone_grigio_rosso_EN>
71
+ <bottone_con_ragazza_green translate="label">
72
+ <value>bottone con ragazza green</value>
73
+ <label>bottone con ragazza green</label>
74
+ </bottone_con_ragazza_green>
75
+ <bottone_con_ragazza_red translate="label">
76
+ <value>bottone con ragazza red</value>
77
+ <label>bottone con ragazza red</label>
78
+ </bottone_con_ragazza_red>
79
+ <non_perdere_tempo_EN translate="label">
80
+ <value>non perdere tempo EN</value>
81
+ <label>non perdere tempo EN</label>
82
+ </non_perdere_tempo_EN>
83
  </values>
84
  <description>
85
  Choose the button to display on frontend
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Sostanza_LiveHelp</name>
4
- <version>1.0.3</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>Livehelp for chat support</summary>
10
- <description>LiveHelp&#xAE; is the customer care service in which the company operator answers to customers' and prospects' questions directly in a real-time chat.</description>
11
- <notes>Added installation guide.</notes>
12
  <authors><author><name>Alessandro La Ciura</name><user>alaciura</user><email>a.laciura@sostanza.it</email></author></authors>
13
- <date>2014-04-07</date>
14
- <time>10:25:28</time>
15
- <contents><target name="magecommunity"><dir name="Sostanza"><dir name="Livehelp"><dir name="Block"><file name="Livehelp.php" hash="2271c5eede6e0e8e668824e3d1f22830"/></dir><dir name="Helper"><file name="Data.php" hash="98334f85f503ecce4828aa25feeba4ee"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="CustomController.php" hash="69bc2c21b9637bab752e98cc7e4d3128"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="cbf52b8d3c14274c029097096f169e1b"/><file name="config.xml" hash="c245ef2a299a65440d97f2a514b60a7a"/><file name="widget.xml" hash="9d482662b5fc28dfa637256c71ccfd63"/></dir><file name="livehelp_magento_guide.pdf" hash="b78ca838407d7742be4e87b918a2ad20"/><file name=".DS_Store" hash="f41f525169d6272ff2c77dc5440285c6"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sostanza_Livehelp.xml" hash="b1746da8a328bf3aada246bd68bee59b"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Sostanza_LiveHelp</name>
4
+ <version>1.0.4</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>Livehelp for chat support</summary>
10
+ <description>LiveHelp&amp;#xAE; is the customer care service in which the company operator answers to customers' and prospects' questions directly in a real-time chat.</description>
11
+ <notes>Minor bug fix, added compatibility for CE 9</notes>
12
  <authors><author><name>Alessandro La Ciura</name><user>alaciura</user><email>a.laciura@sostanza.it</email></author></authors>
13
+ <date>2014-09-05</date>
14
+ <time>10:34:38</time>
15
+ <contents><target name="magecommunity"><dir name="Sostanza"><dir name="Livehelp"><dir name="Block"><file name="Livehelp.php" hash="cc7dc337c7dcb488bc08107029d0041c"/></dir><dir name="Helper"><file name="Data.php" hash="98334f85f503ecce4828aa25feeba4ee"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="CustomController.php" hash="04447a1ff88085b8fcd32dd42d26223c"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="cbf52b8d3c14274c029097096f169e1b"/><file name="config.xml" hash="c245ef2a299a65440d97f2a514b60a7a"/><file name="widget.xml" hash="e011bdba9c38116690fd1edf4e9563e1"/></dir><file name="livehelp_magento_guide.pdf" hash="b78ca838407d7742be4e87b918a2ad20"/><file name=".DS_Store" hash="f41f525169d6272ff2c77dc5440285c6"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sostanza_Livehelp.xml" hash="b1746da8a328bf3aada246bd68bee59b"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>