HusseyCoding_TwitterReader - Version 1.0.6

Version Notes

Patched for SUPEE-6788

Download this release

Release Info

Developer Hussey Coding
Extension HusseyCoding_TwitterReader
Version 1.0.6
Comparing to
See all releases


Code changes from version 1.0.5 to 1.0.6

app/code/community/HusseyCoding/TwitterReader/Block/Verify.php CHANGED
@@ -14,7 +14,7 @@ class HusseyCoding_TwitterReader_Block_Verify extends Mage_Page_Block_Html
14
  return 'consumer_missing';
15
  elseif (!$request && !$access):
16
  $config = array(
17
- 'callbackUrl' => Mage::helper('adminhtml')->getUrl('twitterreader/callback/access'),
18
  'siteUrl' => 'https://api.twitter.com/oauth',
19
  'consumerKey' => $key,
20
  'consumerSecret' => $secret
@@ -36,7 +36,7 @@ class HusseyCoding_TwitterReader_Block_Verify extends Mage_Page_Block_Html
36
  return 'verify_credentials';
37
  else:
38
  $config = array(
39
- 'callbackUrl' => Mage::helper('adminhtml')->getUrl('twitterreader/callback/access'),
40
  'siteUrl' => 'https://api.twitter.com/oauth',
41
  'consumerKey' => $key,
42
  'consumerSecret' => $secret
14
  return 'consumer_missing';
15
  elseif (!$request && !$access):
16
  $config = array(
17
+ 'callbackUrl' => Mage::helper('adminhtml')->getUrl('adminhtml/twitterReader_callback/access'),
18
  'siteUrl' => 'https://api.twitter.com/oauth',
19
  'consumerKey' => $key,
20
  'consumerSecret' => $secret
36
  return 'verify_credentials';
37
  else:
38
  $config = array(
39
+ 'callbackUrl' => Mage::helper('adminhtml')->getUrl('adminhtml/twitterReader_callback/access'),
40
  'siteUrl' => 'https://api.twitter.com/oauth',
41
  'consumerKey' => $key,
42
  'consumerSecret' => $secret
app/code/community/HusseyCoding/TwitterReader/Model/Manage.php CHANGED
@@ -45,7 +45,7 @@ class HusseyCoding_TwitterReader_Model_Manage
45
  endif;
46
 
47
  $config = array(
48
- 'callbackUrl' => Mage::helper('adminhtml')->getUrl('twitterreader/callback/access'),
49
  'siteUrl' => 'https://api.twitter.com/oauth',
50
  'consumerKey' => $key,
51
  'consumerSecret' => $secret
45
  endif;
46
 
47
  $config = array(
48
+ 'callbackUrl' => Mage::helper('adminhtml')->getUrl('adminhtml/twitterReader_callback/access'),
49
  'siteUrl' => 'https://api.twitter.com/oauth',
50
  'consumerKey' => $key,
51
  'consumerSecret' => $secret
app/code/community/HusseyCoding/TwitterReader/controllers/{CallbackController.php → TwitterReader/CallbackController.php} RENAMED
@@ -1,10 +1,10 @@
1
  <?php
2
- class HusseyCoding_TwitterReader_CallbackController extends Mage_Adminhtml_Controller_Action
3
  {
4
  public function accessAction()
5
  {
6
  $config = array(
7
- 'callbackUrl' => Mage::helper('adminhtml')->getUrl('twitterreader/callback/access'),
8
  'siteUrl' => 'https://api.twitter.com/oauth',
9
  'consumerKey' => Mage::getStoreConfig('twitterreader/configuration/consumer_key'),
10
  'consumerSecret' => Mage::getStoreConfig('twitterreader/configuration/consumer_secret')
1
  <?php
2
+ class HusseyCoding_TwitterReader_TwitterReader_CallbackController extends Mage_Adminhtml_Controller_Action
3
  {
4
  public function accessAction()
5
  {
6
  $config = array(
7
+ 'callbackUrl' => Mage::helper('adminhtml')->getUrl('adminhtml/twitterReader_callback/access'),
8
  'siteUrl' => 'https://api.twitter.com/oauth',
9
  'consumerKey' => Mage::getStoreConfig('twitterreader/configuration/consumer_key'),
10
  'consumerSecret' => Mage::getStoreConfig('twitterreader/configuration/consumer_secret')
app/code/community/HusseyCoding/TwitterReader/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <HusseyCoding_TwitterReader>
5
- <version>1.0.5</version>
6
  </HusseyCoding_TwitterReader>
7
  </modules>
8
  <global>
@@ -68,13 +68,13 @@
68
  </frontend>
69
  <admin>
70
  <routers>
71
- <twitterreader>
72
- <use>admin</use>
73
  <args>
74
- <module>HusseyCoding_TwitterReader</module>
75
- <frontName>twitterreader</frontName>
 
76
  </args>
77
- </twitterreader>
78
  </routers>
79
  </admin>
80
  <adminhtml>
2
  <config>
3
  <modules>
4
  <HusseyCoding_TwitterReader>
5
+ <version>1.0.6</version>
6
  </HusseyCoding_TwitterReader>
7
  </modules>
8
  <global>
68
  </frontend>
69
  <admin>
70
  <routers>
71
+ <adminhtml>
 
72
  <args>
73
+ <modules>
74
+ <HusseyCoding_TwitterReader after="Mage_Adminhtml">HusseyCoding_TwitterReader</HusseyCoding_TwitterReader>
75
+ </modules>
76
  </args>
77
+ </adminhtml>
78
  </routers>
79
  </admin>
80
  <adminhtml>
app/code/community/HusseyCoding/TwitterReader/etc/system.xml CHANGED
@@ -69,7 +69,7 @@
69
  <show_in_default>1</show_in_default>
70
  <show_in_website>0</show_in_website>
71
  <show_in_store>0</show_in_store>
72
- <comment><![CDATA[Create an application <a href="https://dev.twitter.com/apps" target="_blank">here</a> to obtain]]></comment>
73
  </consumer_key>
74
  <consumer_secret>
75
  <label>Consumer Secret</label>
@@ -78,7 +78,7 @@
78
  <show_in_default>1</show_in_default>
79
  <show_in_website>0</show_in_website>
80
  <show_in_store>0</show_in_store>
81
- <comment><![CDATA[Create an application <a href="https://dev.twitter.com/apps" target="_blank">here</a> to obtain]]></comment>
82
  </consumer_secret>
83
  <callback_url>
84
  <label>Status</label>
69
  <show_in_default>1</show_in_default>
70
  <show_in_website>0</show_in_website>
71
  <show_in_store>0</show_in_store>
72
+ <comment><![CDATA[Create an application <a href="https://apps.twitter.com" target="_blank">here</a> to obtain]]></comment>
73
  </consumer_key>
74
  <consumer_secret>
75
  <label>Consumer Secret</label>
78
  <show_in_default>1</show_in_default>
79
  <show_in_website>0</show_in_website>
80
  <show_in_store>0</show_in_store>
81
+ <comment><![CDATA[Create an application <a href="https://apps.twitter.com" target="_blank">here</a> to obtain]]></comment>
82
  </consumer_secret>
83
  <callback_url>
84
  <label>Status</label>
app/design/adminhtml/default/default/template/twitterreader/verify.phtml CHANGED
@@ -4,20 +4,20 @@
4
  var thistwitterverify = new twitterverify();
5
  thistwitterverify.status = "<?php echo $status; ?>";
6
  <?php if ($status == 'ready'): ?>
7
- thistwitterverify.reseturl = "<?php echo Mage::helper('adminhtml')->getUrl('twitterreader/callback/reset'); ?>";
8
- thistwitterverify.updateurl = "<?php echo Mage::helper('adminhtml')->getUrl('twitterreader/callback/update'); ?>";
9
  <?php elseif ($status == 'verify_credentials'): ?>
10
  thistwitterverify.callbackurl = "<?php echo Mage::getStoreConfig('twitterreader/configuration/callback_url'); ?>";
11
- thistwitterverify.reseturl = "<?php echo Mage::helper('adminhtml')->getUrl('twitterreader/callback/reset'); ?>";
12
  <?php elseif ($status == 'bad_verify'): ?>
13
- thistwitterverify.reseturl = "<?php echo Mage::helper('adminhtml')->getUrl('twitterreader/callback/reset'); ?>";
14
  <?php elseif ($status == 'problem'): ?>
15
- thistwitterverify.reseturl = "<?php echo Mage::helper('adminhtml')->getUrl('twitterreader/callback/reset'); ?>";
16
  <?php elseif (is_int($status)): ?>
17
  thistwitterverify.status = "exceeded";
18
  thistwitterverify.reset = "<?php echo date('H:i:s', $status); ?>";
19
  <?php elseif ($status == 'bad_callback'): ?>
20
- thistwitterverify.reseturl = "<?php echo Mage::helper('adminhtml')->getUrl('twitterreader/callback/reset'); ?>";
21
  <?php endif; ?>
22
  //]]>
23
  </script>
4
  var thistwitterverify = new twitterverify();
5
  thistwitterverify.status = "<?php echo $status; ?>";
6
  <?php if ($status == 'ready'): ?>
7
+ thistwitterverify.reseturl = "<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/twitterReader_callback/reset'); ?>";
8
+ thistwitterverify.updateurl = "<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/twitterReader_callback/update'); ?>";
9
  <?php elseif ($status == 'verify_credentials'): ?>
10
  thistwitterverify.callbackurl = "<?php echo Mage::getStoreConfig('twitterreader/configuration/callback_url'); ?>";
11
+ thistwitterverify.reseturl = "<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/twitterReader_callback/reset'); ?>";
12
  <?php elseif ($status == 'bad_verify'): ?>
13
+ thistwitterverify.reseturl = "<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/twitterReader_callback/reset'); ?>";
14
  <?php elseif ($status == 'problem'): ?>
15
+ thistwitterverify.reseturl = "<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/twitterReader_callback/reset'); ?>";
16
  <?php elseif (is_int($status)): ?>
17
  thistwitterverify.status = "exceeded";
18
  thistwitterverify.reset = "<?php echo date('H:i:s', $status); ?>";
19
  <?php elseif ($status == 'bad_callback'): ?>
20
+ thistwitterverify.reseturl = "<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/twitterReader_callback/reset'); ?>";
21
  <?php endif; ?>
22
  //]]>
23
  </script>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>HusseyCoding_TwitterReader</name>
4
- <version>1.0.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Increase the social profile of your Magento site by easily adding store specific tweets.</summary>
10
  <description>This extension seamlessly integrates with the latest Twitter API technology and allows you to quickly and easily add tweets, per store, to any page in any position.</description>
11
- <notes>Fixed losing block order on cms edit page load</notes>
12
  <authors><author><name>Hussey Coding</name><user>husseycoding</user><email>info@husseycoding.co.uk</email></author></authors>
13
- <date>2015-08-26</date>
14
- <time>10:13:18</time>
15
- <contents><target name="magecommunity"><dir name="HusseyCoding"><dir name="TwitterReader"><dir name="Block"><file name="Tweets.php" hash="049d0934eeac08c235b39c71a1293910"/><file name="Verify.php" hash="68098cae4b409154a4aa618e5b2da6c2"/></dir><dir name="controllers"><file name="CallbackController.php" hash="4154dc3be629ca8b438e12b1a1e23511"/></dir><dir name="etc"><file name="adminhtml.xml" hash="909b1f48112a4c4b00a37e145041eadd"/><file name="config.xml" hash="f1b8d6a59b3dbcb9c4c9c08dd94196ce"/><file name="system.xml" hash="3609a56fbd345b8651066b5486d8de45"/></dir><dir name="Helper"><file name="Data.php" hash="01b6ef3fe4a5e33c7c24a8e4d1572b0b"/></dir><dir name="Model"><dir name="Config"><file name="CoreData.php" hash="ec734ef221f1c1527be82d7dd09ccf23"/></dir><file name="Manage.php" hash="c52b4b6af39cc8bececd0f6c6e6643e6"/><dir name="Mysql4"><dir name="Twitterreader"><file name="Collection.php" hash="d00dec73701177bdbe0b755a7cab65da"/></dir><file name="Twitterreader.php" hash="0ee1e85be7b2559ceff18c9ec9160f47"/></dir><file name="Observer.php" hash="355ab44cdb45102855b7fb4847aa489a"/><file name="Twitterreader.php" hash="0bcfbf3b1a569793e409cd7f1deec000"/></dir><dir name="sql"><dir name="twitterreader_setup"><file name="mysql4-install-1.0.0.php" hash="1e59e36f7e5eea1406e64d7f0099197b"/></dir></dir></dir><dir name="Common"><dir name="etc"><file name="system.xml" hash="6c9ba9f227b9adfc9abf97f17b46fdbf"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="HusseyCoding_TwitterReader.xml" hash="365441683cb1c3c5fef7569aab423dc0"/><file name="HusseyCoding_Common.xml" hash="31e82d3d9b3179c2fa9e002f9669da47"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="twitterreader.xml" hash="da55257b0be819190ce22e975f007a63"/></dir><dir name="template"><dir name="twitterreader"><file name="verify.phtml" hash="eab267b579bb5a419df3a2fbf31d397a"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="twitterreader.xml" hash="867abc35ab34bc33cbecf5362521d94a"/></dir><dir name="template"><dir name="twitterreader"><file name="tweets.phtml" hash="1aefa42a68f124df4571b26a4f3dfa80"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="twitterreader"><dir name="js"><file name="twitterreader.js" hash="4bdcd68a1648fde96cbd4f649ee07aa8"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="twitterreader.css" hash="6bdd8f39d0175c4e05d1f8804ef1f152"/></dir></dir></dir></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>HusseyCoding_TwitterReader</name>
4
+ <version>1.0.6</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Increase the social profile of your Magento site by easily adding store specific tweets.</summary>
10
  <description>This extension seamlessly integrates with the latest Twitter API technology and allows you to quickly and easily add tweets, per store, to any page in any position.</description>
11
+ <notes>Patched for SUPEE-6788</notes>
12
  <authors><author><name>Hussey Coding</name><user>husseycoding</user><email>info@husseycoding.co.uk</email></author></authors>
13
+ <date>2015-11-24</date>
14
+ <time>10:33:43</time>
15
+ <contents><target name="magecommunity"><dir name="HusseyCoding"><dir name="TwitterReader"><dir name="Block"><file name="Tweets.php" hash="049d0934eeac08c235b39c71a1293910"/><file name="Verify.php" hash="305f5e8e045b782756d488e78bf2c42a"/></dir><dir name="controllers"><dir name="TwitterReader"><file name="CallbackController.php" hash="399ba637fe61c3c8ea39efca928d42a5"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="909b1f48112a4c4b00a37e145041eadd"/><file name="config.xml" hash="df2779791a8ee2654c3be0a9f95914cc"/><file name="system.xml" hash="d1e76fcfb199c1aeea68bb60e3eda196"/></dir><dir name="Helper"><file name="Data.php" hash="01b6ef3fe4a5e33c7c24a8e4d1572b0b"/></dir><dir name="Model"><dir name="Config"><file name="CoreData.php" hash="ec734ef221f1c1527be82d7dd09ccf23"/></dir><file name="Manage.php" hash="cf18ff979287117990f8795d5d92d41b"/><dir name="Mysql4"><dir name="Twitterreader"><file name="Collection.php" hash="d00dec73701177bdbe0b755a7cab65da"/></dir><file name="Twitterreader.php" hash="0ee1e85be7b2559ceff18c9ec9160f47"/></dir><file name="Observer.php" hash="355ab44cdb45102855b7fb4847aa489a"/><file name="Twitterreader.php" hash="0bcfbf3b1a569793e409cd7f1deec000"/></dir><dir name="sql"><dir name="twitterreader_setup"><file name="mysql4-install-1.0.0.php" hash="1e59e36f7e5eea1406e64d7f0099197b"/></dir></dir></dir><dir name="Common"><dir name="etc"><file name="system.xml" hash="6c9ba9f227b9adfc9abf97f17b46fdbf"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="HusseyCoding_TwitterReader.xml" hash="365441683cb1c3c5fef7569aab423dc0"/><file name="HusseyCoding_Common.xml" hash="31e82d3d9b3179c2fa9e002f9669da47"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="twitterreader.xml" hash="da55257b0be819190ce22e975f007a63"/></dir><dir name="template"><dir name="twitterreader"><file name="verify.phtml" hash="fb3006fa3f1b55fc639f9ea9b4cff7b9"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="twitterreader.xml" hash="867abc35ab34bc33cbecf5362521d94a"/></dir><dir name="template"><dir name="twitterreader"><file name="tweets.phtml" hash="1aefa42a68f124df4571b26a4f3dfa80"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="twitterreader"><dir name="js"><file name="twitterreader.js" hash="4bdcd68a1648fde96cbd4f649ee07aa8"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="twitterreader.css" hash="6bdd8f39d0175c4e05d1f8804ef1f152"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>