ReveChat - Version 1.0.3

Version Notes

REVE Chat v1.0.3

Download this release

Release Info

Developer REVE Chat
Extension ReveChat
Version 1.0.3
Comparing to
See all releases


Code changes from version 1.0.2 to 1.0.3

app/code/local/Reve/Revechat/Block/Accountconfig.php CHANGED
@@ -18,23 +18,20 @@ class Reve_Revechat_Block_Accountconfig extends Mage_Core_Block_Template
18
 
19
  if($this->getRequest()->getParam('revechat_remove')){
20
  $this->revechat_model->setRevechatAid("");
21
- $this->revechat_model->setRevechatTrackingId("");
22
  }else
23
  {
24
- if(($this->getRequest()->getParam('revechat_aid')!="") && $this->getRequest()->getParam('revechat_trackingid')!=""){
 
25
  $revechat_aid = $this->getRequest()->getParam('revechat_aid');
26
- $revechat_tracking_id = $this->getRequest()->getParam('revechat_trackingid');
27
-
28
 
29
  $this->revechat_model->setRevechatAid($revechat_aid);
30
- $this->revechat_model->setRevechatTrackingId($revechat_tracking_id);
31
- }
32
  }
33
 
34
  $this->revechat_model->save();
35
 
36
  $html = '<form action="'.$this->curpageurl().'" method="get" id="revechat-admin-settings-form">';
