PPLSAY_Social_Discussions - Version 1.2.0

Version Notes

PPLSAY Social Discussions & Reviews 1.2.0 is a major release which includes following features:
1. Multi languages support
2. Full support for embedding Twitter and Google+ discussions

3. Bug fixes

Download this release

Release Info

Developer PPLSAY Commerce Ltd
Extension PPLSAY_Social_Discussions
Version 1.2.0
Comparing to
See all releases


Code changes from version 1.1.3 to 1.2.0

app/code/community/PPLS/Discussions/Block/Discussions.php~ CHANGED
@@ -13,7 +13,7 @@ class PPLS_Discussions_Block_Discussions extends Mage_Core_Block_Template
13
  $model = Mage::getSingleton('discussions/discussions');
14
  $sparams = $this->generateSearchParams();
15
 
16
- return $model->getDiscussionsVer1($sparams,false);
17
 
18
  }
19
 
@@ -116,8 +116,8 @@ class PPLS_Discussions_Block_Discussions extends Mage_Core_Block_Template
116
  public function sendToDiscovery()
117
  {
118
  $model = Mage::getSingleton('discussions/discussions');
119
- $myProductId = $this->getProductId();
120
- $locale = $this->getLocale();
121
  return $model->sendToDiscovery($myProductId,$locale);
122
  }
123
 
13
  $model = Mage::getSingleton('discussions/discussions');
14
  $sparams = $this->generateSearchParams();
15
 
16
+ return $sparams;//$model->getDiscussionsVer1($sparams,false);
17
 
18
  }
19
 
116
  public function sendToDiscovery()
117
  {
118
  $model = Mage::getSingleton('discussions/discussions');
119
+ $myProductId = $model->getProductId();
120
+ $locale = $model->getLocale();
121
  return $model->sendToDiscovery($myProductId,$locale);
122
  }
123
 
app/code/community/PPLS/Discussions/Model/Discussions.php CHANGED
@@ -214,13 +214,18 @@ class PPLS_Discussions_Model_Discussions extends Mage_Core_Model_Abstract
214
 
