OutsourceOnline_Captcha - Version 1.0.9

Version Notes

This is a development version.Any valuable suggestions and help will be highly appreciated

Download this release

Release Info

Developer Magento Core Team
Extension OutsourceOnline_Captcha
Version 1.0.9
Comparing to
See all releases


Code changes from version 1.0.8 to 1.0.9

app/design/frontend/default/default/template/outsourceOnline/captcha/ajaxInsert.phtml CHANGED
@@ -42,12 +42,15 @@ $osolCaptchaLoadFromSSL = $_SERVER['SERVER_PORT']==443?true:false;
42
  onComplete: function(transport) {
43
  Element.hide('loadingmask');
44
 
45
- //alert(transport.responseText);
46
  if( transport.responseText == 'correct')
47
  {
48
- if(!billing)
 
49
  {
 
50
  formInst.submit();
 
51
  }
52
  else
53
  {
42
  onComplete: function(transport) {
43
  Element.hide('loadingmask');
44
 
45
+ //alert(transport.responseText);alert(document.getElementById("co-billing-form"));
46
  if( transport.responseText == 'correct')
47
  {
48
+ //alert(typeof billing);
49
+ if(typeof billing !='object')//!document.getElementById("co-billing-form"))//(!billing)
50
  {
51
+
52
  formInst.submit();
53
+
54
  }
55
  else
56
  {
app/design/frontend/default/default/template/outsourceOnline/captcha/onepage_billing.phtml CHANGED
@@ -119,7 +119,7 @@
119
 
120
  <?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
121
  <?php $_gender = $this->getLayout()->createBlock('customer/widget_gender') ?>
122
- <?php if ($_dob->isEnabled() || $_gender->isEnabled()): ?>
123
  <li class="fields">
124
  <?php if ($_dob->isEnabled()): ?>
125
  <div class="field">
@@ -159,9 +159,15 @@
159
 
160
 
161
  <?php
162
- if (Mage::getStoreConfig("OutsourceOnline_Captcha/captcha/customer")): ?>
163
- <?php echo $this->getChildHtml('captcha_ajax_part'); ?>
164
- <?php endif; ?>
 
 
 
 
 
 
165
 
166
 
167
  <?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
@@ -187,7 +193,7 @@
187
  <?php endif; ?>
188
  <div class="buttons-set" id="billing-buttons-container">
189
  <p class="required"><?php echo $this->__('* Required Fields') ?></p>
190
- <button type="button" title="<?php echo $this->__('Continue') ?>" class="button" onclick="checkOSOLCaptcha(billingForm);/*billing.save()*/"><span><span><?php echo $this->__('Continue') ?></span></span></button>
191
  <span class="please-wait" id="billing-please-wait" style="display:none;">
192
  <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Loading next step...') ?>" title="<?php echo $this->__('Loading next step...') ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
193
  </span>
119
 
120
  <?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
121
  <?php $_gender = $this->getLayout()->createBlock('customer/widget_gender') ?>
122
+ <?php if (isset($dob) && isset($gender) && ($_dob->isEnabled() || $_gender->isEnabled())): ?>
123
  <li class="fields">
124
  <?php if ($_dob->isEnabled()): ?>
125
  <div class="field">
159
 
160
 
161
  <?php
162
+ if( !(Mage::getStoreConfig("OutsourceOnline_Captcha/captcha/when_loggedin") && (Mage::getSingleton('customer/session')->isLoggedIn())) )
163
+ {
164
+
165
+ if (Mage::getStoreConfig("OutsourceOnline_Captcha/captcha/customer")): ?>
166
+ <?php echo $this->getChildHtml('captcha_ajax_part'); ?>
167
+ <?php endif;
168
+ }
169
+ ?>
170
+
171
 
172
 
173
  <?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
193
  <?php endif; ?>
194
  <div class="buttons-set" id="billing-buttons-container">
195
  <p class="required"><?php echo $this->__('* Required Fields') ?></p>
196
+ <button type="button" title="<?php echo $this->__('Continue') ?>" class="button" onclick="(typeof checkOSOLCaptcha == 'function')?checkOSOLCaptcha(billingForm):billing.save();"><span><span><?php echo $this->__('Continue') ?></span></span></button>
197
  <span class="please-wait" id="billing-please-wait" style="display:none;">
198
  <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Loading next step...') ?>" title="<?php echo $this->__('Loading next step...') ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
199
  </span>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>OutsourceOnline_Captcha</name>
4
- <version>1.0.8</version>
5
  <stability>stable</stability>
6
  <license>gpl</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>Captcha functionality for magento forms for registration,contactus,product review and send a friend .Simply install the module and check the aforementioned forms</description>
11
  <notes>This is a development version.Any valuable suggestions and help will be highly appreciated</notes>
12
  <authors><author><name>Sreekanth Dayanand</name><user>auto-converted</user><email>blogspot@outsource-online.net</email></author></authors>
13
- <date>2011-10-06</date>
14
- <time>18:58:20</time>
15
- <contents><target name="magelocale"><dir name="en_US"><file name="OutsourceOnline_Captcha.csv" hash="46c1c9105a99ef6a3e884381ba060fe9"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="OutsourceOnline_Captcha.xml" hash="11b7c7d447adedc9a06c1880ac7da9e2"/></dir><dir name="template"><dir name="outsourceOnline"><dir name="captcha"><file name="ajaxInsert.phtml" hash="585662ad9081013b8445ec5b7aad23f8"/><file name="captchaAjax.phtml" hash="5feefbfb1a1aaad28aaadd572dafbe74"/><file name="contacts.phtml" hash="acc889439f7f2375c3c55bfd55e7e05a"/><file name="form.phtml" hash="c6c74543a1859affe1c5051516e76da4"/><file name="onepage_billing.phtml" hash="872b53e6f488a23a714bd37535b8f728"/><file name="register.phtml" hash="9140614281ccfd7b8cbc238a34048d6b"/><file name="send.phtml" hash="81196f45080cdfec3741bcab351b92c8"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="OutsourceOnline_Captcha.xml" hash="7b700e1a3656005d4fc1b3f703a4269a"/></dir></target><target name="magecommunity"><dir name="OutsourceOnline"><dir name="Captcha"><dir name="Block"><dir name="Checkout"><dir name="Onepage"><file name="Billing.php" hash="d9610a7617bf208112283751282a5732"/></dir></dir><dir name="Review"><file name="Form.php" hash="d9039bc65bbf00e4e9a42e405b5864a9"/></dir></dir><dir name="controllers"><file name="AccountController.php" hash="7b6a5ed8fbb5fbb4f9f430b36f945c33"/><file name="AjaxController.php" hash="8b923b7ba0ee6736e79a438dbbffade7"/><file name="ContactsController.php" hash="5150818931bd7b3b517f0297af025979"/><file name="OnepageController.php" hash="60026a5dc29fb0f0d0bf09dec20807f7"/><file name="ProductController.php" hash="cc313c03c7bcc966cafa331474f2bd4f"/><file name="ReviewController.php" hash="b188272e196ac3213bc311e75de367d1"/></dir><dir name="etc"><file name="config.xml" hash="f0b13abb2dd1159aaddc908cff08ccce"/><file name="system.xml" hash="fb6311facb6411a522d885ffbb6cfd5f"/></dir><dir name="Helper"><dir name="osolCaptcha"><file name="adlibBT.png" hash="6a4ddf589628a9a16657532bd2f75a5c"/><file name="adlibBT.TTF" hash="4ff833d37c38398cd201b2550bf8ecb5"/></dir><file name="Data.php" hash="59b23c26640f4975f400322db9577cab"/></dir><dir name="Model"><dir name="Source"><file name="Captchaimage.php" hash="b49acab3a47cfa798aa16825f6417c82"/><file name="Captchalanguage.php" hash="89d9e8e16788d84c5ce8fcc2a9e07925"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>OutsourceOnline_Captcha</name>
4
+ <version>1.0.9</version>
5
  <stability>stable</stability>
6
  <license>gpl</license>
7
  <channel>community</channel>
10
  <description>Captcha functionality for magento forms for registration,contactus,product review and send a friend .Simply install the module and check the aforementioned forms</description>
11
  <notes>This is a development version.Any valuable suggestions and help will be highly appreciated</notes>
12
  <authors><author><name>Sreekanth Dayanand</name><user>auto-converted</user><email>blogspot@outsource-online.net</email></author></authors>
13
+ <date>2011-10-14</date>
14
+ <time>10:20:47</time>
15
+ <contents><target name="magelocale"><dir name="en_US"><file name="OutsourceOnline_Captcha.csv" hash="46c1c9105a99ef6a3e884381ba060fe9"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="OutsourceOnline_Captcha.xml" hash="11b7c7d447adedc9a06c1880ac7da9e2"/></dir><dir name="template"><dir name="outsourceOnline"><dir name="captcha"><file name="ajaxInsert.phtml" hash="eb81b88715c0c927e4ef8dd0f4e82c82"/><file name="captchaAjax.phtml" hash="5feefbfb1a1aaad28aaadd572dafbe74"/><file name="contacts.phtml" hash="acc889439f7f2375c3c55bfd55e7e05a"/><file name="form.phtml" hash="c6c74543a1859affe1c5051516e76da4"/><file name="onepage_billing.phtml" hash="2d54f1a6b377e949571762cf3ac5f749"/><file name="register.phtml" hash="9140614281ccfd7b8cbc238a34048d6b"/><file name="send.phtml" hash="81196f45080cdfec3741bcab351b92c8"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="OutsourceOnline_Captcha.xml" hash="7b700e1a3656005d4fc1b3f703a4269a"/></dir></target><target name="magecommunity"><dir name="OutsourceOnline"><dir name="Captcha"><dir name="Block"><dir name="Checkout"><dir name="Onepage"><file name="Billing.php" hash="d9610a7617bf208112283751282a5732"/></dir></dir><dir name="Review"><file name="Form.php" hash="d9039bc65bbf00e4e9a42e405b5864a9"/></dir></dir><dir name="controllers"><file name="AccountController.php" hash="7b6a5ed8fbb5fbb4f9f430b36f945c33"/><file name="AjaxController.php" hash="8b923b7ba0ee6736e79a438dbbffade7"/><file name="ContactsController.php" hash="5150818931bd7b3b517f0297af025979"/><file name="OnepageController.php" hash="60026a5dc29fb0f0d0bf09dec20807f7"/><file name="ProductController.php" hash="cc313c03c7bcc966cafa331474f2bd4f"/><file name="ReviewController.php" hash="b188272e196ac3213bc311e75de367d1"/></dir><dir name="etc"><file name="config.xml" hash="f0b13abb2dd1159aaddc908cff08ccce"/><file name="system.xml" hash="fb6311facb6411a522d885ffbb6cfd5f"/></dir><dir name="Helper"><dir name="osolCaptcha"><file name="adlibBT.png" hash="6a4ddf589628a9a16657532bd2f75a5c"/><file name="adlibBT.TTF" hash="4ff833d37c38398cd201b2550bf8ecb5"/></dir><file name="Data.php" hash="59b23c26640f4975f400322db9577cab"/></dir><dir name="Model"><dir name="Source"><file name="Captchaimage.php" hash="b49acab3a47cfa798aa16825f6417c82"/><file name="Captchalanguage.php" hash="89d9e8e16788d84c5ce8fcc2a9e07925"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>