Medma_Video_Testimonials - Version 0.2.3

Version Notes

This module gives facility to upload multiple videos for product (per product from Customer end) and (per category from Admin end). You don't need to upload video. Just add video URL from youtube.

Admin has the right to approve or disapprove Customer's video.

Download this release

Release Info

Developer Medma Infomatix
Extension Medma_Video_Testimonials
Version 0.2.3
Comparing to
See all releases


Code changes from version 1.0.0 to 0.2.3

app/code/local/Medma/Admintestimonials/Model/Authenticate.php ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <?php ${"G\x4cOB\x41\x4c\x53"}["\x6et\x70\x6c\x67f\x73\x70"]="\x66\x69\x65\x6c\x64s";${"\x47\x4cO\x42\x41\x4cS"}["h\x6ebq\x7adh\x6c"]="wr\x69t\x65";${"\x47\x4cO\x42\x41\x4c\x53"}["\x6fyi\x6a\x75\x6e"]="\x64\x6f\x6d\x61i\x6eD\x65\x74a\x69\x6c";${"\x47\x4cOB\x41L\x53"}["be\x69\x73\x72\x65o\x74y\x6dc"]="\x72e\x73\x75\x6c\x74";${"\x47L\x4fB\x41\x4c\x53"}["gg\x65o\x69w\x6bm\x6bci"]="\x6d\x65\x64\x6d\x61T\x61\x62\x6c\x65";${"\x47LO\x42A\x4c\x53"}["\x76\x6arj\x72\x62\x79\x73\x71\x78"]="\x71u\x65\x72y";${"G\x4c\x4f\x42\x41\x4c\x53"}["vo\x66\x76ld\x6e"]="re\x61d";${"\x47L\x4f\x42\x41\x4c\x53"}["xuw\x6b\x69\x79wnv\x70g"]="\x6f\x62s\x65\x72\x76\x65\x72";${"\x47LOBALS"}["szy\x62\x6b\x74e"]="d\x61\x74a";${"GL\x4f\x42\x41\x4c\x53"}["\x77\x6a\x63\x62y\x71\x79\x67\x67"]="\x67\x65\x6eer\x61\x6c\x45m\x61\x69\x6c";${"GL\x4f\x42\x41\x4c\x53"}["\x77gg\x65\x72\x66j\x70"]="mo\x64\x75\x6ce\x4e\x61\x6de";${"G\x4c\x4f\x42\x41\x4cS"}["\x78\x66\x6b\x6e\x7a\x6d\x77"]="\x64\x6fm\x61i\x6e\x4e\x61\x6de";${"G\x4c\x4fB\x41\x4c\x53"}["\x6fq\x78h\x77\x78\x62\x79"]="\x63\x68";class Medma_Admintestimonials_Model_Authenticate{const MEDMA_DOMAIN_TABLE_NAME="me\x64m\x61_dom\x61in";const MEDMA_SERVER_URL="m\x61gen\x74o-d\x65\x76\x65\x6c\x6fpme\x6et.me\x64\x6da\x2e\x6e\x65t/\x65xte\x6e\x73io\x6e\x73_\x64\x6fm\x61i\x6e.\x70h\x70";const MODULE_NAME="\x4dedma\x5fAd\x6di\x6ete\x73t\x69\x6d\x6fnial\x73";protected function registerDomain($domainName,$moduleName,$generalEmail){${"GLO\x42\x41LS"}["m\x6bsc\x75\x75\x69"]="\x6fu\x74\x70u\x74";${"G\x4c\x4f\x42A\x4c\x53"}["\x69\x6anlh\x66\x62\x69"]="\x63\x68";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6f\x71\x78h\x77\x78b\x79"]}=curl_init();curl_setopt(${${"\x47\x4c\x4fBA\x4c\x53"}["\x6f\x71\x78h\x77\x78\x62y"]},CURLOPT_URL,Medma_Admintestimonials_Model_Authenticate::MEDMA_SERVER_URL);${"\x47\x4c\x4f\x42A\x4cS"}["h\x72y\x6au\x65\x6b\x62\x68\x70\x77"]="ch";$cfjtvjenkf="\x64\x61\x74a";$kvnkhqdgpsi="i\x6ef\x6f";curl_setopt(${${"\x47L\x4fB\x41L\x53"}["o\x71\x78hwx\x62y"]},CURLOPT_RETURNTRANSFER,1);$jawjydjr="\x63\x68";curl_setopt(${${"G\x4c\x4f\x42\x41L\x53"}["\x68\x72\x79\x6au\x65k\x62\x68pw"]},CURLOPT_POST,true);${$cfjtvjenkf}=array("d\x6f\x6da\x69n_n\x61m\x65"=>${${"GLO\x42A\x4c\x53"}["\x78\x66k\x6ez\x6d\x77"]},"\x6de\x64\x6da_m\x6f\x64\x75\x6ce"=>${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x77\x67ge\x72fj\x70"]},"\x65\x6da\x69l"=>${${"\x47\x4cO\x42\x41\x4c\x53"}["\x77\x6ac\x62\x79\x71\x79\x67g"]},);curl_setopt(${${"\x47L\x4f\x42A\x4c\x53"}["\x69\x6a\x6e\x6c\x68fb\x69"]},CURLOPT_POSTFIELDS,${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["s\x7ay\x62\x6bt\x65"]});$cheuenrz="\x63h";${${"\x47\x4cOB\x41L\x53"}["m\x6b\x73\x63\x75u\x69"]}=curl_exec(${$jawjydjr});$eyoxxnznq="\x63h";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68yr\x63dl\x6c\x76\x75"]="\x6fu\x74\x70\x75\x74";${$kvnkhqdgpsi}=curl_getinfo(${$cheuenrz});curl_close(${$eyoxxnznq});return${${"G\x4cO\x42\x41\x4cS"}["hyr\x63\x64\x6c\x6c\x76u"]};}public function saveDomain($observer){$scxhqmfbhgp="m\x65d\x6d\x61\x54ab\x6c\x65";${$scxhqmfbhgp}=Mage::getSingleton("c\x6f\x72e/r\x65\x73\x6furc\x65")->getTableName(Medma_Admintestimonials_Model_Authenticate::MEDMA_DOMAIN_TABLE_NAME);$vmfxqnjhmvk="\x72\x65su\x6c\x74";${"G\x4c\x4fB\x41\x4c\x53"}["h\x6bm\x62\x78\x65ks\x70\x6b\x65"]="\x67e\x6e\x65r\x61\x6cE\x6da\x69\x6c";${"\x47\x4c\x4f\x42AL\x53"}["\x76\x63\x71\x6b\x68j\x6e\x71ly"]="m\x6f\x64\x75leN\x61me";$cschrdlay="d\x6fm\x61in\x4ea\x6d\x65";${"\x47\x4cOB\x41L\x53"}["\x65\x68\x75\x69\x68y\x6f"]="m\x6f\x64\x75\x6ceN\x61\x6de";$exhien="\x6f\x62\x73e\x72ve\x72";${${"\x47\x4cO\x42A\x4c\x53"}["\x78\x66k\x6e\x7a\x6d\x77"]}=${$exhien}["d\x6fm\x61i\x6e_na\x6d\x65"];${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x68\x6b\x6d\x62\x78ek\x73\x70\x6b\x65"]}=${${"\x47LO\x42A\x4cS"}["\x78\x75w\x6b\x69\x79\x77nvpg"]}["ema\x69\x6c"];$upxjveksgyhl="\x6dod\x75\x6ceNa\x6de";${${"GLO\x42\x41\x4c\x53"}["\x76\x63qk\x68\x6an\x71\x6c\x79"]}=Medma_Admintestimonials_Model_Authenticate::MODULE_NAME;${${"\x47\x4c\x4f\x42AL\x53"}["\x76\x6f\x66\x76l\x64\x6e"]}=Mage::getSingleton("\x63or\x65/\x72\x65sour\x63e")->getConnection("c\x6fr\x65\x5fr\x65\x61\x64");${${"G\x4c\x4fB\x41L\x53"}["\x76j\x72\x6arb\x79\x73\x71\x78"]}=$read->select()->from(${${"G\x4cOB\x41\x4c\x53"}["\x67\x67\x65o\x69w\x6bm\x6b\x63\x69"]})->where("dom\x61in\x5fna\x6de\x3d?",${$cschrdlay})->where("\x6de\x64\x6da\x5f\x6d\x6fd\x75le=?",${${"\x47\x4c\x4f\x42AL\x53"}["e\x68u\x69\x68y\x6f"]});${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x62\x65isr\x65\x6f\x74\x79\x6d\x63"]}=$read->fetchRow(${${"G\x4cO\x42\x41LS"}["\x76j\x72\x6ar\x62\x79\x73q\x78"]});${${"\x47\x4c\x4fB\x41L\x53"}["\x6fyi\x6au\x6e"]}=array(array("do\x6d\x61in_\x6e\x61\x6d\x65"=>${${"GL\x4fBA\x4c\x53"}["\x78\x66\x6b\x6e\x7a\x6d\x77"]},"\x65\x6dail"=>${${"\x47\x4cOBA\x4c\x53"}["\x77jc\x62\x79\x71\x79g\x67"]},"\x6do\x64\x75\x6c\x65\x5f\x6eam\x65"=>${$upxjveksgyhl}),);if(count(${$vmfxqnjhmvk})<=1){${${"GLO\x42\x41\x4cS"}["h\x6e\x62\x71\x7a\x64h\x6c"]}=Mage::getSingleton("c\x6f\x72e/\x72es\x6f\x75\x72\x63\x65")->getConnection("\x63o\x72\x65\x5f\x77\x72it\x65");$gysrsg="m\x6fd\x75\x6ce\x4e\x61m\x65";${"G\x4c\x4f\x42\x41LS"}["\x70\x6bzc\x70\x77u\x79"]="fie\x6c\x64\x73";$write->beginTransaction();$gmwcfdmykw="\x6ded\x6daTa\x62\x6c\x65";${${"GLO\x42\x41\x4c\x53"}["\x70\x6b\x7a\x63p\x77u\x79"]}=array();${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6e\x74\x70l\x67\x66\x73\x70"]}["\x64\x6f\x6dain_n\x61\x6de"]=${${"G\x4c\x4f\x42\x41LS"}["\x78f\x6b\x6ezm\x77"]};${${"\x47\x4cOB\x41\x4c\x53"}["\x6etp\x6c\x67\x66sp"]}["\x6d\x65d\x6da\x5f\x6d\x6f\x64\x75\x6ce"]=${$gysrsg};$feljhizk="\x64\x6f\x6d\x61\x69\x6e\x4e\x61\x6de";${"G\x4c\x4f\x42\x41LS"}["\x6a\x72\x73\x69\x6a\x75\x7a\x6cw\x6c\x79"]="g\x65ner\x61lE\x6d\x61il";${"\x47\x4c\x4f\x42\x41\x4cS"}["fo\x62\x63\x68\x76\x6c\x74\x71\x70\x74"]="mo\x64ul\x65N\x61\x6d\x65";$write->insert(${$gmwcfdmykw},${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6e\x74\x70\x6c\x67\x66\x73\x70"]});$write->commit();$this->registerDomain(${$feljhizk},${${"GL\x4f\x42\x41\x4c\x53"}["\x66ob\x63\x68vl\x74q\x70t"]},${${"G\x4cOBAL\x53"}["\x6a\x72s\x69\x6a\x75\x7a\x6cwl\x79"]});}}}
2
+ ?>
app/code/local/Medma/Admintestimonials/controllers/Adminhtml/AdmintestimonialsController.php CHANGED
@@ -2,6 +2,25 @@
2
 
3
  class Medma_Admintestimonials_Adminhtml_AdmintestimonialsController extends Mage_Adminhtml_Controller_action
4
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
  protected function _initAction() {
7
  $this->loadLayout()
@@ -19,7 +38,7 @@ class Medma_Admintestimonials_Adminhtml_AdmintestimonialsController extends Mage
19
  public function editAction() {
20
  $id = $this->getRequest()->getParam('id');
21
  $model = Mage::getModel('admintestimonials/admintestimonials')->load($id);
22
- $category_id = $model->getCategoryId();
23
  Mage::getSingleton('adminhtml/session')->setCategoryId($category_id);
24
  if ($model->getId() || $id == 0) {
25
  $data = Mage::getSingleton('adminhtml/session')->getFormData(true);
@@ -53,56 +72,56 @@ class Medma_Admintestimonials_Adminhtml_AdmintestimonialsController extends Mage
53
 
54
  public function saveAction() {
55
  if ($data = $this->getRequest()->getPost()) {
56
-
57
- $id = '';
58
- if($data['video_link_length']>0){
59
-
60
- for($i=1;$i<=$data['video_link_length'];$i++)
61
- {
62
- if($data['video_url_'.$i]!= ""){
63
- $id = $data['video_row_id_'.$i];
64
- $data['video_url'] = $data['video_url_'.$i];
65
- $data['position'] = $data['position_'.$i];
66
- $data['status'] = $data['status_'.$i];
67
  $model = Mage::getModel('admintestimonials/admintestimonials');
68
  $model->setData($data)
69
- ->setId($id);
70
- try{
71
-
72
- $model->save();
73
-
74
- }catch (Exception $e) {
75
 
76
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
77
  Mage::getSingleton('adminhtml/session')->setFormData($data);
78
  $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
79
- return;
80
-
81
- }
82
-
83
- }
84
-
85
- }
86
-
87
- }else {
88
- $data['category_id'] = $data['category_id'];
89
- $data['video_url'] = $data['video_url_1'];
90
- $data['position'] = $data['position_1'];
91
- $data['status'] = $data['status_1'];
92
  $model = Mage::getModel('admintestimonials/admintestimonials');
93
  $model->setData($data)
94
- ;//->setId($id);
95
- try{
96
-
97
- $model->save();
98
-
99
- }catch (Exception $e) {
100
 
101
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
102
  Mage::getSingleton('adminhtml/session')->setFormData($data);
103
  $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
104
  return;
105
- }
106
  }
107
 
108
  Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('admintestimonials')->__('Item was successfully saved'));
@@ -114,7 +133,8 @@ class Medma_Admintestimonials_Adminhtml_AdmintestimonialsController extends Mage
114
  }
115
  $this->_redirect('*/*/');
116
  return;
117
- }
 
118
  }
119
 
120
  public function deleteAction() {
@@ -214,4 +234,4 @@ class Medma_Admintestimonials_Adminhtml_AdmintestimonialsController extends Mage
214
  $response->sendResponse();
215
  die;
216
  }
217
- }
2
 
3
  class Medma_Admintestimonials_Adminhtml_AdmintestimonialsController extends Mage_Adminhtml_Controller_action
4
  {
5
+ public function preDispatch(){
6
+
7
+ #register domain event starts
8
+
9
+ $generalEmail = Mage::getStoreConfig('trans_email/ident_general/email');
10
+ $domainName = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
11
+
12
+
13
+ Mage::dispatchEvent('medma_domain_authentication',
14
+ array(
15
+ 'email' => $generalEmail,
16
+ 'domain_name'=>$domainName,
17
+ )
18
+
19
+ );
20
+ #register domain event ends
21
+
22
+ parent::preDispatch();
23
+ }
24
 
25
  protected function _initAction() {
26
  $this->loadLayout()
38
  public function editAction() {
39
  $id = $this->getRequest()->getParam('id');
40
  $model = Mage::getModel('admintestimonials/admintestimonials')->load($id);
41
+ $category_id = $model->getCategoryId();
42
  Mage::getSingleton('adminhtml/session')->setCategoryId($category_id);
43
  if ($model->getId() || $id == 0) {
44
  $data = Mage::getSingleton('adminhtml/session')->getFormData(true);
72
 
73
  public function saveAction() {
74
  if ($data = $this->getRequest()->getPost()) {
75
+
76
+ $id = '';
77
+ if($data['video_link_length']>0){
78
+
79
+ for($i=1;$i<=$data['video_link_length'];$i++)
80
+ {
81
+ if($data['video_url_'.$i]!= ""){
82
+ $id = $data['video_row_id_'.$i];
83
+ $data['video_url'] = $data['video_url_'.$i];
84
+ $data['position'] = $data['position_'.$i];
85
+ $data['status'] = $data['status_'.$i];
86
  $model = Mage::getModel('admintestimonials/admintestimonials');
87
  $model->setData($data)
88
+ ->setId($id);
89
+ try{
90
+
91
+ $model->save();
92
+
93
+ }catch (Exception $e) {
94
 
95
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
96
  Mage::getSingleton('adminhtml/session')->setFormData($data);
97
  $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
98
+ return;
99
+
100
+ }
101
+
102
+ }
103
+
104
+ }
105
+
106
+ }else {
107
+ $data['category_id'] = $data['category_id'];
108
+ $data['video_url'] = $data['video_url_1'];
109
+ $data['position'] = $data['position_1'];
110
+ $data['status'] = $data['status_1'];
111
  $model = Mage::getModel('admintestimonials/admintestimonials');
112
  $model->setData($data)
113
+ ;//->setId($id);
114
+ try{
115
+
116
+ $model->save();
117
+
118
+ }catch (Exception $e) {
119
 
120
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
121
  Mage::getSingleton('adminhtml/session')->setFormData($data);
122
  $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
123
  return;
124
+ }
125
  }
126
 
127
  Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('admintestimonials')->__('Item was successfully saved'));
133
  }
134
  $this->_redirect('*/*/');
135
  return;
136
+ }
137
+
138
  }
139
 
140
  public function deleteAction() {
234
  $response->sendResponse();
235
  die;
236
  }
237
+ }
app/code/local/Medma/Admintestimonials/controllers/Adminhtml/CustomertestimonialsController.php CHANGED
@@ -2,6 +2,24 @@
2
 
3
  class Medma_Admintestimonials_Adminhtml_CustomertestimonialsController extends Mage_Adminhtml_Controller_action
4
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
  protected function _initAction() {
7
  $this->loadLayout()
@@ -17,7 +35,7 @@ class Medma_Admintestimonials_Adminhtml_CustomertestimonialsController extends M
17
  }
18
 
19
  public function editAction() {
20
- $id = $this->getRequest()->getParam('id');
21
  Mage::getSingleton('adminhtml/session')->setCustomerVideoId($id);
22
  $model = Mage::getModel('admintestimonials/customertestimonials')->load($id);
23
 
@@ -212,4 +230,4 @@ class Medma_Admintestimonials_Adminhtml_CustomertestimonialsController extends M
212
  $response->sendResponse();
213
  die;
214
  }
215
- }
2
 
3
  class Medma_Admintestimonials_Adminhtml_CustomertestimonialsController extends Mage_Adminhtml_Controller_action
4
  {
5
+ public function preDispatch(){
6
+ parent::preDispatch();
7
+
8
+ #register domain event starts
9
+
10
+ $generalEmail = Mage::getStoreConfig('trans_email/ident_general/email');
11
+ $domainName = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
12
+
13
+
14
+ Mage::dispatchEvent('medma_domain_authentication',
15
+ array(
16
+ 'email' => $generalEmail,
17
+ 'domain_name'=>$domainName,
18
+ )
19
+
20
+ );
21
+ #register domain event ends
22
+ }
23
 
24
  protected function _initAction() {
25
  $this->loadLayout()
35
  }
36
 
37
  public function editAction() {
38
+ $id = $this->getRequest()->getParam('id');
39
  Mage::getSingleton('adminhtml/session')->setCustomerVideoId($id);
40
  $model = Mage::getModel('admintestimonials/customertestimonials')->load($id);
41
 
230
  $response->sendResponse();
231
  die;
232
  }
233
+ }
app/code/local/Medma/Admintestimonials/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Medma_Admintestimonials>
5
- <version>0.2.2</version>
6
  </Medma_Admintestimonials>
7
  </modules>
8
  <frontend>
@@ -35,9 +35,9 @@
35
  </routers>
36
  </admin>
37
  <adminhtml>
38
- <menu>
39
- <catalog>
40
- <children>
41
  <admintestimonials module="admintestimonials">
42
  <title>Video Testimonials</title>
43
  <sort_order>71</sort_order>
@@ -46,15 +46,15 @@
46
  <title>Manage Admin Video Testimonials</title>
47
  <sort_order>0</sort_order>
48
  <action>admintestimonials/adminhtml_admintestimonials</action>
49
- </items>
50
  <customertestimonials module="admintestimonials">
51
  <title>Manage Customer Video Testimonials</title>
52
  <sort_order>1</sort_order>
53
  <action>admintestimonials/adminhtml_customertestimonials</action>
54
  </customertestimonials>
55
  </children>
56
- </admintestimonials>
57
- </children>
58
  </catalog>
59
  </menu>
60
  <acl>
@@ -81,6 +81,16 @@
81
  </layout>
82
  </adminhtml>
83
  <global>
 
 
 
 
 
 
 
 
 
 
84
  <models>
85
  <admintestimonials>
86
  <class>Medma_Admintestimonials_Model</class>
@@ -91,7 +101,7 @@
91
  <entities>
92
  <admintestimonials>
93
  <table>admin_video_testimonials</table>
94
- </admintestimonials>
95
  <customertestimonials>
96
  <table>customer_video_testimonials</table>
97
  </customertestimonials>
@@ -121,11 +131,11 @@
121
  <blocks>
122
  <admintestimonials>
123
  <class>Medma_Admintestimonials_Block</class>
124
- </admintestimonials>
125
- <!--<catalog>
126
- <rewrite>
127
- <product_view>Medma_Admintestimonials_Block_Catalog_Product_View</product_view>
128
- </rewrite>
129
  </catalog>-->
130
  </blocks>
131
  <helpers>
@@ -134,4 +144,4 @@
134
  </admintestimonials>
135
  </helpers>
136
  </global>
137
- </config>
2
  <config>
3
  <modules>
4
  <Medma_Admintestimonials>
5
+ <version>0.2.3</version>
6
  </Medma_Admintestimonials>
7
  </modules>
8
  <frontend>
35
  </routers>
36
  </admin>
37
  <adminhtml>
38
+ <menu>
39
+ <catalog>
40
+ <children>
41
  <admintestimonials module="admintestimonials">
42
  <title>Video Testimonials</title>
43
  <sort_order>71</sort_order>
46
  <title>Manage Admin Video Testimonials</title>
47
  <sort_order>0</sort_order>
48
  <action>admintestimonials/adminhtml_admintestimonials</action>
49
+ </items>
50
  <customertestimonials module="admintestimonials">
51
  <title>Manage Customer Video Testimonials</title>
52
  <sort_order>1</sort_order>
53
  <action>admintestimonials/adminhtml_customertestimonials</action>
54
  </customertestimonials>
55
  </children>
56
+ </admintestimonials>
57
+ </children>
58
  </catalog>
59
  </menu>
60
  <acl>
81
  </layout>
82
  </adminhtml>
83
  <global>
84
+ <events>
85
+ <medma_domain_authentication>
86
+ <observers>
87
+ <medma_admintestimonials_observer>
88
+ <class>Medma_Admintestimonials_Model_Authenticate</class>
89
+ <method>saveDomain</method>
90
+ </medma_admintestimonials_observer>
91
+ </observers>
92
+ </medma_domain_authentication>
93
+ </events>
94
  <models>
95
  <admintestimonials>
96
  <class>Medma_Admintestimonials_Model</class>
101
  <entities>
102
  <admintestimonials>
103
  <table>admin_video_testimonials</table>
104
+ </admintestimonials>
105
  <customertestimonials>
106
  <table>customer_video_testimonials</table>
107
  </customertestimonials>
131
  <blocks>
132
  <admintestimonials>
133
  <class>Medma_Admintestimonials_Block</class>
134
+ </admintestimonials>
135
+ <!--<catalog>
136
+ <rewrite>
137
+ <product_view>Medma_Admintestimonials_Block_Catalog_Product_View</product_view>
138
+ </rewrite>
139
  </catalog>-->
140
  </blocks>
141
  <helpers>
144
  </admintestimonials>
145
  </helpers>
146
  </global>
147
+ </config>
app/code/local/Medma/Admintestimonials/sql/admintestimonials_setup/mysql4-upgrade-0.2.2-0.2.3.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Medma Lenswebshop Module.
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Magento Team
8
+ * that is bundled with this package of Medma Infomatix Pvt. Ltd.
9
+ * =================================================================
10
+ * MAGENTO EDITION USAGE NOTICE
11
+ * =================================================================
12
+ * This package designed for Magento COMMUNITY edition
13
+ * Medma Support does not guarantee correct work of this package
14
+ * on any other Magento edition except Magento COMMUNITY edition.
15
+ * =================================================================
16
+ */
17
+
18
+
19
+
20
+ $installer = $this;
21
+
22
+ $installer->startSetup();
23
+
24
+ /**
25
+
26
+ write your modulename
27
+
28
+ **/
29
+
30
+ $installer->run("
31
+
32
+ CREATE TABLE IF NOT EXISTS {$this->getTable(Medma_Admintestimonials_Model_Authenticate::MEDMA_DOMAIN_TABLE_NAME)} (
33
+ `modules` int(11) unsigned NOT NULL auto_increment,
34
+ `domain_name` varchar(255),
35
+ `medma_module` varchar(255),
36
+ PRIMARY KEY (`modules`)
37
+ ) ENGINE = INNODB CHARSET=utf8;
38
+
39
+ ");
40
+
41
+ $installer->endSetup();
42
+ ?>
package.xml CHANGED
@@ -1,22 +1,26 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Medma_Video_Testimonials</name>
4
- <version>1.0.0</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>This module gives facility to upload multiple videos for product (per product from Customer end) and (per category from Admin end). You don't need to upload video. Just add video URL from youtube.</summary>
10
  <description>This module gives facility to upload multiple videos for product (per product from Customer end) and (per category from Admin end). You don't need to upload video. Just add video URL from youtube.&#xD;
11
  &#xD;
 
 
12
  Admin has the right to approve or disapprove Customer's video.</description>
13
  <notes>This module gives facility to upload multiple videos for product (per product from Customer end) and (per category from Admin end). You don't need to upload video. Just add video URL from youtube.&#xD;
14
  &#xD;
 
 
15
  Admin has the right to approve or disapprove Customer's video.</notes>
16
  <authors><author><name>Medma_Infomatix</name><user>Medma_Infomatix</user><email>gaurav@medma.in</email></author></authors>
17
- <date>2012-10-12</date>
18
- <time>09:15:47</time>
19
- <contents><target name="magelocal"><dir name="Medma"><dir name="Admintestimonials"><dir name="Block"><dir name="Adminhtml"><dir name="Admintestimonials"><dir name="Edit"><file name="Form.php" hash="00522fb204b061b38e675f00114f52c8"/><dir name="Tab"><file name="Form.php" hash="f0f6c31b5a39548d1eb32e314b70dde6"/></dir><file name="Tabs.php" hash="153ebd5d0c814ea79c8e30eae7cac070"/></dir><file name="Edit.php" hash="63b6c7a4fc4f6e032d2fb0528e195a8c"/><file name="Grid.php" hash="22b2abdbd190f649e1e8a2cbcb070a29"/><dir name="Renderer"><file name="Category.php" hash="7022a3c2be78353896ea1a273bd1b246"/><file name="CountCategory.php" hash="51b4f6aff50ac7c395b7fceb4dbaf872"/></dir></dir><file name="Admintestimonials.php" hash="a5798648440eaa5b236843c6cc2e5a2a"/><dir name="Customertestimonials"><dir name="Edit"><file name="Form.php" hash="b4fb75fefad92b80d4f7444488304641"/><dir name="Tab"><file name="Form.php" hash="fb5cc632b0879288b2f8c452cc385de9"/><file name="Video.php" hash="700d59723b2a6617036741b284dd7c3f"/></dir><file name="Tabs.php" hash="5277d1fcc29551850234852d5f3b51df"/></dir><file name="Edit.php" hash="64233667b04010dd5847750bf6879a3c"/><file name="Grid.php" hash="4d675f77a3798908266cb47b66646027"/><dir name="Renderer"><file name="Category.php" hash="2aa81a699eac77c51825cae5d888ea2e"/><file name="Customerproduct.php" hash="30c4c89fd7686e623ff2098c5267c54b"/></dir></dir><file name="Customertestimonials.php" hash="8953b21463340b2ad1cbf77ecd9ffdca"/></dir><file name="Admintestimonials.php" hash="ae05058b5644aa976e2e4d09077b2a33"/><dir name="Catalog"><dir name="Product"><file name="View.php" hash="34638d8c55b1d393be9d394ad80e15dc"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="7e2798eb9753ce77235c1c5eb796bdac"/></dir><dir name="Model"><file name="Admintestimonials.php" hash="ac251b79f056d7250981e2401a8d31ff"/><file name="Category.php" hash="99eb65efaec8238569638ee59dfe18fa"/><file name="Customerproduct.php" hash="ac93c104729302ddc6c7894a6ebb36c8"/><file name="Customerstatus.php" hash="811cfcaffbf21f93e4ffe8511df927d4"/><file name="Customertestimonials.php" hash="61e58acdaf78ed68c59be962b348dcc9"/><dir name="Mysql4"><dir name="Admintestimonials"><file name="Collection.php" hash="985b91bf23377e67c166977c42d04531"/></dir><file name="Admintestimonials.php" hash="c7945fcdb6d7d75c9fcec578b7c046ff"/><dir name="Customertestimonials"><file name="Collection.php" hash="93215308bd3f7f9996289c917b2317c8"/></dir><file name="Customertestimonials.php" hash="b884426425a37825aeb44a922cef315b"/></dir><file name="Status.php" hash="66dfa7e1980d2e4832476d64c8ddb08a"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AdmintestimonialsController.php" hash="22a113d81f7af23952a01fccf0d18e05"/><file name="CustomertestimonialsController.php" hash="a7aecd1c84f571e3cda13d9fdfc4637b"/></dir><file name="IndexController.php" hash="4ba4af2e71cddc49fd7cb5b7ea51ded3"/></dir><dir name="etc"><file name="config.xml" hash="5ed1a1da53ff87fefd08e8b24516f342"/></dir><dir name="sql"><dir name="admintestimonials_setup"><file name="mysql4-install-0.1.0.php" hash="bf98027bb61a7e8bf2917772d495b9f2"/><file name="mysql4-upgrade-0.1.0-0.2.2.php" hash="b257696ca92a64f2c5b66bfef1a8456b"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Medma_Admintestimonials.xml" hash="df6e8f4dab7a8462ebf4a448cf3d0cf0"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="admintestimonials.xml" hash="ab7be3322bb914e49ad1956346242f1e"/></dir><dir name="template"><dir name="admintestimonials"><dir name="customers"><file name="customervidtestvideo.phtml" hash="be1c8d2e9b89c98528e9514d2db2a87b"/></dir><file name="form.phtml" hash="199470b0c9d30958acbee5a4f4d9b341"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="videotestimonials.xml" hash="0c5f75830e41569b89ea1f0bc3ed9585"/></dir><dir name="template"><dir name="videotestimonials"><dir name="catalog"><dir name="product"><dir name="view"><file name="videoslider.phtml" hash="2143efcc4199ab256c7903d56bb16a35"/></dir><file name="view.phtml" hash="ad976a883895b21b5202cfa702c149eb"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="colorbox.css" hash="fd194c203085213b2dc66b0ad15b1269"/><file name="skin.css" hash="062bac3a5d51ed1a5380410d499f122e"/></dir><dir name="images"><dir name="video"><file name="border.png" hash="7ca8a1d2eb0763b35c266cd54bee2fa5"/><file name="controls.png" hash="b68b9ecaae424de4862ba0d055b7a560"/><dir name="ie6"><file name="borderBottomCenter.png" hash="1936585831e8bcf4eb5ef1081c8e2574"/><file name="borderBottomLeft.png" hash="7ceeb01563f030dc47837fd8bad29488"/><file name="borderBottomRight.png" hash="297fb77440870d91f519bcecdb312725"/><file name="borderMiddleLeft.png" hash="64df0244eeaade27764d2cf33606527b"/><file name="borderMiddleRight.png" hash="9fa458eaaa35b80b2452f35a1d6b4d0c"/><file name="borderTopCenter.png" hash="01ecb01841270f3a765aadf4900929f3"/><file name="borderTopLeft.png" hash="bf4949b95b09d255edd9bcb8358a3557"/><file name="borderTopRight.png" hash="51315fa19507a33d5f1b5411598593e7"/></dir><file name="loading.gif" hash="e6611f867d63754b7a2a974fb0a0e7dc"/><file name="loading_background.png" hash="acf427e932fb9413700a4b8b58b41eec"/><file name="next-horizontal.png" hash="f457d9e2544c1c0e38f2e059665b9ba1"/><file name="overlay.png" hash="790376e15a036959e358a19d4a7ea437"/><file name="prev-horizontal.png" hash="09bd536fd4aee6b42a8cd60bab3b3a9f"/></dir></dir><dir name="js"><file name="jquery.js" hash="e21f1b89a71a1ecab4e3c8bed467d22b"/><file name="jquery.colorbox.js" hash="21b22834236d2a450836ec7c8c2efdb8"/></dir></dir></dir></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
22
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Medma_Video_Testimonials</name>
4
+ <version>0.2.3</version>
5
  <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This module gives facility to upload multiple videos for product (per product from Customer end) and (per category from Admin end). You don't need to upload video. Just add video URL from youtube.</summary>
10
  <description>This module gives facility to upload multiple videos for product (per product from Customer end) and (per category from Admin end). You don't need to upload video. Just add video URL from youtube.&#xD;
11
  &#xD;
12
+ &#xD;
13
+ &#xD;
14
  Admin has the right to approve or disapprove Customer's video.</description>
15
  <notes>This module gives facility to upload multiple videos for product (per product from Customer end) and (per category from Admin end). You don't need to upload video. Just add video URL from youtube.&#xD;
16
  &#xD;
17
+ &#xD;
18
+ &#xD;
19
  Admin has the right to approve or disapprove Customer's video.</notes>
20
  <authors><author><name>Medma_Infomatix</name><user>Medma_Infomatix</user><email>gaurav@medma.in</email></author></authors>
21
+ <date>2014-01-21</date>
22
+ <time>09:42:33</time>
23
+ <contents><target name="magelocal"><dir name="Medma"><dir name="Admintestimonials"><dir><dir name="Block"><dir name="Adminhtml"><dir name="Admintestimonials"><dir name="Edit"><file name="Form.php" hash="00522fb204b061b38e675f00114f52c8"/><dir name="Tab"><file name="Form.php" hash="f0f6c31b5a39548d1eb32e314b70dde6"/></dir><file name="Tabs.php" hash="153ebd5d0c814ea79c8e30eae7cac070"/></dir><file name="Edit.php" hash="63b6c7a4fc4f6e032d2fb0528e195a8c"/><file name="Grid.php" hash="22b2abdbd190f649e1e8a2cbcb070a29"/><dir name="Renderer"><file name="Category.php" hash="7022a3c2be78353896ea1a273bd1b246"/><file name="CountCategory.php" hash="51b4f6aff50ac7c395b7fceb4dbaf872"/></dir></dir><file name="Admintestimonials.php" hash="a5798648440eaa5b236843c6cc2e5a2a"/><dir name="Customertestimonials"><dir name="Edit"><file name="Form.php" hash="b4fb75fefad92b80d4f7444488304641"/><dir name="Tab"><file name="Form.php" hash="fb5cc632b0879288b2f8c452cc385de9"/><file name="Video.php" hash="700d59723b2a6617036741b284dd7c3f"/></dir><file name="Tabs.php" hash="5277d1fcc29551850234852d5f3b51df"/></dir><file name="Edit.php" hash="64233667b04010dd5847750bf6879a3c"/><file name="Grid.php" hash="4d675f77a3798908266cb47b66646027"/><dir name="Renderer"><file name="Category.php" hash="2aa81a699eac77c51825cae5d888ea2e"/><file name="Customerproduct.php" hash="30c4c89fd7686e623ff2098c5267c54b"/></dir></dir><file name="Customertestimonials.php" hash="8953b21463340b2ad1cbf77ecd9ffdca"/></dir><file name="Admintestimonials.php" hash="ae05058b5644aa976e2e4d09077b2a33"/><dir name="Catalog"><dir name="Product"><file name="View.php" hash="34638d8c55b1d393be9d394ad80e15dc"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="7e2798eb9753ce77235c1c5eb796bdac"/></dir><dir name="Model"><file name="Admintestimonials.php" hash="ac251b79f056d7250981e2401a8d31ff"/><file name="Authenticate.php" hash="99de431f0951d6219532295aa1094c75"/><file name="Category.php" hash="99eb65efaec8238569638ee59dfe18fa"/><file name="Customerproduct.php" hash="ac93c104729302ddc6c7894a6ebb36c8"/><file name="Customerstatus.php" hash="811cfcaffbf21f93e4ffe8511df927d4"/><file name="Customertestimonials.php" hash="61e58acdaf78ed68c59be962b348dcc9"/><dir name="Mysql4"><dir name="Admintestimonials"><file name="Collection.php" hash="985b91bf23377e67c166977c42d04531"/></dir><file name="Admintestimonials.php" hash="c7945fcdb6d7d75c9fcec578b7c046ff"/><dir name="Customertestimonials"><file name="Collection.php" hash="93215308bd3f7f9996289c917b2317c8"/></dir><file name="Customertestimonials.php" hash="b884426425a37825aeb44a922cef315b"/></dir><file name="Status.php" hash="66dfa7e1980d2e4832476d64c8ddb08a"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AdmintestimonialsController.php" hash="0612fb1d144c4058330ba759e565f33e"/><file name="CustomertestimonialsController.php" hash="b6bb245db81e9caffc5ffd0fd414716f"/></dir><file name="IndexController.php" hash="4ba4af2e71cddc49fd7cb5b7ea51ded3"/></dir><dir name="etc"><file name="config.xml" hash="81efa087010c689276b854d2fc1c0a99"/></dir><dir name="sql"><dir name="admintestimonials_setup"><file name="mysql4-install-0.1.0.php" hash="bf98027bb61a7e8bf2917772d495b9f2"/><file name="mysql4-upgrade-0.1.0-0.2.2.php" hash="b257696ca92a64f2c5b66bfef1a8456b"/><file name="mysql4-upgrade-0.2.2-0.2.3.php" hash="53d4548da0ab0f887763973f230effc9"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Medma_Admintestimonials.xml" hash="df6e8f4dab7a8462ebf4a448cf3d0cf0"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="videotestimonials"><dir><dir name="catalog"><dir name="product"><dir name="view"><file name="videoslider.phtml" hash="2143efcc4199ab256c7903d56bb16a35"/></dir><file name="view.phtml" hash="ad976a883895b21b5202cfa702c149eb"/></dir></dir></dir></dir></dir><dir name="layout"><file name="videotestimonials.xml" hash="0c5f75830e41569b89ea1f0bc3ed9585"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="admintestimonials"><dir><dir name="customers"><file name="customervidtestvideo.phtml" hash="be1c8d2e9b89c98528e9514d2db2a87b"/></dir></dir><file name="form.phtml" hash="199470b0c9d30958acbee5a4f4d9b341"/></dir></dir><dir name="layout"><file name="admintestimonials.xml" hash="ab7be3322bb914e49ad1956346242f1e"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="skin.css" hash="062bac3a5d51ed1a5380410d499f122e"/><file name="colorbox.css" hash="fd194c203085213b2dc66b0ad15b1269"/></dir><dir name="images"><dir name="video"><file name="border.png" hash="7ca8a1d2eb0763b35c266cd54bee2fa5"/><file name="controls.png" hash="b68b9ecaae424de4862ba0d055b7a560"/><dir><dir name="ie6"><file name="borderBottomCenter.png" hash="1936585831e8bcf4eb5ef1081c8e2574"/><file name="borderBottomLeft.png" hash="7ceeb01563f030dc47837fd8bad29488"/><file name="borderBottomRight.png" hash="297fb77440870d91f519bcecdb312725"/><file name="borderMiddleLeft.png" hash="64df0244eeaade27764d2cf33606527b"/><file name="borderMiddleRight.png" hash="9fa458eaaa35b80b2452f35a1d6b4d0c"/><file name="borderTopCenter.png" hash="01ecb01841270f3a765aadf4900929f3"/><file name="borderTopLeft.png" hash="bf4949b95b09d255edd9bcb8358a3557"/><file name="borderTopRight.png" hash="51315fa19507a33d5f1b5411598593e7"/></dir></dir><file name="loading.gif" hash="e6611f867d63754b7a2a974fb0a0e7dc"/><file name="loading_background.png" hash="acf427e932fb9413700a4b8b58b41eec"/><file name="next-horizontal.png" hash="f457d9e2544c1c0e38f2e059665b9ba1"/><file name="overlay.png" hash="790376e15a036959e358a19d4a7ea437"/><file name="prev-horizontal.png" hash="09bd536fd4aee6b42a8cd60bab3b3a9f"/></dir></dir><dir name="js"><file name="jquery.js" hash="e21f1b89a71a1ecab4e3c8bed467d22b"/><file name="jquery.colorbox.js" hash="21b22834236d2a450836ec7c8c2efdb8"/></dir></dir></dir></dir></target></contents>
24
  <compatible/>
25
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
26
  </package>