Support Forums - Classified Ads Script Osclass
Osclass theme support => Zara Osclass Responsive Theme => Topic started by: Daniel PM on January 10, 2017, 07:22:59 PM
-
Hello MB Themes Support Crew, I have a problem because the Recaptcha form is showing in the old and new style in the contact seller form. In other forms, like suscribe or post add, Recaptcha works fine.
Please tell me what line of what php do I have to change, in order to just keep the new recaptcha. Thanks.
(https://s28.postimg.org/dyz36v7jh/errorrr.png)
-
@Daniel
Try this.
Go to item.php in theme folder.
Find:
<!-- ReCaptcha -->
<?php if( osc_recaptcha_public_key() ) { ?>
<script type="text/javascript">
var RecaptchaOptions = {
theme : 'custom',
custom_theme_widget: 'recaptcha_widget'
};
</script>
<div id="recaptcha_widget">
<div id="recaptcha_image"><img /></div>
<span class="recaptcha_only_if_image"><?php _e('Enter the words above','zara'); ?>:</span>
<input type="text" id="recaptcha_response_field" name="recaptcha_response_field" />
<div><a href="javascript:Recaptcha.showhelp()"><?php _e('Help', 'zara'); ?></a></div>
</div>
<?php } ?>
<?php osc_show_recaptcha(); ?>
Replace it with just:
<?php osc_show_recaptcha(); ?>
Let me know.
-
Hi, I did this change, now the form only shows the new recaptcha, but when I try to send a message and hit the 'i'm not a robot' the recaptcha just keeps loading, but it does not load the images to solve the puzzle. In 'create ad' and in 'create account' the recaptcha feature works fine, but not here. I even tried to remove the recaptcha, but after hitting 'send message' an error appears that 'the recaptcha is incorrect'. :-\
-
@Daniel PM
I can't help if recaptcha is not loading, that is not osclass stuff... But make sure you have no javascript errors on your site and console is empty.
-
If you enter my site, www.vendix.mx and click on any of the 2 test ads there, you can try it yourself:
Try opening 'contact seller' and see that recaptcha just don´t work. In the same ad, open 'send to a friend' and you can see that the recaptcha feature works perfectly in that form.
That only tells me that neither Google or recaptcha is wrong, what's wrong is that particular area, the 'contact seller' window.
I don't care if recaptcha does not show on that particular form, just tell me please how to avoid a 'recaptcha error' after sending a message even with recaptcha removed from that form. Thanks.
-
@Daniel PM
... that is funny that osclass does not allow you to use it on particular forms only.
It reports you 2 errors:
Uncaught Error: ReCAPTCHA placeholder element must be empty
Uncaught DOMException: Blocked a frame with origin "https://www.google.com" from accessing a cross-origin frame.
I will take a look on it tomorrow.
... to solve this issue quickly you can use nocaptcha recaptcha plugin that allows you to select which forms should be protected. It worked pretty nicely for me...
-
Thanks.
-
Hello guys,
I have updated theme to version 1.2.3 that fix this issue.
Thanks
-
Tell me what files are changed.
I do not want to change all the files.
-
style.css
item-send-friend.php
item.php
global.js
-
Many thanks
-
send me the modified files
[email protected]
In Market Version 1.2.0
http://prntscr.com/dunwgg
-
I bought on osclass market.
-
You need to download it from here, once it is validated.
-
Just I checked on site osclass.org
Your theme zara on 10/11/2016
pintskrin
http://prntscr.com/dv2dn3
tell me how to download the version 1.2.1
-
Once it is validated on market, you will be able to download it.
When? You need to ask osclass team.
-
Ok
sorry
thanks
-
Thanks for the update, frosticek. :P 8)
-
Welcome ;)
-
Hello,
I've got the same problem, I've bought the theme on the market and the latest version is still not available there...
Does any one has found a solution ? (I've tried to contact the osclass team but no answer yet...)
I've been trying to fix this the whole day...
Thank you in advance.
Guillaume
-
@gbouclet
It is required to change structure of this section and way how it is loaded to fix issue.
Done in latest version.