Mediaburst_SMS - Version 1.2.1

Version Notes

Fix for viewing credit in 1.7.

Download this release

Release Info

Developer Mediaburst
Extension Mediaburst_SMS
Version 1.2.1
Comparing to
See all releases


Code changes from version 1.2.0 to 1.2.1

app/code/community/Mediaburst/Sms/Block/CreditReportGrid.php CHANGED
@@ -50,14 +50,13 @@ class Mediaburst_Sms_Block_CreditReportGrid extends Mage_Adminhtml_Block_Widget_
50
  $stores = Mage::app()->getStores();
51
  foreach ($stores as $store) {
52
  if ($helper->isActive($store)) {
53
- $username = $helper->getUsername($store);
54
- $password = $helper->getPassword($store);
55
  $url = $helper->getCheckUrl($store);
56
- $hash = md5($username . ':' . $password . ':' . $url);
57
 
58
  if (!isset($runs[$hash])) {
59
  $runs[$hash] = array(
60
- 'username' => $username,
61
  'url' => $url,
62
  'stores' => array()
63
  );
@@ -77,7 +76,7 @@ class Mediaburst_Sms_Block_CreditReportGrid extends Mage_Adminhtml_Block_Widget_
77
  $credits = $api->checkCredits();
78
 
79
  $item = new Varien_Object();
80
- $item->setUsername($run['username']);
81
  $item->setUrl($run['url']);
82
  $item->setCredits($credits);
83
 
@@ -91,10 +90,10 @@ class Mediaburst_Sms_Block_CreditReportGrid extends Mage_Adminhtml_Block_Widget_
91
  protected function _prepareColumns()
92
  {
93
  $this->addColumn(
94
- 'username',
95
  array(
96
- 'header' => $this->__('Username'),
97
- 'index' => 'username',
98
  'filter' => false,
99
  )
100
  );
@@ -135,4 +134,4 @@ class Mediaburst_Sms_Block_CreditReportGrid extends Mage_Adminhtml_Block_Widget_
135
  );
136
  }
137
  }
138
- }
50
  $stores = Mage::app()->getStores();
51
  foreach ($stores as $store) {
52
  if ($helper->isActive($store)) {
53
+ $key = $helper->getKey($store);
 
54
  $url = $helper->getCheckUrl($store);
55
+ $hash = md5($key . ':' . $url);
56
 
57
  if (!isset($runs[$hash])) {
58
  $runs[$hash] = array(
59
+ 'key' => $key,
60
  'url' => $url,
61
  'stores' => array()
62
  );
76
  $credits = $api->checkCredits();
77
 
78
  $item = new Varien_Object();
79
+ $item->setKey($run['key']);
80
  $item->setUrl($run['url']);
81
  $item->setCredits($credits);
82
 
90
  protected function _prepareColumns()
91
  {
92
  $this->addColumn(
93
+ 'key',
94
  array(
95
+ 'header' => $this->__('Key'),
96
+ 'index' => 'key',
97
  'filter' => false,
98
  )
99
  );
134
  );
135
  }
136
  }
137
+ }
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mediaburst_SMS</name>
4
- <version>1.2.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/bsd-license.php">BSD License</license>
7
  <channel>community</channel>
@@ -14,12 +14,12 @@
14
  &lt;li&gt;Notify your customer if shipping is delayed.&lt;/li&gt;&#xD;
15
  &lt;/ul&gt;&#xD;
16
  &lt;p&gt;To use the plugin you need to sign up for a &lt;a href="http://www.mediaburst.co.uk/api/?utm_source=plugin&amp;utm_medium=magento&amp;utm_campaign=mediaburst-sms"&gt;Mediaburst SMS API&lt;/a&gt; account. Mediaburst SMS API is a premium service using network connected SMS routes (it doesnt use the free email to SMS routes). This means you can deliver text messages to over 400 networks in over 150 countries around the world with high throughput and super fast delivery.&lt;/p&gt;&#xD;
17
- &lt;p&gt;The price for a Mediaburst API account is 5p per text message irrespective of which country you are sending to.&lt;/p&gt;</description>
18
- <notes>Full compatibility up to Magento 1.7.0.2. Includes support for using Clockwork SMS "API keys" instead of old Mediaburst usernames and passwords.</notes>
19
  <authors><author><name>Mediaburst</name><user>mediaburst</user><email>hello@mediaburst.co.uk</email></author></authors>