37
- if(($this->revechat_model->getRevechatAid() == '' || $this->revechat_model->getRevechatAid() == '0') || ($this->revechat_model->getRevechatTrackingId() == '' || $this->revechat_model->getRevechatTrackingId() == '0')) {
38
  $html .= '<div>
39
  <div class="form-item form-type-item" id="edit-choose-form">
40
  <h3>Already have a REVE Chat account?</h3>
@@ -60,7 +57,6 @@ class Reve_Revechat_Block_Accountconfig extends Mage_Core_Block_Template
60
  <input type="text" class="form-text" maxlength="128" size="60" value="" name="revechat_account_email" id="edit-revechat-account-email">
61
  </div>
62
  <input type="hidden" value="0" name="revechat_aid">
63
- <input type="hidden" value="0" name="revechat_trackingid">
64
  </fieldset>
65
  </div><!-- revechat_already_have -->
66
 
@@ -95,7 +91,6 @@ class Reve_Revechat_Block_Accountconfig extends Mage_Core_Block_Template
95
  <div class="messages revechat_success">REVE Chat
96
  is installed.</div>
97
  <input type="hidden" name="revechat_aid">
98
- <input type="hidden" name="revechat_trackingid">
99
  <div id="edit-actions" class="form-actions form-wrapper">
100
  <input type="submit" class="form-submit" value="Remove" name="revechat_remove" id="edit-submit">
101
 
18
 
19
  if($this->getRequest()->getParam('revechat_remove')){
20
  $this->revechat_model->setRevechatAid("");
 
21
  }else
22
  {
23
+ if(($this->getRequest()->getParam('revechat_aid')!=""))
24
+ {
25
  $revechat_aid = $this->getRequest()->getParam('revechat_aid');
 
 
26
 
27
  $this->revechat_model->setRevechatAid($revechat_aid);
28
+ }
 
29
  }
30
 
31
  $this->revechat_model->save();
32
 
33
  $html = '<form action="'.$this->curpageurl().'" method="get" id="revechat-admin-settings-form">';
34
+ if(($this->revechat_model->getRevechatAid() == '' || $this->revechat_model->getRevechatAid() == '0')) {
35
  $html .= '<div>
36
  <div class="form-item form-type-item" id="edit-choose-form">
37
  <h3>Already have a REVE Chat account?</h3>
57
  <input type="text" class="form-text" maxlength="128" size="60" value="" name="revechat_account_email" id="edit-revechat-account-email">
58
  </div>
59
  <input type="hidden" value="0" name="revechat_aid">
 
60
  </fieldset>
61
  </div><!-- revechat_already_have -->
62
 
91
  <div class="messages revechat_success">REVE Chat
92
  is installed.</div>
93
  <input type="hidden" name="revechat_aid">
 
94
  <div id="edit-actions" class="form-actions form-wrapper">
95
  <input type="submit" class="form-submit" value="Remove" name="revechat_remove" id="edit-submit">
96
 
app/code/local/Reve/Revechat/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Reve_Revechat>
5
- <version>1.0.1</version>
6
  </Reve_Revechat>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <Reve_Revechat>
5
+ <version>1.0.3</version>
6
  </Reve_Revechat>
7
  </modules>
8
  <global>
app/code/local/Reve/Revechat/sql/revechat_setup/mysql4-install-1.0.3.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $installer = $this;
3
+ $installer->startSetup();
4
+
5
+ $installer->run("
6
+ CREATE TABLE IF NOT EXISTS {$this->getTable('revechat')} (
7
+ `revechat_id` int(11) NOT NULL auto_increment,
8
+ `revechat_aid` varchar(100) NULL,
9
+ PRIMARY KEY (`revechat_id`)
10
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
11
+
12
+ INSERT INTO {$this->getTable('revechat')}
13
+ (`revechat_id`, `revechat_aid`) VALUES
14
+ (1, '');
15
+ ");
16
+
17
+ $installer->endSetup();
js/revechat/revechat.js CHANGED
@@ -32,7 +32,7 @@ jQuery.noConflict();
32
  $('#revechat-admin-settings-form').submit(function(e)
33
  {
34
  //e.preventDefault();
35
- if (((parseInt($('input[name=revechat_aid]').val()) !== 0)&&(parseInt($('input[name=revechat_trackingid]').val()) !== 0)) || $('#has_revechat_account').is(':checked'))
36
  {
37
  return ReveChat.alreadyHaveAccountForm();
38
  }
@@ -48,7 +48,7 @@ jQuery.noConflict();
48
  {
49
  if(this.validEmail())
50
  {
51
- if((parseInt($('input[name=revechat_aid]').val()) == 0)||(parseInt($('input[name=revechat_trackingid]').val()) == 0))
52
  {
53
  var login = $.trim($('#edit-revechat-account-email').val());
54
  if(!login.length)
@@ -72,7 +72,6 @@ jQuery.noConflict();
72
  else
73
  {
74
  $('input[name=revechat_aid]').val(response.data.account_id);
75
- $('input[name=revechat_trackingid]').val(response.data.tracking_id);
76
 
77
  $('#revechat-admin-settings-form').submit();
78
  }
@@ -91,7 +90,7 @@ jQuery.noConflict();
91
 
92
  newLicenseForm: function()
93
  {
94
- if (parseInt(($('input[name=revechat_aid]').val()) > 0) && parseInt(($('input[name=revechat_trackingid]').val()) > 0))
95
  {
96
  return true;
97
  }
@@ -128,7 +127,7 @@ jQuery.noConflict();
128
  $('#revechat-admin-settings-form').children('div').remove();
129
  var message = '<div class="revechat_success_message">';
130
  message += '<h3>Thank you for sigining up with REVE Chat</h3>';
131
- message += '<p>A verification link has been sent to your registered email address from <strong>noreply-support@revechat.com</strong>. Kindly verify your email to complete the signup process</p>';
132
  message += '<p>Then come backe again to integrate REVE Chat in your website.</p>';
133
  message += '</div>';
134
  $(message).appendTo('#revechat-admin-settings-form');
32
  $('#revechat-admin-settings-form').submit(function(e)
33
  {
34
  //e.preventDefault();
35
+ if (((parseInt($('input[name=revechat_aid]').val()) !== 0)) || $('#has_revechat_account').is(':checked'))
36
  {
37
  return ReveChat.alreadyHaveAccountForm();
38
  }
48
  {
49
  if(this.validEmail())
50
  {
51
+ if((parseInt($('input[name=revechat_aid]').val()) == 0))
52
  {
53
  var login = $.trim($('#edit-revechat-account-email').val());
54
  if(!login.length)
72
  else
73
  {
74
  $('input[name=revechat_aid]').val(response.data.account_id);
 
75
 
76
  $('#revechat-admin-settings-form').submit();
77
  }
90
 
91
  newLicenseForm: function()
92
  {
93
+ if (parseInt(($('input[name=revechat_aid]').val()) > 0))
94
  {
95
  return true;
96
  }
127
  $('#revechat-admin-settings-form').children('div').remove();
128
  var message = '<div class="revechat_success_message">';
129
  message += '<h3>Thank you for sigining up with REVE Chat</h3>';
130
+ message += '<p>A verification link has been sent to your registered email address from <strong>support@revechat.com</strong>. Kindly verify your email to complete the signup process</p>';
131
  message += '<p>Then come backe again to integrate REVE Chat in your website.</p>';
132
  message += '</div>';
133
  $(message).appendTo('#revechat-admin-settings-form');
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ReveChat</name>
4
- <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl-3.0.en.html">GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>REVE Chat is powerful and intuitive real-time customer engagement tools.</summary>
10
  <description>REVE Chat is a powerful and intuitive live support chat software. It allows your agents to personally guide and help visitors, while they go through the various sections of your website.</description>
11
- <notes>REVE Chat v1.0.2</notes>
12
  <authors><author><name>REVE Chat</name><user>REVEChat_Main</user><email>product@revechat.com</email></author></authors>
13
- <date>2016-08-28</date>
14
- <time>07:00:11</time>
15
- <contents><target name="magelocal"><dir name="Reve"><dir name="Revechat"><dir name="Block"><file name="Accountconfig.php" hash="f4593004891818104ca54ad1aa3504df"/><file name="index.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><dir name="Helper"><file name="Data.php" hash="339184bdca83b945f07869e7d800008a"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Revechat"><file name="collection.php" hash="25aa6160ab86da1400d81c94b9d18564"/></dir><file name="Revechat.php" hash="47d960c1331a7dcf2c70389c1eac2e76"/></dir><file name="Revechat.php" hash="f1b0ebbdc86ebb6b3d329c612a6f32f3"/></dir><dir name="controllers"><file name="AdminController.php" hash="19581401d082e45b0ad01d2adb87c355"/><file name="IndexController.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><dir name="etc"><file name="config.xml" hash="56b8bdbcd3acdfd78c7338310d99de6f"/></dir><dir name="sql"><dir name="revechat_setup"><file name="mysql4-install-0.1.0.php" hash="d14c5ac02972c963340be40bb19be6eb"/><file name="mysql4-install-1.0.1.php" hash="d14c5ac02972c963340be40bb19be6eb"/><file name="mysql4-install-1.0.2.php" hash="d14c5ac02972c963340be40bb19be6eb"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="revechat.xml" hash="1b4656e3ba8ad4669ed7351a6a451500"/></dir><dir name="template"><dir name="revechat"><file name="footer.phtml" hash="df6d59b3688c73e422f5d5f56b4e0c52"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Reve_Revechat.xml" hash="bc5c70af935a018ec3e1cb86c9eab3fa"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="revechat"><file name="ajax_loader.gif" hash="af962b37779a443a77ab836b3b7a93f5"/><file name="revechat.css" hash="b2f0c621b1b5c58133043d6b3143c217"/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="revechat"><file name="jquery-1.4.2.min.js" hash="10092eee563dec2dca82b77d2cf5a1ae"/><file name="revechat.js" hash="29b12d4f8fb354028317acfee20d8915"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.4.0</min><max>7.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ReveChat</name>
4
+ <version>1.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl-3.0.en.html">GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>REVE Chat is powerful and intuitive real-time customer engagement tools.</summary>
10
  <description>REVE Chat is a powerful and intuitive live support chat software. It allows your agents to personally guide and help visitors, while they go through the various sections of your website.</description>
11
+ <notes>REVE Chat v1.0.3</notes>
12
  <authors><author><name>REVE Chat</name><user>REVEChat_Main</user><email>product@revechat.com</email></author></authors>
13
+ <date>2016-09-28</date>
14
+ <time>05:13:04</time>
15
+ <contents><target name="magelocal"><dir name="Reve"><dir name="Revechat"><dir name="Block"><file name="Accountconfig.php" hash="b86922bf53c4321ace3396228743eb48"/><file name="index.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><dir name="Helper"><file name="Data.php" hash="339184bdca83b945f07869e7d800008a"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Revechat"><file name="collection.php" hash="25aa6160ab86da1400d81c94b9d18564"/></dir><file name="Revechat.php" hash="47d960c1331a7dcf2c70389c1eac2e76"/></dir><file name="Revechat.php" hash="f1b0ebbdc86ebb6b3d329c612a6f32f3"/></dir><dir name="controllers"><file name="AdminController.php" hash="19581401d082e45b0ad01d2adb87c355"/><file name="IndexController.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><dir name="etc"><file name="config.xml" hash="007f457d0c8f7b55a2a85f328ad00d9d"/></dir><dir name="sql"><dir name="revechat_setup"><file name="mysql4-install-0.1.0.php" hash="d14c5ac02972c963340be40bb19be6eb"/><file name="mysql4-install-1.0.1.php" hash="d14c5ac02972c963340be40bb19be6eb"/><file name="mysql4-install-1.0.2.php" hash="d14c5ac02972c963340be40bb19be6eb"/><file name="mysql4-install-1.0.3.php" hash="3de3c3e812c7aa860156605a3789b6b2"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="revechat.xml" hash="1b4656e3ba8ad4669ed7351a6a451500"/></dir><dir name="template"><dir name="revechat"><file name="footer.phtml" hash="df6d59b3688c73e422f5d5f56b4e0c52"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Reve_Revechat.xml" hash="bc5c70af935a018ec3e1cb86c9eab3fa"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="revechat"><file name="ajax_loader.gif" hash="af962b37779a443a77ab836b3b7a93f5"/><file name="revechat.css" hash="b2f0c621b1b5c58133043d6b3143c217"/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="revechat"><file name="jquery-1.4.2.min.js" hash="10092eee563dec2dca82b77d2cf5a1ae"/><file name="revechat.js" hash="3ed2a040b55e748d4ca50141a1f322d3"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.4.0</min><max>7.0.0</max></php></required></dependencies>
18
  </package>