Beck_LiveChat - Version 1.4.5

Version Notes

none

Download this release

Release Info

Developer Magento Core Team
Extension Beck_LiveChat
Version 1.4.5
Comparing to
See all releases


Code changes from version 1.4.4 to 1.4.5

app/code/community/Beck/LiveChat/Block/Template.php CHANGED
@@ -15,6 +15,13 @@ class Beck_LiveChat_Block_Template extends Mage_Core_Block_Template
15
  {
16
  parent::_construct();
17
  $this->isActive = $this->getConfigData('livechatconfiguration/general/active') == '0' ? false : true;
 
 
 
 
 
 
 
18
  if ($this->isActive)
19
  {
20
  $this->refreshfrequency = $this->getConfigData('livechatconfiguration/general/refreshfrequency');
15
  {
16
  parent::_construct();
17
  $this->isActive = $this->getConfigData('livechatconfiguration/general/active') == '0' ? false : true;
18
+
19
+ $limited_to_registered_user = $this->getConfigData('livechatconfiguration/display/limitregisteredusers') == '0' ? false : true;
20
+ if ($limited_to_registered_user == true)
21
+ {
22
+ $this->isActive = Mage::Helper('customer/data')->isLoggedIn();
23
+ }
24
+
25
  if ($this->isActive)
26
  {
27
  $this->refreshfrequency = $this->getConfigData('livechatconfiguration/general/refreshfrequency');
app/code/community/Beck/LiveChat/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Beck_LiveChat>
5
- <version>1.4.4</version>
6
  </Beck_LiveChat>
7
  </modules>
8
  <admin>
@@ -238,6 +238,7 @@
238
  <systemname>System</systemname>
239
  <systemwaitmessage>Your message has been sent, an operator will answer you soon</systemwaitmessage>
240
  <systemautosessionmessage>Welcome, you can now discuss with an operator</systemautosessionmessage>
 
241
  </display>
242
  </livechatconfiguration>
243
  <livechatevents>
2
  <config>
3
  <modules>
4
  <Beck_LiveChat>
5
+ <version>1.4.5</version>
6
  </Beck_LiveChat>
7
  </modules>
8
  <admin>
238
  <systemname>System</systemname>
239
  <systemwaitmessage>Your message has been sent, an operator will answer you soon</systemwaitmessage>
240
  <systemautosessionmessage>Welcome, you can now discuss with an operator</systemautosessionmessage>
241
+ <limitregisteredusers>0</limitregisteredusers>
242
  </display>
243
  </livechatconfiguration>
244
  <livechatevents>
app/code/community/Beck/LiveChat/etc/system.xml CHANGED
@@ -78,6 +78,7 @@
78
  <show_in_store>0</show_in_store>
79
  <comment>Set 0 to display all lines</comment>
80
  </nbmaxlines>
 
81
  </fields>
82
  </general>
83
  <display translate="label" module="livechat">
@@ -149,7 +150,7 @@
149
  <show_in_store>1</show_in_store>
150
  <comment>Message sent when a customer has just started a chat session.</comment>
151
  </systemwaitmessage>
152
- <systemautosessionmessage translate="label" module="livechat">
153
  <label>System message when session is automatically created</label>
154
  <frontend_type>text</frontend_type>
155
  <sort_order>7</sort_order>
@@ -158,6 +159,16 @@
158
  <show_in_store>1</show_in_store>
159
  <comment>Message sent when a chat has been automatically created.</comment>
160
  </systemautosessionmessage>
 
 
 
 
 
 
 
 
 
 
161
  </fields>
162
  </display>
163
  </groups>
78
  <show_in_store>0</show_in_store>
79
  <comment>Set 0 to display all lines</comment>
80
  </nbmaxlines>
81
+
82
  </fields>
83
  </general>
84
  <display translate="label" module="livechat">
150
  <show_in_store>1</show_in_store>
151
  <comment>Message sent when a customer has just started a chat session.</comment>
152
  </systemwaitmessage>
153
+ <systemautosessionmessage translate="label comment" module="livechat">
154
  <label>System message when session is automatically created</label>
155
  <frontend_type>text</frontend_type>
156
  <sort_order>7</sort_order>
159
  <show_in_store>1</show_in_store>
160
  <comment>Message sent when a chat has been automatically created.</comment>
161
  </systemautosessionmessage>
162
+ <limitregisteredusers translate="label comment" module="livechat">
163
+ <label>Display only for registered user</label>
164
+ <frontend_type>select</frontend_type>
165
+ <source_model>adminhtml/system_config_source_yesno</source_model>
166
+ <sort_order>8</sort_order>
167
+ <show_in_default>1</show_in_default>
168
+ <show_in_website>1</show_in_website>
169
+ <show_in_store>1</show_in_store>
170
+ <comment>If yes, only connected customer can see the chatbox.</comment>
171
+ </limitregisteredusers>
172
  </fields>
173
  </display>
174
  </groups>
app/etc/modules/ZBeck_LiveChat.xml CHANGED
@@ -5,7 +5,7 @@
5
  <active>true</active>
6
  <codePool>community</codePool>
7
  <depends />
8
- <version>1.4.4</version>
9
  </Beck_LiveChat>
10
  </modules>
11
  </config>
5
  <active>true</active>
6
  <codePool>community</codePool>
7
  <depends />
8
+ <version>1.4.5</version>
9
  </Beck_LiveChat>
10
  </modules>
11
  </config>
app/locale/fr_FR/Beck_LiveChat.csv CHANGED
@@ -101,7 +101,7 @@
101
  "Name of the customer when not logged in.","Nom du client quand il n'est pas connect&eacute;."
102
  "Sender name of the automatic messages.","Nom de l'envoyeur des messages automatique."
103
  "Message sent when a customer has just started a chat session.","Message envoy&eacute; quand un client a cr&eacute;&eacute; une nouvelle session de t'chat."
104
- "Message sent when a chat has been automatically created.","Message envoy&eacute; quand un nouveau t'chat est automtiquament cr&eacute;&eacute;."
105
  "The chat session is closed, so no operator can get it.","La session de t'chat est ferm&eacute;e, aucun op&eacute;rateur ne peut la r&eacute;cup&eacute;rer."
106
  "The chat session is released, so another operator can get it.","La session de t'chat est lib&eacute;r&eacute;e permettant à un autre op&eacute;rateur de la r&eacute;cup&eacute;rer."
107
  "If the chat session is not archived the customer can reactivate it by sending a new message.","Si la session de t'chat n'est pas archiv&eacute;e l'internaute peut le r&eacute;ouvrir en envoyant un nouveau message."
@@ -115,4 +115,6 @@
115
  "Archived session are definitevely closed. If not chat sessions are only closed.","Les sessions archiv&eacute;es sont d&eacute;finitivement ferm&eacute;es. Sinon elles sont simplement ferm&eacute;es."
116
  "Archivate the session","Archiver la session"
117
  "Session","Session"
118
- "Sessions Live","Sessions en cours"
 
 
101
  "Name of the customer when not logged in.","Nom du client quand il n'est pas connect&eacute;."
102
  "Sender name of the automatic messages.","Nom de l'envoyeur des messages automatique."
103
  "Message sent when a customer has just started a chat session.","Message envoy&eacute; quand un client a cr&eacute;&eacute; une nouvelle session de t'chat."
104
+ "Message sent when a chat has been automatically created.","Message envoy&eacute; quand un nouveau t'chat est automatiquement cr&eacute;&eacute;."
105
  "The chat session is closed, so no operator can get it.","La session de t'chat est ferm&eacute;e, aucun op&eacute;rateur ne peut la r&eacute;cup&eacute;rer."
106
  "The chat session is released, so another operator can get it.","La session de t'chat est lib&eacute;r&eacute;e permettant à un autre op&eacute;rateur de la r&eacute;cup&eacute;rer."
107
  "If the chat session is not archived the customer can reactivate it by sending a new message.","Si la session de t'chat n'est pas archiv&eacute;e l'internaute peut le r&eacute;ouvrir en envoyant un nouveau message."
115
  "Archived session are definitevely closed. If not chat sessions are only closed.","Les sessions archiv&eacute;es sont d&eacute;finitivement ferm&eacute;es. Sinon elles sont simplement ferm&eacute;es."
116
  "Archivate the session","Archiver la session"
117
  "Session","Session"
118
+ "Sessions Live","Sessions en cours"
119
+ "Display only for registered user","Afficher uniquement pour les utilisateurs enregistr&eacute;"
120
+ "If yes, only connected customer can see the chatbox.","Si oui, seuls les clients connect&eacute; peuvent voir la bo&icirc;te de t'chat"