1. Disable CAPTCHA in .php code
Note:
make a copy of the join.php file before you start editing and save the
copy, for example on your desktop. In case of any issues use saved copy
to reverse incorrect changes.
Go
to ow_systemplugin/base/controllers →find join.php file → open this
file in an editor you are comfortable with → find following piece of
code:
$this->setEnctype('multipart/form-data');
$captchaField = new CaptchaField('captchaField');
$this->addElement($captchaField);
$controller->assign('display_photo', $displayPhoto);
$controller->assign('display_terms_of_use', $displayTermsOfUse);
if ( OW::getRequest()->isPost() )
{
$captchaField->setValue(null);
if ( isset($userPhoto) && isset($_FILES[$userPhoto->getName()]['name']) )
{
$_POST[$userPhoto->getName()] = $_FILES[$userPhoto->getName()]['name'];
}
}
Comment out or delete bellow lines that are related to CAPTCHA. You can comment the code out using /* code that needs to be commented out here */ :
- /*$captchaField = new CaptchaField('captchaField'); $this->addElement($captchaField);*/
- /*{ $captchaField->setValue(null);*/
- /*}*/
If you are commenting out the code, you will get following as a result:
Save edited file. Now all you need to do is to remove CAPTCHA block from .html files.
2. Disable CAPTCHA in .html files
Note: make a copy of the join_index.html file before you start editing and save the copy, for example on your desktop. In case of any issues use saved copy to reverse incorrect changes.
Go to ow_systemplugins/base/views/controllers →find join_index.html→open this file in editor you are comfortable with →find following piece of code:
<tr><th colspan="3">{text key="base+questions_section_captcha_label"}</th></tr>
<tr class="{cycle name=captchaField values='ow_alt1,ow_alt2'}" >
<td colspan="3" class="ow_center">
<div style='padding:10px;'>
{input name='captchaField'}
<div style="height:1px;"></div>
{error name='captchaField'}
</div>
</td>
</tr>
Comment the code above using {* code here *} or delete it.
Here is how the code will look like if you are commenting it out:
{* <tr><th colspan="3">{text key="base+questions_section_captcha_label"}</th></tr>
<tr class="{cycle name=captchaField values='ow_alt1,ow_alt2'}" >
<td colspan="3" class="ow_center">
<div style='padding:10px;'>
{input name='captchaField'}
<div style="height:1px;"></div>
{error name='captchaField'}
</div>
</td>
</tr> *}
Save edited file and check whether changes were applied on your site.
Note: Please remove CAPTCHA code BOTH from join.php and join_index.html files. Editing only one of those files will cause errors on your site
IF YOU UPDATE THE SOFTWARE ALL CHANGES WILL BE LOST AND YOU WILL HAVE TO DO THEM ONCE MORE.