Version Notes
Minor Bug Fixes
Download this release
Release Info
Developer | DCKAP Inc. |
Extension | faqaskquestions |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
app/code/community/DCKAP/Faq/controllers/Adminhtml/FaqController.php
CHANGED
@@ -2,9 +2,6 @@
|
|
2 |
|
3 |
class DCKAP_Faq_Adminhtml_FaqController extends Mage_Adminhtml_Controller_action
|
4 |
{
|
5 |
-
protected function _isAllowed(){
|
6 |
-
return Mage::getSingleton('admin/session')->isAllowed('dckap/faq/items');
|
7 |
-
}
|
8 |
|
9 |
protected function _initAction() {
|
10 |
$this->loadLayout()
|
@@ -82,13 +79,14 @@ class DCKAP_Faq_Adminhtml_FaqController extends Mage_Adminhtml_Controller_action
|
|
82 |
$question = $data["question"];
|
83 |
$receiver = $customerData->getCustomerName();
|
84 |
$sendto = $customerData->getCustomerEmail();
|
85 |
-
|
86 |
$email->setTemplateSubject(Mage::getStoreConfig('faq/notifications/mail_subject'));
|
87 |
$email->setSenderName(Mage::getStoreConfig('faq/notifications/mail_sendername'));
|
88 |
$email->setSenderEmail(Mage::getStoreConfig('faq/notifications/mail_sendermail'));
|
89 |
$faqurl = str_replace("/index.php", "", Mage::getBaseUrl())."index.php/faq";
|
90 |
$data1 = array('question' => $question,'faq_url' => $faqurl,'receiver' => $receiver);
|
91 |
-
|
|
|
92 |
}
|
93 |
|
94 |
$model = Mage::getModel('faq/faq');
|
@@ -193,4 +191,4 @@ class DCKAP_Faq_Adminhtml_FaqController extends Mage_Adminhtml_Controller_action
|
|
193 |
$this->_redirect('*/*/index');
|
194 |
}
|
195 |
}
|
196 |
-
|
2 |
|
3 |
class DCKAP_Faq_Adminhtml_FaqController extends Mage_Adminhtml_Controller_action
|
4 |
{
|
|
|
|
|
|
|
5 |
|
6 |
protected function _initAction() {
|
7 |
$this->loadLayout()
|
79 |
$question = $data["question"];
|
80 |
$receiver = $customerData->getCustomerName();
|
81 |
$sendto = $customerData->getCustomerEmail();
|
82 |
+
|
83 |
$email->setTemplateSubject(Mage::getStoreConfig('faq/notifications/mail_subject'));
|
84 |
$email->setSenderName(Mage::getStoreConfig('faq/notifications/mail_sendername'));
|
85 |
$email->setSenderEmail(Mage::getStoreConfig('faq/notifications/mail_sendermail'));
|
86 |
$faqurl = str_replace("/index.php", "", Mage::getBaseUrl())."index.php/faq";
|
87 |
$data1 = array('question' => $question,'faq_url' => $faqurl,'receiver' => $receiver);
|
88 |
+
|
89 |
+
$notified = $email->send($sendto, $receiver, $data1);
|
90 |
}
|
91 |
|
92 |
$model = Mage::getModel('faq/faq');
|
191 |
$this->_redirect('*/*/index');
|
192 |
}
|
193 |
}
|
194 |
+
|
app/code/community/DCKAP/Faq/controllers/IndexController.php
CHANGED
@@ -36,7 +36,8 @@ class DCKAP_Faq_IndexController extends Mage_Core_Controller_Front_Action
|
|
36 |
$pass = 0;
|
37 |
$question = $this->getRequest()->getParam('question');
|
38 |
$category = $this->getRequest()->getParam('category');
|
39 |
-
|
|
|
40 |
if(Mage::getStoreConfig('faq/faq_recaptcha/faq_recaptchaselect')) {
|
41 |
|
42 |
$captcha = $this->getRequest()->getParam('g-recaptcha-response');
|
@@ -63,8 +64,8 @@ class DCKAP_Faq_IndexController extends Mage_Core_Controller_Front_Action
|
|
63 |
}else{
|
64 |
$pass = 1;
|
65 |
}
|
66 |
-
if (trim($answers
|
67 |
-
date_default_timezone_set(
|
68 |
$time = date("Y-m-d H:i:s");
|
69 |
$ucustomer = 1;$cname="";$cemail="";$customerID="";
|
70 |
if(Mage::getSingleton('customer/session')->isLoggedIn()){
|
36 |
$pass = 0;
|
37 |
$question = $this->getRequest()->getParam('question');
|
38 |
$category = $this->getRequest()->getParam('category');
|
39 |
+
$answers = array();
|
40 |
+
$answers["success"] = false;
|
41 |
if(Mage::getStoreConfig('faq/faq_recaptcha/faq_recaptchaselect')) {
|
42 |
|
43 |
$captcha = $this->getRequest()->getParam('g-recaptcha-response');
|
64 |
}else{
|
65 |
$pass = 1;
|
66 |
}
|
67 |
+
if (trim($answers['success']) == true || $pass == 1) {
|
68 |
+
date_default_timezone_set(Mage::getStoreConfig("general/locale/timezone"));
|
69 |
$time = date("Y-m-d H:i:s");
|
70 |
$ucustomer = 1;$cname="";$cemail="";$customerID="";
|
71 |
if(Mage::getSingleton('customer/session')->isLoggedIn()){
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>DCKAP_Faq</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>FAQ - Ask Questions used to manage the Frequently Asked Questions from magento back end and also user can ask their own questions from front end.</summary>
|
10 |
<description>FAQ - Ask Questions used to manage the Frequently Asked Questions from magento back end and also user can ask their own questions from front end.once user asked the questions, it will be reviewed by admin and update to FAQ section.</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>DCKAP</name><user>DCKAP</user><email>extensions@dckap.com</email></author></authors>
|
13 |
-
<date>2016-02-
|
14 |
-
<time>
|
15 |
-
<contents><target name="mageetc"><dir name="modules"><file name="DCKAP_Faq.xml" hash="5d954da45ed79e211b46b2043e69e5b7"/></dir></target><target name="magecommunity"><dir name="DCKAP"><dir name="Faq"><dir name="Block"><dir name="Adminhtml"><dir name="Category"><dir name="Edit"><file name="Form.php" hash="075bbc432545742be91055ec06c3f326"/><dir name="Tab"><file name="Form.php" hash="176ce1d61fcada0a21f57373b5928529"/></dir><file name="Tabs.php" hash="a59f6b8441bd9e72826ff82137e3dbb7"/></dir><file name="Edit.php" hash="c6a1aa50dcc80776d39331606f98c1a5"/><file name="Grid.php" hash="6d7a40f31faec6f7fb93fe5abeccabe0"/></dir><file name="Category.php" hash="7ac2172b768e5ce22a81ecf1b164063c"/><dir name="Faq"><dir name="Edit"><file name="Form.php" hash="1473c5c3684a3b7eec8a66e24e303aab"/><dir name="Tab"><file name="Form.php" hash="034fa5a31e791b8d9b0c879dec93a9db"/></dir><file name="Tabs.php" hash="629b9452bda705dcf62358126074be3e"/></dir><file name="Edit.php" hash="a40d158d72f67a430318877d55592333"/><file name="Grid.php" hash="96d89cd8b02b7ad12d628ef67c5f97d1"/></dir><file name="Faq.php" hash="2e67c8f3d51bcc1b50d87fc0383c26d0"/></dir><file name="Faq.php" hash="c1de26076458c63a79e5f34a92645584"/></dir><dir name="Helper"><file name="Data.php" hash="ee9917a28903453cdd922cce727a7819"/></dir><dir name="Model"><file name="Category.php" hash="62ef60728f824532dedff3c222590061"/><file name="Faq.php" hash="b73c1a6bd6775fc3f12c9ee155bcefaf"/><dir name="Mysql4"><dir name="Category"><file name="Collection.php" hash="abce8ddfec3a17d57f60ff0d02df47a6"/></dir><file name="Category.php" hash="b8bcb6c951b20c4a4faeb1d3da1bb1b8"/><dir name="Faq"><file name="Collection.php" hash="372e0216a53b9f55ddbafad913d14955"/></dir><file name="Faq.php" hash="fe41ea178b89ec5f97b4a00c98ba5c3c"/></dir><file name="Status.php" hash="5cccf266fdc80fb87fee95531105ae43"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="CategoryController.php" hash="db86169b1fd353e2df319c973a2409ff"/><file name="FaqController.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>DCKAP_Faq</name>
|
4 |
+
<version>1.0.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>FAQ - Ask Questions used to manage the Frequently Asked Questions from magento back end and also user can ask their own questions from front end.</summary>
|
10 |
<description>FAQ - Ask Questions used to manage the Frequently Asked Questions from magento back end and also user can ask their own questions from front end.once user asked the questions, it will be reviewed by admin and update to FAQ section.</description>
|
11 |
+
<notes>Minor Bug Fixes</notes>
|
12 |
<authors><author><name>DCKAP</name><user>DCKAP</user><email>extensions@dckap.com</email></author></authors>
|
13 |
+
<date>2016-02-22</date>
|
14 |
+
<time>07:20:04</time>
|
15 |
+
<contents><target name="mageetc"><dir name="modules"><file name="DCKAP_Faq.xml" hash="5d954da45ed79e211b46b2043e69e5b7"/></dir></target><target name="magecommunity"><dir name="DCKAP"><dir name="Faq"><dir name="Block"><dir name="Adminhtml"><dir name="Category"><dir name="Edit"><file name="Form.php" hash="075bbc432545742be91055ec06c3f326"/><dir name="Tab"><file name="Form.php" hash="176ce1d61fcada0a21f57373b5928529"/></dir><file name="Tabs.php" hash="a59f6b8441bd9e72826ff82137e3dbb7"/></dir><file name="Edit.php" hash="c6a1aa50dcc80776d39331606f98c1a5"/><file name="Grid.php" hash="6d7a40f31faec6f7fb93fe5abeccabe0"/></dir><file name="Category.php" hash="7ac2172b768e5ce22a81ecf1b164063c"/><dir name="Faq"><dir name="Edit"><file name="Form.php" hash="1473c5c3684a3b7eec8a66e24e303aab"/><dir name="Tab"><file name="Form.php" hash="034fa5a31e791b8d9b0c879dec93a9db"/></dir><file name="Tabs.php" hash="629b9452bda705dcf62358126074be3e"/></dir><file name="Edit.php" hash="a40d158d72f67a430318877d55592333"/><file name="Grid.php" hash="96d89cd8b02b7ad12d628ef67c5f97d1"/></dir><file name="Faq.php" hash="2e67c8f3d51bcc1b50d87fc0383c26d0"/></dir><file name="Faq.php" hash="c1de26076458c63a79e5f34a92645584"/></dir><dir name="Helper"><file name="Data.php" hash="ee9917a28903453cdd922cce727a7819"/></dir><dir name="Model"><file name="Category.php" hash="62ef60728f824532dedff3c222590061"/><file name="Faq.php" hash="b73c1a6bd6775fc3f12c9ee155bcefaf"/><dir name="Mysql4"><dir name="Category"><file name="Collection.php" hash="abce8ddfec3a17d57f60ff0d02df47a6"/></dir><file name="Category.php" hash="b8bcb6c951b20c4a4faeb1d3da1bb1b8"/><dir name="Faq"><file name="Collection.php" hash="372e0216a53b9f55ddbafad913d14955"/></dir><file name="Faq.php" hash="fe41ea178b89ec5f97b4a00c98ba5c3c"/></dir><file name="Status.php" hash="5cccf266fdc80fb87fee95531105ae43"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="CategoryController.php" hash="db86169b1fd353e2df319c973a2409ff"/><file name="FaqController.php" hash="cc1a6adfd4390b6c995e2cf0d0970915"/><file name="FaqController.php~" hash="fea0763b5e273f6cbb3ae11ad37c54d0"/></dir><file name="IndexController.php" hash="3c1c21674f63dad2ed6a03efe5f78b96"/></dir><dir name="etc"><file name="config.xml" hash="a5d41c3f03586cabd993ba2a7a5610f0"/><file name="system.xml" hash="7a9306988da7b26d577343fefc3e19aa"/></dir><dir name="sql"><dir name="dckap_faq_setup"><file name="mysql4-install-0.1.0.php" hash="cbc4d9aeded73160bb5740ea4e9cb060"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="faq.xml" hash="370ac6cd70ddce6ef60de1f1eedd802e"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="faq.xml" hash="9003023ed691bd83c203172b3b4c7585"/></dir><dir name="template"><dir name="faq"><file name="faq.phtml" hash="de8ef7f2e840ed163bf7a8b5d81cfad6"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="faq"><dir name="css"><file name="dckap_faq.css" hash="5b0ad7ef5f6e9e1adefbd4dcffb77261"/></dir><dir name="images"><file name="down.png" hash="67b2ce8412797c81aa1233f7ec0fbf82"/><file name="faq-logo.jpg" hash="ee323cb9d91166da3f6984f761befa91"/><file name="loading.gif" hash="365d3e659634df5d5289f14e1855e714"/><file name="search.png" hash="3b5540ee0c7010b840e5514716f23114"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><file name="faq_notification.html" hash="41298c96481dce15c81e8e57b3f33aec"/></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|