Aitoc_Aitvbulletin - Version 1.3.11

Version Notes

1.3.11

Download this release

Release Info

Developer Magento Core Team
Extension Aitoc_Aitvbulletin
Version 1.3.11
Comparing to
See all releases


Code changes from version 0.3.11 to 1.3.11

app/code/local/Aitoc/Aitvbulletin/Model/Config/SourceForum.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @copyright Copyright (c) 2009 AITOC, Inc.
4
+ */
5
+
6
+ class Aitoc_Aitvbulletin_Model_Config_SourceForum
7
+ {
8
+ public function toOptionArray()
9
+ {
10
+ return array(
11
+ array(
12
+ 'value' => 0,
13
+ 'label' => Mage::helper('adminhtml')->__('No'),
14
+ ),
15
+ array(
16
+ 'value' => 2,
17
+ 'label' => Mage::helper('adminhtml')->__('Yes')
18
+ . Mage::helper('aitvbulletin')->__(' (allow sending usage statistics)'),
19
+ ),
20
+ array(
21
+ 'value' => 1,
22
+ 'label' => Mage::helper('adminhtml')->__('Yes')
23
+ . Mage::helper('aitvbulletin')->__(' (anonymous usage)')
24
+ ),
25
+ );
26
+ }
27
+ }
app/code/local/Aitoc/Aitvbulletin/Model/Notification/Abstract.php CHANGED
@@ -31,7 +31,26 @@ abstract class Aitoc_Aitvbulletin_Model_Notification_Abstract extends Mage_Core_
31
  $service
32
  ->setServiceUrl(self::SERVICE_URL)
33
  ->connect();
34
- $this->setData($service->{$this->_serviceMethod}(array()));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  $service->disconnect();
36
  }
37
  catch (Exception $e)
@@ -65,7 +84,7 @@ abstract class Aitoc_Aitvbulletin_Model_Notification_Abstract extends Mage_Core_
65
  {
66
  if ($this->_cacheKey)
67
  {
68
- Mage::app()->saveCache(serialize($this->getData()), $this->_cacheKey, array(), 3600*12);
69
  }
70
 
71
  return $this;
31
  $service
32
  ->setServiceUrl(self::SERVICE_URL)
33
  ->connect();
34
+
35
+ $aData = array();
36
+
37
+ /**
38
+ * Check if it's allowed sending usage statistics
39
+ * @see Aitoc_Aitvbulletin_Model_Config_SourceForum::toOptionArray()
40
+ */
41
+ if (2 == Mage::getStoreConfig('aitvbulletin/forum/enabled'))
42
+ {
43
+ $collection = Mage::getModel('customer/customer')->getCollection();
44
+ /* @var $collection Mage_Customer_Model_Entity_Customer_Collection */
45
+ $collection->addAttributeToFilter('aitvbulletin_user_id', array('neq' => 0));
46
+ $aData = array(
47
+ 'host' => Mage::getBaseUrl(),
48
+ 'version' => Mage::getVersion(),
49
+ 'users' => $collection->getSize(),
50
+ );
51
+ }
52
+ $this->setData($service->{$this->_serviceMethod}($aData));
53
+
54
  $service->disconnect();
55
  }
56
  catch (Exception $e)