215
  try{
216
  $product = Mage::getModel('catalog/product')->load($productId);
217
- $productBrand = $product->getAttributeText('manufacturer');
 
 
 
 
218
  $productCategory = "";
219
  $productName = $product->getName();
220
 
221
  $categoryIds = $product->getCategoryIds();
 
222
  if(count($categoryIds) ){
223
- $firstCategoryId = $categoryIds[0];
224
  $_category = Mage::getModel('catalog/category')->load($firstCategoryId);
225
  $productCategory=$_category->getName();
226
  }
214
 
215
  try{
216
  $product = Mage::getModel('catalog/product')->load($productId);
217
+ $productBrand = $product->getData("brand");
218
+ if($productBrand==null || $productBrand=="")
219
+ {
220
+ $productBrand = $product->getAttributeText('manufacturer');
221
+ }
222
  $productCategory = "";
223
  $productName = $product->getName();
224
 
225
  $categoryIds = $product->getCategoryIds();
226
+ $catSize = count($categoryIds);
227
  if(count($categoryIds) ){
228
+ $firstCategoryId = $categoryIds[$catSize-1];
229
  $_category = Mage::getModel('catalog/category')->load($firstCategoryId);
230
  $productCategory=$_category->getName();
231
  }
app/code/community/PPLS/Discussions/Model/Discussions.php~ CHANGED
@@ -59,7 +59,7 @@ class PPLS_Discussions_Model_Discussions extends Mage_Core_Model_Abstract
59
  $virality_flag = Mage::getModel('core/variable')->loadByCode('ppls_virality_flag')->getData('store_plain_value');
60
  if($virality_flag!="off" && $virality_flag!="on")
61
  {
62
- $virality_flag="on";
63
  }
64
  $counts = array();
65
  $productNames = array();
@@ -214,13 +214,18 @@ class PPLS_Discussions_Model_Discussions extends Mage_Core_Model_Abstract
214
 
215
  try{
216
  $product = Mage::getModel('catalog/product')->load($productId);
217
- $productBrand = $product->getAttributeText('manufacturer');
 
 
 
 
218
  $productCategory = "";
219
  $productName = $product->getName();
220
 
221
  $categoryIds = $product->getCategoryIds();
 
222
  if(count($categoryIds) ){
223
- $firstCategoryId = $categoryIds[0];
224
  $_category = Mage::getModel('catalog/category')->load($firstCategoryId);
225
  $productCategory=$_category->getName();
226
  }
59
  $virality_flag = Mage::getModel('core/variable')->loadByCode('ppls_virality_flag')->getData('store_plain_value');
60
  if($virality_flag!="off" && $virality_flag!="on")
61
  {
62
+ $virality_flag="default";
63
  }
64
  $counts = array();
65
  $productNames = array();
214
 
215
  try{
216
  $product = Mage::getModel('catalog/product')->load($productId);
217
+ $productBrand = $product->getAttributeText('brand');
218
+ if($productBrand==null || $productBrand=="")
219
+ {
220
+ $productBrand = $product->getAttributeText('manufacturer');
221
+ }
222
  $productCategory = "";
223
  $productName = $product->getName();
224
 
225
  $categoryIds = $product->getCategoryIds();
226
+ $catSize = count($categoryIds);
227
  if(count($categoryIds) ){
228
+ $firstCategoryId = $categoryIds[$catSize-1];
229
  $_category = Mage::getModel('catalog/category')->load($firstCategoryId);
230
  $productCategory=$_category->getName();
231
  }
app/code/community/PPLS/Discussions/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <PPLS_Discussions>
5
- <version>1.1.1</version>
6
  </PPLS_Discussions>
7
  </modules>
8
  <global>
@@ -56,11 +56,11 @@
56
  </routers>
57
  <translate>
58
  <modules>
59
- <translations>
60
  <files>
61
  <default>PPLS_Discussions.csv</default>
62
  </files>
63
- </translations>
64
  </modules>
65
  </translate>
66
 
2
  <config>
3
  <modules>
4
  <PPLS_Discussions>
5
+ <version>1.2.0</version>
6
  </PPLS_Discussions>
7
  </modules>
8
  <global>
56
  </routers>
57
  <translate>
58
  <modules>
59
+ <PPLS_Discussions>
60
  <files>
61
  <default>PPLS_Discussions.csv</default>
62
  </files>
63
+ </PPLS_Discussions>
64
  </modules>
65
  </translate>
66
 
app/code/community/PPLS/Discussions/etc/config.xml~ CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <PPLS_Discussions>
5
- <version>1.1.1</version>
6
  </PPLS_Discussions>
7
  </modules>
8
  <global>
@@ -56,11 +56,11 @@
56
  </routers>
57
  <translate>
58
  <modules>
59
- <translations>
60
  <files>
61
  <default>PPLS_Discussions.csv</default>
62
  </files>
63
- </translations>
64
  </modules>
65
  </translate>
66
 
2
  <config>
3
  <modules>
4
  <PPLS_Discussions>
5
+ <version>1.2</version>
6
  </PPLS_Discussions>
7
  </modules>
8
  <global>
56
  </routers>
57
  <translate>
58
  <modules>
59
+ <PPLS_Discussions>
60
  <files>
61
  <default>PPLS_Discussions.csv</default>
62
  </files>
63
+ </PPLS_Discussions>
64
  </modules>
65
  </translate>
66
 
app/design/frontend/base/default/template/discussions/discussions.phtml CHANGED
@@ -24,6 +24,11 @@
24
  pplsJS.setAttribute("type","text/javascript");
25
  pplsJS.setAttribute("src", ppls_cdn_url+ "/js/default/conversationsRenderer.js");
26
  document.getElementsByTagName("head")[0].appendChild(pplsJS);
 
 
 
 
 
27
  </script>
28
  </div>
29
  <div id="PPLSAYLink" class="row" style="padding-left: 15px;">
24
  pplsJS.setAttribute("type","text/javascript");
25
  pplsJS.setAttribute("src", ppls_cdn_url+ "/js/default/conversationsRenderer.js");
26
  document.getElementsByTagName("head")[0].appendChild(pplsJS);
27
+ var twitterJS=document.createElement('script');
28
+ twitterJS.setAttribute("type","text/javascript");
29
+ twitterJS.setAttribute("src", "//platform.twitter.com/widgets.js");
30
+ document.getElementsByTagName("head")[0].appendChild(twitterJS);
31
+
32
  </script>
33
  </div>
34
  <div id="PPLSAYLink" class="row" style="padding-left: 15px;">
app/design/frontend/base/default/template/discussions/discussions.phtml~ CHANGED
@@ -15,20 +15,20 @@
15
  pplsCSS.setAttribute("type", "text/css");
16
  pplsCSS.setAttribute("href", ppls_cdn_url + "/css/internalStyle.css");
17
  headElem.insertBefore(pplsCSS,headElem.firstChild);
18
- var bsCSS=document.createElement('link');
19
- bsCSS.setAttribute("rel", "stylesheet");
20
- bsCSS.setAttribute("type", "text/css");
21
- bsCSS.setAttribute("href", ppls_cdn_url + "/css/pplsay_bootstrap.min.css");
22
- headElem.insertBefore(bsCSS,headElem.firstChild);
23
  var pplsJS=document.createElement('script');
24
  pplsJS.setAttribute("type","text/javascript");
25
  pplsJS.setAttribute("src", ppls_cdn_url+ "/js/default/conversationsRenderer.js");
26
  document.getElementsByTagName("head")[0].appendChild(pplsJS);
 
 
 
 
 
27
  </script>
28
  </div>
29
  <div id="PPLSAYLink" class="row" style="padding-left: 15px;">
30
  <a href="http://pplsay.com" onclick = "window.open(this.href, 'mywin','left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;">
31
- <span class="pplsay-label" style="font-weight:bold;font-size:13px">Powered by:</span>
32
  <img style="" src="<?php echo $this->getPPLSayCdnURL();?>/images/logoLink.png" style="border:0;" alt="PPLSAY - Connecting to Crowd Voice">
33
  </a>
34
  </div>
15
  pplsCSS.setAttribute("type", "text/css");
16
  pplsCSS.setAttribute("href", ppls_cdn_url + "/css/internalStyle.css");
17
  headElem.insertBefore(pplsCSS,headElem.firstChild);
 
 
 
 
 
18
  var pplsJS=document.createElement('script');
19
  pplsJS.setAttribute("type","text/javascript");
20
  pplsJS.setAttribute("src", ppls_cdn_url+ "/js/default/conversationsRenderer.js");
21
  document.getElementsByTagName("head")[0].appendChild(pplsJS);
22
+ var twitterJS=document.createElement('script');
23
+ twitterJS.setAttribute("type","text/javascript");
24
+ twitterJS.setAttribute("src", "//platform.twitter.com/widgets.js");
25
+ document.getElementsByTagName("head")[0].appendChild(twitterJS);
26
+
27
  </script>
28
  </div>
29
  <div id="PPLSAYLink" class="row" style="padding-left: 15px;">
30
  <a href="http://pplsay.com" onclick = "window.open(this.href, 'mywin','left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;">
31
+ <span class="pplsay-label" style="font-weight:bold;font-size:13px;float:left">Powered by:</span>
32
  <img style="" src="<?php echo $this->getPPLSayCdnURL();?>/images/logoLink.png" style="border:0;" alt="PPLSAY - Connecting to Crowd Voice">
33
  </a>
34
  </div>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>PPLSAY_Social_Discussions</name>
4
- <version>1.1.3</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
@@ -26,11 +26,17 @@ Visit us at: http://pplsay.com&#xD;
26
  For demo site please refer to the following link pplsay demo:&#xD;
27
  http://demo.pplsay.com/&#xD;
28
  </description>
29
- <notes>- Fixed performance issues</notes>
 
 
 
 
 
 
30
  <authors><author><name>PPLSAY Commerce Ltd</name><user>pplsay</user><email>contact@pplsay.com</email></author><author><name>PPLSAY Commerce Ltd</name><user>ymatatov</user><email>ymatatov@pplsay.com</email></author></authors>
31
- <date>2014-08-27</date>
32
- <time>18:33:39</time>
33
- <contents><target name="magecommunity"><dir name="PPLS"><dir name="Discussions"><dir name="Block"><file name="Discussions.php" hash="ba59fa56d3a766bb4df0b316424429d6"/><file name="Discussions.php~" hash="bcd023e1d6fddcd5abbd7c3217235c80"/><file name="Virality.php" hash="89b053e0383f93c2822b7df641bf6eca"/><file name="Virality.php~" hash="89b053e0383f93c2822b7df641bf6eca"/></dir><dir name="Model"><file name="Discussions.php" hash="7db7b06bd5a042a177cc4ddd057f0294"/><file name="Discussions.php~" hash="9b03cd28731d30c09f2153a9d9893b12"/><file name="Observer.php" hash="c7033b540b29e847ccfdc1ee0773385f"/><file name="Observer.php~" hash="068e913c39ea60f5109a5be9455918b8"/><file name="Virality.php" hash="76bd0d650be1e40354c58a55e7e1b45c"/><file name="Virality.php~" hash="dc6798b3b775f6a111fb5725350e093f"/></dir><dir name="controllers"><file name="AjaxController.php" hash="68755c25bbe223eea5b9cbafc254894b"/><file name="AjaxController.php~" hash="49050506de09082d7032e0177bcc0a6b"/></dir><dir name="etc"><file name="config.xml" hash="2591a21ff35bc08a5c2c4b1007badcb7"/><file name="config.xml~" hash="2591a21ff35bc08a5c2c4b1007badcb7"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="discussions.xml" hash="ddea3c9c8230bc6fb92d70892efb7ad9"/></dir><dir name="template"><dir name="discussions"><file name="discoverajax.phtml" hash="2898a95d02519cf8054f17ce73fe424f"/><file name="discoverajax.phtml~" hash="2898a95d02519cf8054f17ce73fe424f"/><file name="discussions.phtml" hash="50449432efd90d331694e29e3c5977dd"/><file name="discussions.phtml~" hash="5d051febb94428a6207df204d451a4b7"/><file name="discussions_tab.phtml" hash="a8ba7a05bd513c39d8e23ef5aaa9a713"/><file name="discussionsajax.phtml" hash="7198009ab06cff1df67af38b1a1c2bb2"/><file name="feedbackajax.phtml" hash="87dc84f946738cf45c469355a501495d"/><file name="getdiscussionsajax.phtml" hash="8a16f98dd4eee7ffd75d72d66b071ac5"/><file name="prod_discussions.phtml~" hash="a8ba7a05bd513c39d8e23ef5aaa9a713"/><file name="prod_discussions2.phtml~" hash="501c88fbd1f8a98c7cb398e4d619ad43"/><file name="pviewajax.phtml" hash="e3874bf6cd826d3e674f8c542e2dd32c"/><file name="pviewajax.phtml~" hash="8a2a525b1cf2c5a9ee680ec043454b47"/><file name="searchdiscussionsajax.phtml" hash="710a9cf544b4280dcc979780a6b27397"/><file name="virality.phtml" hash="e24ff80a61fdb0650dd6ac9579e371e5"/><file name="virality.phtml~" hash="e24ff80a61fdb0650dd6ac9579e371e5"/></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="template"><dir name="discussions"><file name="discussions.phtml" hash="b628c9e68d54b18402717adc4a9129c7"/><file name="discussions.phtml~" hash="ee53c50d252f9b72db691094f4c38294"/><file name="prod_discussions.phtml~" hash="a8ba7a05bd513c39d8e23ef5aaa9a713"/><file name="prod_discussions2.phtml~" hash="501c88fbd1f8a98c7cb398e4d619ad43"/><file name="virality.phtml~" hash="e5f7560a0fc7a498dfda94a62346a139"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="template"><dir name="discussions"><file name="discussions.phtml" hash="b9e9115f6a44880a2bfad45b5edffcc1"/><file name="discussions.phtml~" hash="0a18e82fbfe7848c311cc265ac948be4"/><file name="prod_discussions.phtml~" hash="a8ba7a05bd513c39d8e23ef5aaa9a713"/><file name="prod_discussions2.phtml~" hash="501c88fbd1f8a98c7cb398e4d619ad43"/><file name="virality.phtml~" hash="41cd911fb7a8e96e6e12d01cea97fba1"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="PPLS_Discussions.xml" hash="ac7b6141ef009aa254ead448c9720e95"/></dir></target></contents>
34
  <compatible/>
35
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name/><channel>connect.magentocommerce.com/core</channel><min/><max/></package></required></dependencies>
36
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>PPLSAY_Social_Discussions</name>
4
+ <version>1.2.0</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
26
  For demo site please refer to the following link pplsay demo:&#xD;
27
  http://demo.pplsay.com/&#xD;
28
  </description>
29
+ <notes>PPLSAY Social Discussions &amp; Reviews 1.2.0 is a major release which includes following features:&#xD;
30
+ 1. Multi languages support&#xD;
31
+ 2. Full support for embedding Twitter and Google+ discussions&#xD;
32
+ &#xD;
33
+ &#xD;
34
+ 3. Bug fixes &#xD;
35
+ </notes>
36
  <authors><author><name>PPLSAY Commerce Ltd</name><user>pplsay</user><email>contact@pplsay.com</email></author><author><name>PPLSAY Commerce Ltd</name><user>ymatatov</user><email>ymatatov@pplsay.com</email></author></authors>
37
+ <date>2015-02-22</date>
38
+ <time>21:53:20</time>
39
+ <contents><target name="magecommunity"><dir name="PPLS"><dir name="Discussions"><dir name="Block"><file name="Discussions.php" hash="ba59fa56d3a766bb4df0b316424429d6"/><file name="Discussions.php~" hash="0928a09685b3bba4bd3ae081bf414416"/><file name="Virality.php" hash="89b053e0383f93c2822b7df641bf6eca"/><file name="Virality.php~" hash="89b053e0383f93c2822b7df641bf6eca"/></dir><dir name="Model"><file name="Discussions.php" hash="8f3e8e6080efa03b8a729551771f51ca"/><file name="Discussions.php~" hash="7d218525e20aa624eb36bc83d14e1e29"/><file name="Observer.php" hash="c7033b540b29e847ccfdc1ee0773385f"/><file name="Observer.php~" hash="068e913c39ea60f5109a5be9455918b8"/><file name="Virality.php" hash="76bd0d650be1e40354c58a55e7e1b45c"/><file name="Virality.php~" hash="dc6798b3b775f6a111fb5725350e093f"/></dir><dir name="controllers"><file name="AjaxController.php" hash="68755c25bbe223eea5b9cbafc254894b"/><file name="AjaxController.php~" hash="49050506de09082d7032e0177bcc0a6b"/></dir><dir name="etc"><file name="config.xml" hash="13b1f8bddb3c3e218401d0ca4608366d"/><file name="config.xml~" hash="386b1ace98b43831a24e7ac868ce4a10"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="discussions.xml" hash="ddea3c9c8230bc6fb92d70892efb7ad9"/></dir><dir name="template"><dir name="discussions"><file name="discoverajax.phtml" hash="2898a95d02519cf8054f17ce73fe424f"/><file name="discoverajax.phtml~" hash="2898a95d02519cf8054f17ce73fe424f"/><file name="discussions.phtml" hash="867f00904e201dad100c939e4938b46a"/><file name="discussions.phtml~" hash="497b2fd0fb20cb90499b0b574327ccbe"/><file name="discussions_tab.phtml" hash="a8ba7a05bd513c39d8e23ef5aaa9a713"/><file name="discussionsajax.phtml" hash="7198009ab06cff1df67af38b1a1c2bb2"/><file name="feedbackajax.phtml" hash="87dc84f946738cf45c469355a501495d"/><file name="getdiscussionsajax.phtml" hash="8a16f98dd4eee7ffd75d72d66b071ac5"/><file name="prod_discussions.phtml~" hash="a8ba7a05bd513c39d8e23ef5aaa9a713"/><file name="prod_discussions2.phtml~" hash="501c88fbd1f8a98c7cb398e4d619ad43"/><file name="pviewajax.phtml" hash="e3874bf6cd826d3e674f8c542e2dd32c"/><file name="pviewajax.phtml~" hash="8a2a525b1cf2c5a9ee680ec043454b47"/><file name="searchdiscussionsajax.phtml" hash="710a9cf544b4280dcc979780a6b27397"/><file name="virality.phtml" hash="e24ff80a61fdb0650dd6ac9579e371e5"/><file name="virality.phtml~" hash="e24ff80a61fdb0650dd6ac9579e371e5"/></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="template"><dir name="discussions"><file name="discussions.phtml" hash="b628c9e68d54b18402717adc4a9129c7"/><file name="discussions.phtml~" hash="ee53c50d252f9b72db691094f4c38294"/><file name="prod_discussions.phtml~" hash="a8ba7a05bd513c39d8e23ef5aaa9a713"/><file name="prod_discussions2.phtml~" hash="501c88fbd1f8a98c7cb398e4d619ad43"/><file name="virality.phtml~" hash="e5f7560a0fc7a498dfda94a62346a139"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="template"><dir name="discussions"><file name="discussions.phtml" hash="b9e9115f6a44880a2bfad45b5edffcc1"/><file name="discussions.phtml~" hash="0a18e82fbfe7848c311cc265ac948be4"/><file name="prod_discussions.phtml~" hash="a8ba7a05bd513c39d8e23ef5aaa9a713"/><file name="prod_discussions2.phtml~" hash="501c88fbd1f8a98c7cb398e4d619ad43"/><file name="virality.phtml~" hash="41cd911fb7a8e96e6e12d01cea97fba1"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="PPLS_Discussions.xml" hash="ac7b6141ef009aa254ead448c9720e95"/></dir></target></contents>
40
  <compatible/>
41
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name/><channel>connect.magentocommerce.com/core</channel><min/><max/></package></required></dependencies>
42
  </package>