Diglin_Chat - Version 2.0.8

Version Notes

- 2.0.8: compatibility with latest SUPEE 6285 patch
- 2.0.7: fix upgrade setup for migration from 1.x to 2.x of this module
- 2.0.6: Change menu structure
- 2.0.5: Force SSL use while connecting to Zopim server to get account information
- 2.0.4: Fix cache issue
- 2.0.3 Update Zoppim Assets and add Cache Support
- 2.0.2: fix a bug on specific server configuration -
Zend_Log error fix
- 2.0.0: Complete new version - support of the new widget and API

Download this release

Release Info

Developer diglin
Extension Diglin_Chat
Version 2.0.8
Comparing to
See all releases


Code changes from version 2.0.7 to 2.0.8

app/code/community/Diglin/Chat/Model/Config/Source/Language.php CHANGED
@@ -20,6 +20,7 @@ class Diglin_Chat_Model_Config_Source_Language
20
 
21
  /**
22
  * Options getter
 
23
  *
24
  * @return array
25
  */
@@ -57,7 +58,7 @@ class Diglin_Chat_Model_Config_Source_Language
57
  array('value' => 'tr', 'label' => Mage::helper('chat')->__("Turkish")),
58
  array('value' => 'ur', 'label' => Mage::helper('chat')->__("Urdu")),
59
  array('value' => 'vi', 'label' => Mage::helper('chat')->__("Vietnamese")),
60
- array('value' => 'zh_CN', 'label' => Mage::helper('chat')->__("Chinese (China)")),
61
  );
62
  }
63
 
20
 
21
  /**
22
  * Options getter
23
+ * @see https://zopim.zendesk.com/entries/23886593-Changing-Widget-language-using-API
24
  *
25
  * @return array
26
  */
58
  array('value' => 'tr', 'label' => Mage::helper('chat')->__("Turkish")),
59
  array('value' => 'ur', 'label' => Mage::helper('chat')->__("Urdu")),
60
  array('value' => 'vi', 'label' => Mage::helper('chat')->__("Vietnamese")),
61
+ array('value' => 'zh_CN', 'label' => Mage::helper('chat')->__("Chinese (China)"))
62
  );
63
  }
64
 
app/code/community/Diglin/Chat/controllers/Adminhtml/IndexController.php CHANGED
@@ -17,6 +17,11 @@
17
 
18
  class Diglin_Chat_Adminhtml_IndexController extends Mage_Adminhtml_Controller_Action
