Author Topic: jez ReCaptcha Integrator breaks in Firefox  (Read 1102 times)

0 Members and 1 Guest are viewing this topic.

Offline garydev

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
jez ReCaptcha Integrator breaks in Firefox
« on: March 14, 2010, 06:28:09 PM »
Hello,
I'm using the jezReCaptcha Integrator for my site.

In IE Internet Explorer the Captcha works perfectly. In Firefox it provides no protection. If user skips entering the security image or enters it incorrectly the post ( Adsmanager Component - New Ad ) is allowed to proceed.

Any advice from anyone on how to address this?

Thanks in advance

Offline BDD

  • Global Moderator
  • Full Member
  • *****
  • Posts: 146
  • Karma: +0/-0
    • View Profile
Re: jez ReCaptcha Integrator breaks in Firefox
« Reply #1 on: March 15, 2010, 02:40:56 AM »
Have you enabled Auto Verify option in the plugin parameter?

If not, please try enabling it. Otherwise, you should implement manual captcha verify in your component using following code:

Code: [Select]
<?php
global $mainframe;
$mainframe->triggerEvent('onCaptchaConfirm');
?>

Offline garydev

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: jez ReCaptcha Integrator breaks in Firefox
« Reply #2 on: March 15, 2010, 07:49:32 AM »
Hi BDD,
Thank you for your time in answering my post. I have turned auto verify on and I have maunually integrated the code. This is the reason it works in IE 8. When opening in Firefox 3.5.8 the Captcha has no affect on the page.

I read something about the form being a child of a table. I was a bit confused by this with my code because the </table> comes before the integration.

Any help is appreciated. The Manual Integration Code is toward the bottome of the snippet.

Thank you.



Code: [Select]
<div class="adsmanager_search_box">
<div class="adsmanager_inner_box">
<div align="left">
<table>
<tr><td><?php echo ADSMANAGER_FORM_CATEGORY?></td>
<td><select name='category_choose' onchange="jumpmenu('parent',this)">
<option value="<?php echo sefRelToAbs("index.php?option=$option&amp;page=show_search&amp;catid=0&amp;Itemid=$itemid"); ?>" <?php if ($catid == 0) echo 'selected="selected"'?>><?php echo ADSMANAGER_MENU_ALL_ADS?></option>
<?php
 $link "index.php?option=$option&Itemid=$itemid&amp;page=show_search";
 adsmanager_html::selectCategories(0,"",$cats,$catid,1,$link,0); 
?>

</select></td></tr>
<form action="<?php echo sefRelToAbs("index.php");?>" method="get">
<input type="hidden" name="option" value="<?php echo $option?>" />
<input type="hidden" name="page" value="show_result" />
<?php 
foreach($fields_searchable as $fsearch) {
if (($catid == 0)||(strpos($fsearch->catsid",$catid,") !== false)||(strpos($fsearch->catsid",-1,") !== false))
{
echo "<tr><td>".adsmanager_html::getLangDefinition($fsearch->title)."</td><td>";
switch($fsearch->type)
{
case 'checkbox':
echo "<input class='inputbox' type='checkbox' name='$fsearch->title' value='1' />\n";
break;
case 'multicheckbox':
echo "<table class='cbMulti'>\n";
$k 0;
for ($i=$i $fsearch->rows;$i++)
{
echo "<tr>\n";
for ($j=$j $fsearch->cols;$j++)
{
$fieldvalue = @$field_values[$fsearch->fieldid][$k]->fieldvalue;
$fieldtitle = @$field_values[$fsearch->fieldid][$k]->fieldtitle;
if (isset($fieldtitle))
$fieldtitle=adsmanager_html::getLangDefinition($fieldtitle);
echo "<td>\n";
if (isset($field_values[$fsearch->fieldid][$k]->fieldtitle))
{
echo "<input class='inputbox' type='checkbox' name='".$fsearch->name."[]' value='$fieldvalue' />&nbsp;$fieldtitle&nbsp;\n";
}
echo "</td>\n";
$k++;
}
echo "</tr>\n";
}
echo "</table>\n";
break;

case 'radio':
case 'select':
echo "<select id='".$fsearch->name."' name='".$fsearch->name."'>\n";
echo "<option value='' >&nbsp;</option>\n";
if (isset($field_values[$fsearch->fieldid])) {
foreach($field_values[$fsearch->fieldid] as $v)
{
$ftitle adsmanager_html::getLangDefinition($v->fieldtitle);
echo "<option value='$v->fieldvalue' >$ftitle</option>\n";
}
}

echo "</select>\n";
break;

case 'multiselect':

echo "<select name=\"".$fsearch->name."[]\" multiple='multiple' size='$fsearch->size'>\n";
if (isset($field_values[$fsearch->fieldid])) {
foreach($field_values[$fsearch->fieldid] as $v)
{
$ftitle adsmanager_html::getLangDefinition($v->fieldtitle);
if ($field->required == 1)
$mosReq "mosReq='1'";

echo "<option value='$v->fieldvalue' >$ftitle</option>\n";
}
}

echo "</select>\n";
break;

case 'price':
echo "<select id='".$fsearch->name."' name='".$fsearch->name."'>\n";
echo "<option value='' >&nbsp;</option>\n";
if (isset($field_values[$fsearch->fieldid])) {
foreach($field_values[$fsearch->fieldid] as $v)
{
$ftitle adsmanager_html::getLangDefinition($v->fieldtitle);
echo "<option value='$v->fieldvalue' >$ftitle</option>\n";
}
}

echo "</select>\n";
break;

case 'textarea':
case 'number':
case 'emailaddress':
case 'url':
case 'text':
echo "<input name='".$fsearch->name."' id='".$fsearch->name."' maxlength='20' class='inputbox' type='text' size='20' />";
break;
}
echo "</td>";
}
}?>

</table></div>
           
            <?php
global $mainframe;
$mainframe->triggerEvent('onCaptchaDisplay');
?>

<input type="submit" value="<?php echo ADSMANAGER_SUBMIT_BUTTON?>" />

<input type="hidden" name="catid" value="<?php echo $catid;?>" />
<input type="hidden" name="Itemid" value="<?php echo $itemid;?>" />
</form>  
</div>
</div>

 

This is not an official Joomla! Site. The use of the words Joomla is intended to describe what the products are designed for and should not be considered an endorsement by the related Projects.