Fishpigs_iBanners - Version 0.9.7

Version Notes

Moved config into FishPig tab
Added fix for multi-store group selection with same code

Download this release

Release Info

Developer Magento Core Team
Extension Fishpigs_iBanners
Version 0.9.7
Comparing to
See all releases


Code changes from version 0.9.6 to 0.9.7

app/code/community/Fishpig/IBanners/Model/Mysql4/Group.php CHANGED
@@ -12,7 +12,26 @@ class Fishpig_iBanners_Model_Mysql4_Group extends Mage_Core_Model_Mysql4_Abstrac
12
  {
13
  $this->_init('ibanners/group', 'group_id');
14
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
 
 
 
 
16
  /**
17
  * Retrieve a collection of banners associated with the group
18
  *
12
  {
13
  $this->_init('ibanners/group', 'group_id');
14
  }
15
+
16
+ /**
17
+ * Retrieve the load select object
18
+ *
19
+ * @param string $field
20
+ * @param mixed $value
21
+ * @param Mage_Core_Model_Abstract $object
22
+ * @return Varien_Db_Select
23
+ */
24
+ protected function _getLoadSelect($field, $value, $object)
25
+ {
26
+ $select = parent::_getLoadSelect($field, $value, $object);
27
+
28
+ if (!Mage::app()->isSingleStoreMode() && Mage::app()->getStore()->getId() > 0) {
29
+ $select->where('store_id=?', Mage::app()->getStore()->getId());
30
+ }
31
 
32
+ return $select;
33
+ }
34
+
35
  /**
36
  * Retrieve a collection of banners associated with the group
37
  *
app/code/community/Fishpig/IBanners/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Fishpig_iBanners>
5
- <version>0.9.6</version>
6
  </Fishpig_iBanners>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <Fishpig_iBanners>
5
+ <version>0.9.7</version>
6
  </Fishpig_iBanners>
7
  </modules>
8
  <global>
app/code/community/Fishpig/IBanners/etc/system.xml CHANGED
@@ -1,10 +1,16 @@
1
  <?xml version="1.0"?>
2
  <config>
 
 
 
 
 
 
3
  <sections>
4
  <ibanners translate="label" module="ibanners">
5
  <label>iBanners</label>
6
- <tab>general</tab>
7
- <sort_order>999</sort_order>
8
  <show_in_default>1</show_in_default>
9
  <show_in_website>1</show_in_website>
10
  <show_in_store>1</show_in_store>
1
  <?xml version="1.0"?>
2
  <config>
3
+ <tabs>
4
+ <fishpig translate="label" module="ibanners">
5
+ <label>FishPig</label>
6
+ <sort_order>200</sort_order>
7
+ </fishpig>
8
+ </tabs>
9
  <sections>
10
  <ibanners translate="label" module="ibanners">
11
  <label>iBanners</label>
12
+ <tab>fishpig</tab>
13
+ <sort_order>600</sort_order>
14
  <show_in_default>1</show_in_default>
15
  <show_in_website>1</show_in_website>
16
  <show_in_store>1</show_in_store>
app/code/community/Fishpig/IBanners/notes.txt CHANGED
@@ -7,6 +7,14 @@
7
  # Bug Reports: help@fishpig.co.uk
8
  ##
9
 
 
 
 
 
 
 
 
 
10
  02/09/2011 - v0.9.6
11
  - Updated template to remove image tag when no image uploaded
12
  - Added fix for Mage_Core_Model_File_Uploader error
7
  # Bug Reports: help@fishpig.co.uk
8
  ##
9
 
10
+ TODO
11
+ - Add inner div to template
12
+ - Check all options are overridable
13
+
14
+ 13/12/2011 - v0.9.7
15
+ - Moved config into FishPig tab
16
+ - Added fix for multi-store group selection with same code
17
+
18
  02/09/2011 - v0.9.6
19
  - Updated template to remove image tag when no image uploaded
20
  - Added fix for Mage_Core_Model_File_Uploader error
package.xml CHANGED
@@ -1,19 +1,19 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Fishpigs_iBanners</name>
4
- <version>0.9.6</version>
5
  <stability>stable</stability>
6
- <license uri="http://fishpig.co.uk/license.txt">fishpig EULA</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Create grouped banner slideshows to showcase products and special offers.</summary>
10
- <description>This module allows you to create multiple banner slideshows to be placed around your Magento store. By default, the module will add a banner slideshow to your homepage, however you can easily create more banner groups and add them any where you like!</description>
11
- <notes>Updated template to remove image tag when no image uploaded&#xD;
12
- Added fix for Mage_Core_Model_File_Uploader error</notes>
13
  <authors><author><name>fishpig</name><user>auto-converted</user><email>ben@fishpig.co.uk</email></author></authors>
14
- <date>2011-09-02</date>
15
- <time>08:54:52</time>
16
- <contents><target name="magecommunity"><dir name="Fishpig"><dir name="IBanners"><dir name="Block"><dir name="Adminhtml"><dir name="Banner"><dir name="Edit"><dir name="Tab"><file name="Form.php" hash="bce2db8d35d26fbe9da910852169ff34"/></dir><file name="Form.php" hash="e9cd0d7436d36048706bc474704d2b82"/><file name="Tabs.php" hash="60a82a390e8580594885bceb19a13460"/></dir><dir name="Helper"><file name="Image.php" hash="da1821e82b38af686705efb53f5a1ca9"/></dir><file name="Edit.php" hash="93807e5b677fd064e49c547551507202"/><file name="Grid.php" hash="59ca8a1c3822e37f1e82f464589f6525"/></dir><dir name="Form"><dir name="Renderer"><file name="Useconfig.php" hash="df579ff6a4a783ed17d6c5bc6118e171"/></dir></dir><dir name="Group"><dir name="Edit"><dir name="Tab"><file name="Banners.php" hash="f13f72d714e73ba5481fe488b369c879"/><file name="Form.php" hash="4f04a01fc20940b8b82674e58d7bc54c"/></dir><file name="Form.php" hash="5b8f4f8649e974f80ea21de7f323788e"/><file name="Tabs.php" hash="d57a68d75dde73b39127dc8a932b858e"/></dir><file name="Edit.php" hash="1f3ca94777f0eb8a3363d245d9c5bc9d"/><file name="Grid.php" hash="2d86e326cb6825c8e7738e5c73abaf67"/></dir><file name="Banner.php" hash="181c9778d624e104ab3f8e729c58b3f7"/><file name="Group.php" hash="6a6ea8ad3f9e1e25dcf0411fa5347b9c"/></dir><file name="View.php" hash="6ee6a72caf09867c230edd82346f43b6"/></dir><dir name="Helper"><file name="Data.php" hash="22b6c9355bb8eeb8bab400a824109e24"/><file name="Image.php" hash="92a06beda3aefa58577dd91556001115"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Banner"><file name="Collection.php" hash="511a3aceff96f430a5fa44a3a7ff2b05"/></dir><dir name="Group"><file name="Collection.php" hash="ab6a49e01708c118052a696a0e09184c"/></dir><file name="Banner.php" hash="81752a0ab34bde996d9472ac67272472"/><file name="Group.php" hash="b3da18c52643f8a76fe6f2e98382c5da"/></dir><dir name="System"><dir name="Config"><dir name="Source"><dir name="Carousel"><file name="Effect.php" hash="b615ef28aa59aed914dd95a0242cfc9e"/><file name="Transition.php" hash="290f6abe41d0d44f72f8188a77f8e475"/></dir></dir></dir></dir><file name="Banner.php" hash="c013618422ba7dd2920312e989024166"/><file name="Group.php" hash="533eeb2eda8ea43fb1417d58cb699f40"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="BannerController.php" hash="ab4015467f0f37f0cedbb344d3021e8f"/><file name="GroupController.php" hash="f58f269a86c211095314b1f41f212ffa"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="4e6ded4671403e01776cf9361c59d33d"/><file name="config.xml" hash="29c08083bc0a10363ed3c58402ed65bb"/><file name="system.xml" hash="cc01ba370a7fe9946a3d761a9e7975f3"/></dir><dir name="sql"><dir name="ibanners_setup"><file name="mysql4-install-0.1.0.php" hash="62e4961272f2d697595002b006e72731"/><file name="mysql4-upgrade-0.5.2-0.5.3.php" hash="2e85887fb121d988357a45785d9f06df"/><file name="mysql4-upgrade-0.5.4-0.5.5.php" hash="a16fd4c674ed65eed1c7cee851960d28"/><file name="mysql4-upgrade-0.5.5-0.5.6.php" hash="a002305ec4b958c7213309d874b349f8"/><file name="mysql4-upgrade-0.9.0-0.9.1.php" hash="b970018526e15b6fc938b1866c5bfd81"/><file name="mysql4-upgrade-0.9.1-0.9.2.php" hash="07ba18c243e573655e43c64ee1a0d876"/></dir></dir><file name="license.txt" hash="257eae92a36bdaaf9584fbf8ba76d1c6"/><file name="notes.txt" hash="a547c743559b3c8939bf8c3a2cb38bf7"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="ibanners.xml" hash="daa28ce83b6f288108c87bc352475ca8"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="ibanners.xml" hash="17174e0baab8b5e672912963a74603bc"/></dir><dir name="template"><dir name="ibanners"><file name="default.phtml" hash="1b96c82b241215187e5aa7653e2939e7"/></dir></dir></dir></dir></dir></target><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Fishpig_iBanners.xml" hash="d3476db8a3f950a7bf249b5382b5c42e"/></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="fishpig"><file name="carousel.min.js" hash="cfd7a8d08a6dca87e4211a400877716e"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="ibanners.css" hash="6bdf6ea79a22cb035d41f1f37b7d6a11"/></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
  <dependencies/>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Fishpigs_iBanners</name>
4
+ <version>0.9.7</version>
5
  <stability>stable</stability>
6
+ <license uri="http://fishpig.co.uk/license.txt">FishPig EULA</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Create multiple banner slideshows for your site.</summary>
10
+ <description>Create multiple banner slideshows for your site.</description>
11
+ <notes>Moved config into FishPig tab&#xD;
12
+ Added fix for multi-store group selection with same code</notes>
13
  <authors><author><name>fishpig</name><user>auto-converted</user><email>ben@fishpig.co.uk</email></author></authors>
14
+ <date>2011-12-13</date>
15
+ <time>20:33:41</time>
16
+ <contents><target name="magecommunity"><dir name="Fishpig"><dir name="IBanners"><dir name="Block"><dir name="Adminhtml"><dir name="Banner"><dir name="Edit"><dir name="Tab"><file name="Form.php" hash="bce2db8d35d26fbe9da910852169ff34"/></dir><file name="Form.php" hash="e9cd0d7436d36048706bc474704d2b82"/><file name="Tabs.php" hash="60a82a390e8580594885bceb19a13460"/></dir><dir name="Helper"><file name="Image.php" hash="da1821e82b38af686705efb53f5a1ca9"/></dir><file name="Edit.php" hash="93807e5b677fd064e49c547551507202"/><file name="Grid.php" hash="59ca8a1c3822e37f1e82f464589f6525"/></dir><dir name="Form"><dir name="Renderer"><file name="Useconfig.php" hash="df579ff6a4a783ed17d6c5bc6118e171"/></dir></dir><dir name="Group"><dir name="Edit"><dir name="Tab"><file name="Banners.php" hash="f13f72d714e73ba5481fe488b369c879"/><file name="Form.php" hash="4f04a01fc20940b8b82674e58d7bc54c"/></dir><file name="Form.php" hash="5b8f4f8649e974f80ea21de7f323788e"/><file name="Tabs.php" hash="d57a68d75dde73b39127dc8a932b858e"/></dir><file name="Edit.php" hash="1f3ca94777f0eb8a3363d245d9c5bc9d"/><file name="Grid.php" hash="2d86e326cb6825c8e7738e5c73abaf67"/></dir><file name="Banner.php" hash="181c9778d624e104ab3f8e729c58b3f7"/><file name="Group.php" hash="6a6ea8ad3f9e1e25dcf0411fa5347b9c"/></dir><file name="View.php" hash="6ee6a72caf09867c230edd82346f43b6"/></dir><dir name="Helper"><file name="Data.php" hash="22b6c9355bb8eeb8bab400a824109e24"/><file name="Image.php" hash="92a06beda3aefa58577dd91556001115"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Banner"><file name="Collection.php" hash="511a3aceff96f430a5fa44a3a7ff2b05"/></dir><dir name="Group"><file name="Collection.php" hash="ab6a49e01708c118052a696a0e09184c"/></dir><file name="Banner.php" hash="81752a0ab34bde996d9472ac67272472"/><file name="Group.php" hash="e255cfb7ac4270b6c6592ab5a82e1c8a"/></dir><dir name="System"><dir name="Config"><dir name="Source"><dir name="Carousel"><file name="Effect.php" hash="b615ef28aa59aed914dd95a0242cfc9e"/><file name="Transition.php" hash="290f6abe41d0d44f72f8188a77f8e475"/></dir></dir></dir></dir><file name="Banner.php" hash="c013618422ba7dd2920312e989024166"/><file name="Group.php" hash="533eeb2eda8ea43fb1417d58cb699f40"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="BannerController.php" hash="ab4015467f0f37f0cedbb344d3021e8f"/><file name="GroupController.php" hash="f58f269a86c211095314b1f41f212ffa"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="4e6ded4671403e01776cf9361c59d33d"/><file name="config.xml" hash="97e4df75e1e8ff98f4cfdffe9ecb569f"/><file name="system.xml" hash="85021826efbb902f94043a1f05197244"/></dir><dir name="sql"><dir name="ibanners_setup"><file name="mysql4-install-0.1.0.php" hash="62e4961272f2d697595002b006e72731"/><file name="mysql4-upgrade-0.5.2-0.5.3.php" hash="2e85887fb121d988357a45785d9f06df"/><file name="mysql4-upgrade-0.5.4-0.5.5.php" hash="a16fd4c674ed65eed1c7cee851960d28"/><file name="mysql4-upgrade-0.5.5-0.5.6.php" hash="a002305ec4b958c7213309d874b349f8"/><file name="mysql4-upgrade-0.9.0-0.9.1.php" hash="b970018526e15b6fc938b1866c5bfd81"/><file name="mysql4-upgrade-0.9.1-0.9.2.php" hash="07ba18c243e573655e43c64ee1a0d876"/></dir></dir><file name="license.txt" hash="257eae92a36bdaaf9584fbf8ba76d1c6"/><file name="notes.txt" hash="6dd9123e327bb5b3b79b08f2414c3f55"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="ibanners.xml" hash="daa28ce83b6f288108c87bc352475ca8"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="ibanners.xml" hash="17174e0baab8b5e672912963a74603bc"/></dir><dir name="template"><dir name="ibanners"><file name="default.phtml" hash="1b96c82b241215187e5aa7653e2939e7"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="fishpig"><file name="carousel.min.js" hash="cfd7a8d08a6dca87e4211a400877716e"/></dir></dir><dir name="app"><dir name="etc"><dir name="modules"><file name="Fishpig_iBanners.xml" hash="d3476db8a3f950a7bf249b5382b5c42e"/></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="ibanners.css" hash="6bdf6ea79a22cb035d41f1f37b7d6a11"/></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
  <dependencies/>
19
  </package>