19
  {
 
 
 
 
 
20
  public function indexAction()
21
  {
22
  $this->_forward('account');
17
 
18
  class Diglin_Chat_Adminhtml_IndexController extends Mage_Adminhtml_Controller_Action
19
  {
20
+ protected function _isAllowed()
21
+ {
22
+ return Mage::getSingleton('admin/session')->isAllowed('chat');
23
+ }
24
+
25
  public function indexAction()
26
  {
27
  $this->_forward('account');
app/code/community/Diglin/Chat/data/diglinchat_setup/data-upgrade-1.3.0-2.0.1.php CHANGED
@@ -28,6 +28,10 @@ $select = $installer->getConnection()->select()
28
  $result = $installer->getConnection()->fetchOne($select);
29
 
30
  if ($result) {
 
 
 
 
31
  $installer->getConnection()->insert($this->getTable('core/config_data'), array('path' => 'chat/widgetconfig/type_config', 'value' => 'adv'));
32
  $installer->getConnection()->insert($this->getTable('core/config_data'), array('path' => 'chat/widgetconfig/window_theme', 'value' => 'classic'));
33
  $installer->getConnection()->insert($this->getTable('core/config_data'), array('path' => 'chat/widgetconfig/theme_bubble_color_primary', 'value' => 'bubble_color_customized'));
28
  $result = $installer->getConnection()->fetchOne($select);
29
 
30
  if ($result) {
31
+ $installer->getConnection()->delete($this->getTable('core/config_data'), "path='chat/widgetconfig/type_config'");
32
+ $installer->getConnection()->delete($this->getTable('core/config_data'), "path='chat/widgetconfig/window_theme'");
33
+ $installer->getConnection()->delete($this->getTable('core/config_data'), "path='chat/widgetconfig/theme_bubble_color_primary'");
34
+
35
  $installer->getConnection()->insert($this->getTable('core/config_data'), array('path' => 'chat/widgetconfig/type_config', 'value' => 'adv'));
36
  $installer->getConnection()->insert($this->getTable('core/config_data'), array('path' => 'chat/widgetconfig/window_theme', 'value' => 'classic'));
37
  $installer->getConnection()->insert($this->getTable('core/config_data'), array('path' => 'chat/widgetconfig/theme_bubble_color_primary', 'value' => 'bubble_color_customized'));
app/code/community/Diglin/Chat/etc/adminhtml.xml CHANGED
@@ -66,17 +66,6 @@
66
  <children>
67
  <chat translate="title" module="chat">
68
  <title>Zopim Live Chat by Diglin GmbH</title>
69
- <children>
70
- <dashboard translate="title" module="chat">
71
- <title>Dashboard</title>
72
- </dashboard>
73
- <account translate="title" module="chat">
74
- <title>Account Setup</title>
75
- </account>
76
- <config translate="title" module="chat">
77
- <title>Configuration</title>
78
- </config>
79
- </children>
80
  </chat>
81
  </children>
82
  </customer>
66
  <children>
67
  <chat translate="title" module="chat">
68
  <title>Zopim Live Chat by Diglin GmbH</title>
 
 
 
 
 
 
 
 
 
 
 
69
  </chat>
70
  </children>
71
  </customer>
app/code/community/Diglin/Chat/etc/config.xml CHANGED
@@ -19,7 +19,7 @@
19
  <config>
20
  <modules>
21
  <Diglin_Chat>
22
- <version>2.0.6</version>
23
  </Diglin_Chat>
24
  </modules>
25
 
19
  <config>
20
  <modules>
21
  <Diglin_Chat>
22
+ <version>2.0.8</version>
23
  </Diglin_Chat>
24
  </modules>
25
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Diglin_Chat</name>
4
- <version>2.0.7</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>
@@ -84,7 +84,8 @@
84
  &lt;li&gt;Regarding Zopim Chat itself, please visit &lt;a href="http://bit.ly/1kcTNL5"&gt;http://www.zopim.com&lt;/a&gt;&lt;/li&gt;&#xD;
85
  &lt;li&gt;Code is available on &lt;a href="https://github.com/diglin/Diglin_Chat"&gt;Github&lt;/a&gt;&lt;/li&gt;&#xD;
86
  &lt;/ul&gt;</description>
87
- <notes>- 2.0.7: fix upgrade setup for migration from 1.x to 2.x of this module&#xD;
 
88
  - 2.0.6: Change menu structure&#xD;
89
  - 2.0.5: Force SSL use while connecting to Zopim server to get account information&#xD;
90
  - 2.0.4: Fix cache issue&#xD;
@@ -93,9 +94,9 @@
93
  Zend_Log error fix&#xD;
94
  - 2.0.0: Complete new version - support of the new widget and API</notes>
95
  <authors><author><name>diglin</name><user>diglin</user><email>sly@diglin.com</email></author></authors>
96
- <date>2015-05-15</date>
97
- <time>16:46:13</time>
98
- <contents><target name="mageetc"><dir name="modules"><file name="Diglin_Chat.xml" hash="ff6f5a3e3492e983a02dfb93c55374ed"/></dir></target><target name="magecommunity"><dir name="Diglin"><dir name="Chat"><dir name="Block"><dir name="Adminhtml"><dir name="Config"><dir name="Source"><file name="Heading.php" hash="2f1fa69d19c2b2511a8170fb00dac9b6"/><file name="Hint.php" hash="2a86de04db2c894454d514d1936ca689"/></dir></dir><file name="Dashboard.php" hash="5a224b780670cbedc7aef26bdf25cd3d"/></dir><file name="Display.php" hash="f226d7ee803a1c8c904e274467eef350"/></dir><dir name="Helper"><file name="Data.php" hash="086ed2987d1904f5e4eda70b0d879857"/></dir><dir name="Model"><dir name="Config"><dir name="Source"><file name="Api.php" hash="f9f4caaa8264141ea360cee865ac6b6c"/><file name="Badgecolor.php" hash="0eb3a51b5a9474a812e3210b095b6d39"/><file name="Bubblecolor.php" hash="bfbc0ed8c2194a0829f11159e38adfaa"/><file name="Buttonposition.php" hash="30624e50b915e498414fcef34e331026"/><file name="Classicthemes.php" hash="6b7f014e233c805b46d5e5f9e00d829a"/><file name="Language.php" hash="6ad9435fa363314b1b8ee3fd33a15742"/><file name="Layout.php" hash="74ea999eb7ab4f27f5c5976f0ea3f135"/><file name="Mobileposition.php" hash="c81669ab6d0b13ae267fe6c2ae4bf988"/><file name="Showhide.php" hash="21e2ad8dae77450edd1d38a5f0a3b5a9"/><file name="Simpleadvanced.php" hash="b81a67776915105f76d2928d583110fd"/><file name="Themes.php" hash="ebac216acc267191fee31d812aac1d1f"/><file name="Windowposition.php" hash="39a6ae8a676b63baf8bd4b8bd7eff26f"/><file name="Windowsize.php" hash="a4c36b741aa23a2379568eeb009cdc2f"/></dir></dir><dir name="Resource"><file name="Setup.php" hash="9ed4d5c5e9c80184594799c7add3ccb9"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="338d88c022109f69f674ec544421e065"/></dir></dir><dir name="data"><dir name="diglinchat_setup"><file name="data-upgrade-1.3.0-2.0.1.php" hash="1e875c4dc9865932b368c890a8d2c6e0"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="0c1d0f8361e1a333cf56d95e8b3aaffd"/><file name="config.xml" hash="ee534ae4a3eff502858ddaaa09426a97"/><file name="system.xml" hash="5f3b4671ae5445369e9b09099418592f"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="chat.xml" hash="86637d1582ac19d8b1525ad231904cc6"/></dir><dir name="template"><dir name="chat"><file name="test.phtml" hash="6462d6f79dcfd02bd438dc1eba51056f"/><file name="widget.phtml" hash="ddd8dc659efde43ebf8d52abfc96fef2"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="chat.xml" hash="bc38588dbbf0ff83434b07aa22c4401b"/></dir><dir name="template"><dir name="chat"><file name="account.phtml" hash="fb65e0216615095647f87e5e86523f53"/><file name="dashboard.phtml" hash="3b9ad1e7855153f8e5de0f409cb99549"/><file name="footer.phtml" hash="34bc2fcb61fefbb78d6df0830257d522"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="zopim"><file name="zopim.css" hash="2bbb9b1c17207654f53f8b0ef82c25e0"/></dir></dir></dir></dir></target></contents>
99
  <compatible/>
100
  <dependencies><required><php><min>5.2.9</min><max>6.0.0</max></php></required></dependencies>
101
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Diglin_Chat</name>
4
+ <version>2.0.8</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>
84
  &lt;li&gt;Regarding Zopim Chat itself, please visit &lt;a href="http://bit.ly/1kcTNL5"&gt;http://www.zopim.com&lt;/a&gt;&lt;/li&gt;&#xD;
85
  &lt;li&gt;Code is available on &lt;a href="https://github.com/diglin/Diglin_Chat"&gt;Github&lt;/a&gt;&lt;/li&gt;&#xD;
86
  &lt;/ul&gt;</description>
87
+ <notes>- 2.0.8: compatibility with latest SUPEE 6285 patch&#xD;
88
+ - 2.0.7: fix upgrade setup for migration from 1.x to 2.x of this module&#xD;
89
  - 2.0.6: Change menu structure&#xD;
90
  - 2.0.5: Force SSL use while connecting to Zopim server to get account information&#xD;
91
  - 2.0.4: Fix cache issue&#xD;
94
  Zend_Log error fix&#xD;
95
  - 2.0.0: Complete new version - support of the new widget and API</notes>
96
  <authors><author><name>diglin</name><user>diglin</user><email>sly@diglin.com</email></author></authors>
97
+ <date>2015-08-03</date>
98
+ <time>07:27:36</time>
99
+ <contents><target name="mageetc"><dir name="modules"><file name="Diglin_Chat.xml" hash="ff6f5a3e3492e983a02dfb93c55374ed"/></dir></target><target name="magecommunity"><dir name="Diglin"><dir name="Chat"><dir name="Block"><dir name="Adminhtml"><dir name="Config"><dir name="Source"><file name="Heading.php" hash="2f1fa69d19c2b2511a8170fb00dac9b6"/><file name="Hint.php" hash="2a86de04db2c894454d514d1936ca689"/></dir></dir><file name="Dashboard.php" hash="5a224b780670cbedc7aef26bdf25cd3d"/></dir><file name="Display.php" hash="f226d7ee803a1c8c904e274467eef350"/></dir><dir name="Helper"><file name="Data.php" hash="086ed2987d1904f5e4eda70b0d879857"/></dir><dir name="Model"><dir name="Config"><dir name="Source"><file name="Api.php" hash="f9f4caaa8264141ea360cee865ac6b6c"/><file name="Badgecolor.php" hash="0eb3a51b5a9474a812e3210b095b6d39"/><file name="Bubblecolor.php" hash="bfbc0ed8c2194a0829f11159e38adfaa"/><file name="Buttonposition.php" hash="30624e50b915e498414fcef34e331026"/><file name="Classicthemes.php" hash="6b7f014e233c805b46d5e5f9e00d829a"/><file name="Language.php" hash="7acd02ac30303da8e8974e584818325a"/><file name="Layout.php" hash="74ea999eb7ab4f27f5c5976f0ea3f135"/><file name="Mobileposition.php" hash="c81669ab6d0b13ae267fe6c2ae4bf988"/><file name="Showhide.php" hash="21e2ad8dae77450edd1d38a5f0a3b5a9"/><file name="Simpleadvanced.php" hash="b81a67776915105f76d2928d583110fd"/><file name="Themes.php" hash="ebac216acc267191fee31d812aac1d1f"/><file name="Windowposition.php" hash="39a6ae8a676b63baf8bd4b8bd7eff26f"/><file name="Windowsize.php" hash="a4c36b741aa23a2379568eeb009cdc2f"/></dir></dir><dir name="Resource"><file name="Setup.php" hash="9ed4d5c5e9c80184594799c7add3ccb9"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="ea402d708544015e197c6f4ea3d02c8a"/></dir></dir><dir name="data"><dir name="diglinchat_setup"><file name="data-upgrade-1.3.0-2.0.1.php" hash="6c13709c1969130bc481ebf62f4ba79c"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="2030ae0ed1f6462bb1d630519f030b1c"/><file name="config.xml" hash="bbdfcac6d1edcd20476c65da50583b18"/><file name="system.xml" hash="5f3b4671ae5445369e9b09099418592f"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="chat.xml" hash="86637d1582ac19d8b1525ad231904cc6"/></dir><dir name="template"><dir name="chat"><file name="test.phtml" hash="6462d6f79dcfd02bd438dc1eba51056f"/><file name="widget.phtml" hash="ddd8dc659efde43ebf8d52abfc96fef2"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="chat.xml" hash="bc38588dbbf0ff83434b07aa22c4401b"/></dir><dir name="template"><dir name="chat"><file name="account.phtml" hash="fb65e0216615095647f87e5e86523f53"/><file name="dashboard.phtml" hash="3b9ad1e7855153f8e5de0f409cb99549"/><file name="footer.phtml" hash="34bc2fcb61fefbb78d6df0830257d522"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="zopim"><file name="zopim.css" hash="2bbb9b1c17207654f53f8b0ef82c25e0"/></dir></dir></dir></dir></target></contents>
100
  <compatible/>
101
  <dependencies><required><php><min>5.2.9</min><max>6.0.0</max></php></required></dependencies>
102
  </package>