20
- <date>2012-07-31</date>
21
- <time>15:50:16</time>
22
- <contents><target name="magecommunity"><dir name="Mediaburst"><dir name="Sms"><dir name="Block"><file name="AbstractMessageGrid.php" hash="3dda9946cab8411c8d208ff3256fad6f"/><file name="CreditReportGrid.php" hash="368fee227195e826c4904b7bd0bf7059"/><file name="FailedGrid.php" hash="0f8a829ebe78fc126c119ec62f0f113a"/><file name="GridContainer.php" hash="e9db6ad67f86c00f27cf4fada82ab548"/><file name="PendingGrid.php" hash="2b9e917935b90368a1d63177e2cd4144"/><file name="SentGrid.php" hash="6f90c105b11bcfbd994a694f1a6b9ff7"/></dir><file name="Exception.php" hash="a61b41609348442384c156505bbf04bd"/><dir name="Helper"><file name="Data.php" hash="baca1d6b02854389aeace4649bdd4c88"/></dir><dir name="Model"><file name="Api.php" hash="01743920ea9fba6ef64fafbd0dff34bc"/><file name="ApiConfig.php" hash="ae879ffad94b23440e680bddd6a32c90"/><file name="Message.php" hash="7cba80e49c7540dfbdcf23db29c52f59"/><dir name="Mysql4"><dir name="Message"><file name="Collection.php" hash="58de36b5fde44f9a8497f2f791c45108"/></dir><file name="Message.php" hash="0798cc84eca49393941451e30ab018f8"/></dir><file name="Observer.php" hash="b00fd33176b8e0699a9c46275325d18f"/></dir><dir name="controllers"><dir name="Mediaburst"><file name="SmsController.php" hash="c40d0f548ddcae0cbe7c9c5a93f4f970"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="67fe2c04b60cfa6266a17d9a0525127b"/><file name="config.xml" hash="97aeca64c798b671be71ec6249e9aa75"/><file name="system.xml" hash="270cf0510fe6c0631a82b0d6d542190f"/></dir><dir name="sql"><dir name="Mediaburst_Sms"><file name="mysql4-install-1.0.0.php" hash="4d2862d3ab72dd8db342f126f27502b3"/><file name="mysql4-upgrade-1.0.0-1.1.2.php" hash="f82c128da5ea76c7f7a058d54cdb29b5"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="mediaburst"><file name="sms.xml" hash="f4b1cc340f2ae675615a73d33be7cc46"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MediaBurst_Sms.xml" hash="10128b20049e52b96613d7f54148e54b"/></dir></target></contents>
23
  <compatible/>
24
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
25
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mediaburst_SMS</name>
4
+ <version>1.2.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/bsd-license.php">BSD License</license>
7
  <channel>community</channel>
14
  &lt;li&gt;Notify your customer if shipping is delayed.&lt;/li&gt;&#xD;
15
  &lt;/ul&gt;&#xD;
16
  &lt;p&gt;To use the plugin you need to sign up for a &lt;a href="http://www.mediaburst.co.uk/api/?utm_source=plugin&amp;utm_medium=magento&amp;utm_campaign=mediaburst-sms"&gt;Mediaburst SMS API&lt;/a&gt; account. Mediaburst SMS API is a premium service using network connected SMS routes (it doesnt use the free email to SMS routes). This means you can deliver text messages to over 400 networks in over 150 countries around the world with high throughput and super fast delivery.&lt;/p&gt;&#xD;
17
+ &lt;p&gt;The price for a mediaburst API account is 5p per text message irrespective of which country you are sending to.&lt;/p&gt;</description>
18
+ <notes>Fix for viewing credit in 1.7.</notes>
19
  <authors><author><name>Mediaburst</name><user>mediaburst</user><email>hello@mediaburst.co.uk</email></author></authors>
20
+ <date>2012-08-01</date>
21
+ <time>08:54:46</time>
22
+ <contents><target name="magecommunity"><dir name="Mediaburst"><dir name="Sms"><dir name="Block"><file name="AbstractMessageGrid.php" hash="3dda9946cab8411c8d208ff3256fad6f"/><file name="CreditReportGrid.php" hash="633b4903cc48a973cd611a8669d88484"/><file name="FailedGrid.php" hash="0f8a829ebe78fc126c119ec62f0f113a"/><file name="GridContainer.php" hash="e9db6ad67f86c00f27cf4fada82ab548"/><file name="PendingGrid.php" hash="2b9e917935b90368a1d63177e2cd4144"/><file name="SentGrid.php" hash="6f90c105b11bcfbd994a694f1a6b9ff7"/></dir><file name="Exception.php" hash="a61b41609348442384c156505bbf04bd"/><dir name="Helper"><file name="Data.php" hash="baca1d6b02854389aeace4649bdd4c88"/></dir><dir name="Model"><file name="Api.php" hash="01743920ea9fba6ef64fafbd0dff34bc"/><file name="ApiConfig.php" hash="ae879ffad94b23440e680bddd6a32c90"/><file name="Message.php" hash="7cba80e49c7540dfbdcf23db29c52f59"/><dir name="Mysql4"><dir name="Message"><file name="Collection.php" hash="58de36b5fde44f9a8497f2f791c45108"/></dir><file name="Message.php" hash="0798cc84eca49393941451e30ab018f8"/></dir><file name="Observer.php" hash="b00fd33176b8e0699a9c46275325d18f"/></dir><dir name="controllers"><dir name="Mediaburst"><file name="SmsController.php" hash="c40d0f548ddcae0cbe7c9c5a93f4f970"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="67fe2c04b60cfa6266a17d9a0525127b"/><file name="config.xml" hash="97aeca64c798b671be71ec6249e9aa75"/><file name="system.xml" hash="270cf0510fe6c0631a82b0d6d542190f"/></dir><dir name="sql"><dir name="Mediaburst_Sms"><file name="mysql4-install-1.0.0.php" hash="4d2862d3ab72dd8db342f126f27502b3"/><file name="mysql4-upgrade-1.0.0-1.1.2.php" hash="f82c128da5ea76c7f7a058d54cdb29b5"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="mediaburst"><file name="sms.xml" hash="f4b1cc340f2ae675615a73d33be7cc46"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MediaBurst_Sms.xml" hash="10128b20049e52b96613d7f54148e54b"/></dir></target></contents>
23
  <compatible/>
24
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
25
  </package>