84
  {
85
  if ($this->_cacheKey)
86
  {
87
+ Mage::app()->saveCache(serialize($this->getData()), $this->_cacheKey, array(), 3600*24);
88
  }
89
 
90
  return $this;
app/code/local/Aitoc/Aitvbulletin/etc/system.xml CHANGED
@@ -22,9 +22,9 @@
22
  <fields>
23
  <enabled translate="label comment">
24
  <label>Enable vBulletin integration</label>
25
- <comment><![CDATA[please refresh the cache if you change this value]]></comment>
26
  <frontend_type>select</frontend_type>
27
- <source_model>adminhtml/system_config_source_yesno</source_model>
28
  <backend_model>aitvbulletin/config_backendForum</backend_model>
29
  <sort_order>5</sort_order>
30
  <show_in_default>1</show_in_default>
@@ -33,7 +33,7 @@
33
  </enabled>
34
  <linktitle translate="label comment">
35
  <label>Forum Link Title</label>
36
- <comment><![CDATA[title of the footer link to vBulletin forums<br/>please refresh the cache if you change this value]]></comment>
37
  <frontend_type>text</frontend_type>
38
  <sort_order>14</sort_order>
39
  <show_in_default>1</show_in_default>
22
  <fields>
23
  <enabled translate="label comment">
24
  <label>Enable vBulletin integration</label>
25
+ <comment><![CDATA[If allowed sending usage statictics the following will be sent to AITOC: hostname, magento version, quantity of vB users<br/><i>Please refresh the cache if you change this value</i>]]></comment>
26
  <frontend_type>select</frontend_type>
27
+ <source_model>aitvbulletin/config_sourceForum</source_model>
28
  <backend_model>aitvbulletin/config_backendForum</backend_model>
29
  <sort_order>5</sort_order>
30
  <show_in_default>1</show_in_default>
33
  </enabled>
34
  <linktitle translate="label comment">
35
  <label>Forum Link Title</label>
36
+ <comment><![CDATA[Title of the footer link to vBulletin forums<br/><i>Please refresh the cache if you change this value</i>]]></comment>
37
  <frontend_type>text</frontend_type>
38
  <sort_order>14</sort_order>
39
  <show_in_default>1</show_in_default>
app/code/local/Aitoc/Aitvbulletin/sql/aitvbulletin_setup/{mysql4-install-0.3.11.php → mysql4-install-1.3.11.php} RENAMED
File without changes
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Aitoc_Aitvbulletin</name>
4
- <version>0.3.11</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>vBulletin Integration Lite</summary>
10
  <description>vBulletin Integration Lite</description>
11
- <notes>0.3.11</notes>
12
  <authors><author><name>AITOC Inc.</name><user>auto-converted</user><email>magsupport@aitoc.com</email></author></authors>
13
- <date>2009-11-12</date>
14
- <time>16:37:07</time>
15
- <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="aitvbulletin.xml" hash="de017b0a4a96fae6acdc123a82a1e8b8"/></dir><dir name="template"><dir name="aitvbulletin"><dir name="vbserver"><file name="edit.phtml" hash="9489aeaff76338c949951262b90aaae4"/><file name="js.phtml" hash="ed1afcb1ff9daca0a6da318fb7668341"/></dir><file name="aitoc_news.phtml" hash="b4747f0c6876b62413cd3aa37d8f6ef2"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="aitvbulletin.xml" hash="380748ff547119d19ea360996935bd7c"/></dir><dir name="template"><dir name="aitvbulletin"><dir name="customer"><file name="forum.phtml" hash="3a946c44d82ae0acb74b3011053efaec"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="aitvbulletin.css" hash="52c2b2ce71b35bfdcb64dc6909b6301a"/></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="aitvbulletin.css" hash="65788bd84d8c88833d4a649fea9ac7db"/></dir></dir></dir></dir></target><target name="magelocal"><dir name="Aitoc"><dir name="Aitvbulletin"><dir name="Block"><dir name="Account"><file name="Forum.php" hash="d05d46902fc451fa6b727bf0b25007fc"/><file name="Logout.php" hash="b9fa0831933805d6b9c4655454fc348c"/></dir><dir name="Admin"><dir name="Vbserver"><dir name="Edit"><file name="Form.php" hash="9a54e86df8d4d7e4270a493a09316bc5"/></dir><file name="Edit.php" hash="0c9ca6688eb5ada387ea5e0138b2ae25"/></dir><file name="News.php" hash="f8a8320f2c09a5461f6b34c7a291c1e6"/></dir><dir name="Config"><file name="FormFieldset.php" hash="40542e7fe989c52cb9be66cf30e2eb75"/></dir><dir name="Rewrite"><file name="FrontPageHtml.data.php" hash="f55f995f434d8691c7b4b6929ac977f1"/><file name="FrontPageHtml.php" hash="f55f995f434d8691c7b4b6929ac977f1"/></dir></dir><dir name="controllers"><dir name="Admin"><file name="VbserverController.php" hash="227d8e99e62b72937a410875e368079d"/></dir><file name="AccountController.php" hash="51cc63ad2ef19f917c94353831185a6a"/><file name="ProxyController.php" hash="e7ffc3942b8d4f832c6da476f59b958a"/></dir><dir name="etc"><file name="config.xml" hash="28e1b1496937c69bd439bea23d138af1"/><file name="system.xml" hash="4eb75ee16d2efd686112942dc5b4a631"/></dir><dir name="Helper"><file name="Data.php" hash="428a8e8b0dfcadcdc0337df173160e69"/></dir><dir name="Model"><dir name="Config"><file name="BackendForum.php" hash="d05248f76e9d6647106e347f5a2e7425"/><file name="SourceDbtype.php" hash="cdc526f5f2d9c2300a50741e0aa6f79b"/></dir><dir name="Mysql4"><file name="Setup.php" hash="1e1c060d123baa160f34344c635e0bb2"/></dir><dir name="Notification"><file name="Abstract.php" hash="ffca27e66c762006a5930b8fcb722422"/><file name="News.php" hash="92c52193deef455bbce2d588b107e066"/><file name="Notifications.php" hash="d36f130ed2ccf5e213a6b857f595b7dc"/><file name="Observer.php" hash="18d1797a8fb490b910825fb6eba5420b"/><file name="Service.php" hash="80a307a3aa4cc75a2225bfa83bb04c35"/></dir><dir name="Rewrite"><file name="FrontCustomer.data.php" hash="1243986eba9d075d931cbbd75ee87a27"/><file name="FrontCustomer.php" hash="1243986eba9d075d931cbbd75ee87a27"/></dir><dir name="Vbulletin"><dir name="Mysql4"><dir name="Collection"><file name="Abstract.php" hash="ed7b054368f44b51fb632a046479f1ed"/></dir><dir name="Hash"><file name="Collection.php" hash="2020d19a2a6ccc6d4c4d51e297daece4"/></dir><dir name="User"><file name="Collection.php" hash="0134e12a71f26da56e1c916387119196"/></dir><file name="Abstract.php" hash="362b20169cecc28a5c595103cbbb260a"/><file name="Hash.php" hash="0b41311285b8841ca8d8ffd9cdcd1f95"/><file name="User.php" hash="dda0927f6ab2a6aff6cdff34a2a75614"/></dir><file name="Abstract.php" hash="9ea20ad9b6597a12c6af89156da3b422"/><file name="Hash.php" hash="2c0339fab2cd0045155cfdd17f7d01db"/><file name="User.php" hash="862af11617928ee071ddaba6d8e820bb"/></dir><file name="Curl.php" hash="3c960a9b133da3b38f08f2cf2fea37d1"/><file name="Exception.php" hash="7f71f3df1b41a464ad9fb0de07d9de18"/><file name="Observer.php" hash="a52afff6cbc11406370b9141a3425db3"/><file name="Session.php" hash="03f9a0164698015cfed549e2cee9d45b"/><file name="Vbserver.php" hash="2399f684238f8b4bd31d436874f3adaa"/></dir><dir name="sql"><dir name="aitvbulletin_setup"><file name="mysql4-install-0.3.11.php" hash="3b36568577a6a305b96a1c38766cd521"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Aitoc_Aitvbulletin.xml" hash="2831023ea95a40158ef7bd3f079ec465"/></dir></target><target name="mage"><dir name="vbulletin_product"><dir name="vbulletin_import"><file name="Aitoc MagentoVB Lite.xml" hash="a3004921f47b8cb5052cc178135be604"/></dir><dir name="vbulletin_upload"><dir name="includes"><file name="class_aitmagentovb.php" hash="934fc7e87bf5c3f8edcdcf0b6ce64883"/><file name="class_aitzend.php" hash="f9e3648e402b840b9fc4703c84a7d829"/></dir><file name="aitmagentovb.php" hash="1e5e4e811921182dbeccdf8a02ad7a12"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Aitoc_Aitvbulletin</name>
4
+ <version>1.3.11</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>vBulletin Integration Lite</summary>
10
  <description>vBulletin Integration Lite</description>
11
+ <notes>1.3.11</notes>
12
  <authors><author><name>AITOC Inc.</name><user>auto-converted</user><email>magsupport@aitoc.com</email></author></authors>
13
+ <date>2009-11-16</date>
14
+ <time>15:20:17</time>
15
+ <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="aitvbulletin.xml" hash="de017b0a4a96fae6acdc123a82a1e8b8"/></dir><dir name="template"><dir name="aitvbulletin"><dir name="vbserver"><file name="edit.phtml" hash="9489aeaff76338c949951262b90aaae4"/><file name="js.phtml" hash="ed1afcb1ff9daca0a6da318fb7668341"/></dir><file name="aitoc_news.phtml" hash="b4747f0c6876b62413cd3aa37d8f6ef2"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="aitvbulletin.xml" hash="380748ff547119d19ea360996935bd7c"/></dir><dir name="template"><dir name="aitvbulletin"><dir name="customer"><file name="forum.phtml" hash="3a946c44d82ae0acb74b3011053efaec"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="aitvbulletin.css" hash="52c2b2ce71b35bfdcb64dc6909b6301a"/></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="aitvbulletin.css" hash="65788bd84d8c88833d4a649fea9ac7db"/></dir></dir></dir></dir></target><target name="magelocal"><dir name="Aitoc"><dir name="Aitvbulletin"><dir name="Block"><dir name="Account"><file name="Forum.php" hash="d05d46902fc451fa6b727bf0b25007fc"/><file name="Logout.php" hash="b9fa0831933805d6b9c4655454fc348c"/></dir><dir name="Admin"><dir name="Vbserver"><dir name="Edit"><file name="Form.php" hash="9a54e86df8d4d7e4270a493a09316bc5"/></dir><file name="Edit.php" hash="0c9ca6688eb5ada387ea5e0138b2ae25"/></dir><file name="News.php" hash="f8a8320f2c09a5461f6b34c7a291c1e6"/></dir><dir name="Config"><file name="FormFieldset.php" hash="40542e7fe989c52cb9be66cf30e2eb75"/></dir><dir name="Rewrite"><file name="FrontPageHtml.data.php" hash="f55f995f434d8691c7b4b6929ac977f1"/><file name="FrontPageHtml.php" hash="f55f995f434d8691c7b4b6929ac977f1"/></dir></dir><dir name="controllers"><dir name="Admin"><file name="VbserverController.php" hash="227d8e99e62b72937a410875e368079d"/></dir><file name="AccountController.php" hash="51cc63ad2ef19f917c94353831185a6a"/><file name="ProxyController.php" hash="e7ffc3942b8d4f832c6da476f59b958a"/></dir><dir name="etc"><file name="config.xml" hash="d193488dac2d924559253e06f525a5cc"/><file name="system.xml" hash="8a3b3d5973ca04fb74b99aaf0be84d8c"/></dir><dir name="Helper"><file name="Data.php" hash="428a8e8b0dfcadcdc0337df173160e69"/></dir><dir name="Model"><dir name="Config"><file name="BackendForum.php" hash="d05248f76e9d6647106e347f5a2e7425"/><file name="SourceDbtype.php" hash="cdc526f5f2d9c2300a50741e0aa6f79b"/><file name="SourceForum.php" hash="be76097fccc73715eca57ee312a4d964"/></dir><dir name="Mysql4"><file name="Setup.php" hash="1e1c060d123baa160f34344c635e0bb2"/></dir><dir name="Notification"><file name="Abstract.php" hash="bc96d7b27bbf7093bf331808f60d96fc"/><file name="News.php" hash="92c52193deef455bbce2d588b107e066"/><file name="Notifications.php" hash="d36f130ed2ccf5e213a6b857f595b7dc"/><file name="Observer.php" hash="18d1797a8fb490b910825fb6eba5420b"/><file name="Service.php" hash="80a307a3aa4cc75a2225bfa83bb04c35"/></dir><dir name="Rewrite"><file name="FrontCustomer.data.php" hash="1243986eba9d075d931cbbd75ee87a27"/><file name="FrontCustomer.php" hash="1243986eba9d075d931cbbd75ee87a27"/></dir><dir name="Vbulletin"><dir name="Mysql4"><dir name="Collection"><file name="Abstract.php" hash="ed7b054368f44b51fb632a046479f1ed"/></dir><dir name="Hash"><file name="Collection.php" hash="2020d19a2a6ccc6d4c4d51e297daece4"/></dir><dir name="User"><file name="Collection.php" hash="0134e12a71f26da56e1c916387119196"/></dir><file name="Abstract.php" hash="362b20169cecc28a5c595103cbbb260a"/><file name="Hash.php" hash="0b41311285b8841ca8d8ffd9cdcd1f95"/><file name="User.php" hash="dda0927f6ab2a6aff6cdff34a2a75614"/></dir><file name="Abstract.php" hash="9ea20ad9b6597a12c6af89156da3b422"/><file name="Hash.php" hash="2c0339fab2cd0045155cfdd17f7d01db"/><file name="User.php" hash="862af11617928ee071ddaba6d8e820bb"/></dir><file name="Curl.php" hash="3c960a9b133da3b38f08f2cf2fea37d1"/><file name="Exception.php" hash="7f71f3df1b41a464ad9fb0de07d9de18"/><file name="Observer.php" hash="a52afff6cbc11406370b9141a3425db3"/><file name="Session.php" hash="03f9a0164698015cfed549e2cee9d45b"/><file name="Vbserver.php" hash="2399f684238f8b4bd31d436874f3adaa"/></dir><dir name="sql"><dir name="aitvbulletin_setup"><file name="mysql4-install-1.3.11.php" hash="3b36568577a6a305b96a1c38766cd521"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Aitoc_Aitvbulletin.xml" hash="2831023ea95a40158ef7bd3f079ec465"/></dir></target><target name="mage"><dir name="vbulletin_product"><dir name="vbulletin_import"><file name="Aitoc MagentoVB Lite.xml" hash="a3004921f47b8cb5052cc178135be604"/></dir><dir name="vbulletin_upload"><dir name="includes"><file name="class_aitmagentovb.php" hash="934fc7e87bf5c3f8edcdcf0b6ce64883"/><file name="class_aitzend.php" hash="f9e3648e402b840b9fc4703c84a7d829"/></dir><file name="aitmagentovb.php" hash="1e5e4e811921182dbeccdf8a02ad7a12"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>