Advertisement:

Author Topic: Recaptcha plugin is not appearing in proper shape.  (Read 5427 times)

aide2001

  • Guest
Re: Recaptcha plugin is not appearing in proper shape.
« Reply #15 on: September 17, 2014, 12:23:44 am »
@design there's no need for holiday's! hehehe
don't know whether @Sinto001 has sorted it as no reply back yet

ColdWabmaster

  • Full Member
  • ***
  • Posts: 151
Re: Recaptcha plugin is not appearing in proper shape.
« Reply #16 on: September 18, 2014, 08:51:34 am »
No need I intended to buy the sofie theme from mb-theme.com . I think that could fix this problem .. :-*

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: Recaptcha plugin is not appearing in proper shape.
« Reply #17 on: September 18, 2014, 08:21:07 pm »
good choice - the best support!

ColdWabmaster

  • Full Member
  • ***
  • Posts: 151
Re: Recaptcha plugin is not appearing in proper shape.
« Reply #18 on: November 12, 2014, 04:26:35 pm »
where in the site is your recaptcha being used.
so for arguments sake, if its in register.php change your code to something like this

<script type="text/javascript">
 var RecaptchaOptions = {
    theme : 'clean'
 };
</script>
<?php osc_show_recaptcha(); ?>
Then it should sort it, well it did for me. You can use different theme than 'clean' its just looks sooooo much better than the colour ones!

The above script sure enabled clean Recaptcha in the user-register.php and contact.php of bender theme ... but they are not responsive to mobile screens any remedy on this problem ...I will greatly appreciate it .. ???

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers

ColdWabmaster

  • Full Member
  • ***
  • Posts: 151
Re: Recaptcha plugin is not appearing in proper shape.
« Reply #20 on: November 12, 2014, 10:05:12 pm »
I like to stick with google captcha

aide2001

  • Guest
Re: Recaptcha plugin is not appearing in proper shape.
« Reply #21 on: November 13, 2014, 06:11:26 pm »
leave that with me, and I will see what I can do  8)

ColdWabmaster

  • Full Member
  • ***
  • Posts: 151
Re: Recaptcha plugin is not appearing in proper shape.
« Reply #22 on: November 13, 2014, 06:14:29 pm »
leave that with me, and I will see what I can do  8)

Your code worked well for a while but after that it showed error as listed in this post
http://forums.osclass.org/bender/warning-cannot-modify-header-information/msg110345/#msg110345

I think putting script directly into the php files showed this error..

aide2001

  • Guest
Re: Recaptcha plugin is not appearing in proper shape.
« Reply #23 on: November 13, 2014, 07:46:10 pm »
the script should really be put after the echo of footer for it to work i think

ColdWabmaster

  • Full Member
  • ***
  • Posts: 151
Re: Recaptcha plugin is not appearing in proper shape.
« Reply #24 on: November 13, 2014, 08:42:55 pm »
They are not responsive than default bender recaptcha thats the problem..

aide2001

  • Guest
Re: Recaptcha plugin is not appearing in proper shape.
« Reply #25 on: November 13, 2014, 09:00:22 pm »

ColdWabmaster

  • Full Member
  • ***
  • Posts: 151
Re: Recaptcha plugin is not appearing in proper shape.
« Reply #26 on: November 13, 2014, 09:05:54 pm »
How do I implement it on Osclass website ..???

aide2001

  • Guest
Re: Recaptcha plugin is not appearing in proper shape.
« Reply #27 on: November 13, 2014, 09:14:46 pm »
it should already be implented, so all you need to do is 2 things
first in say register.php put this
<?php osc_run_hook('user_register_form'); ?>
<script type="text/javascript">
 var RecaptchaOptions = {
    theme : 'custom',
    custom_theme_widget: 'responsive_recaptcha'
 };
 </script>
<div id="responsive_recaptcha" style="display:none">

       <div id="recaptcha_image"></div>
       <div class="recaptcha_only_if_incorrect_sol" style="color:red">Incorrect please try again</div>

      <label class="solution">
        <span class="recaptcha_only_if_image">Type the text:</span>
        <span class="recaptcha_only_if_audio">Enter the numbers you hear:</span>

        <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" />
      </label>
      <div class="options">
        <a href="javascript:Recaptcha.reload()" id="icon-reload">Get another CAPTCHA</a>
        <a class="recaptcha_only_if_image" href="javascript:Recaptcha.switch_type('audio')" id="icon-audio">Get an audio CAPTCHA</a>
        <a class="recaptcha_only_if_audio" href="javascript:Recaptcha.switch_type('image')" id="icon-image">Get an image CAPTCHA</a>
        <a href="javascript:Recaptcha.showhelp()" id="icon-help">Help</a>
      </div>
    </div>

<?php osc_show_recaptcha(); ?>

you might already have run hook register so you may find this easier

then upload the responsive_recaptcha.css somewhere in your files and at the bottom of say register.php point a src to it like
<link rel="stylesheet" href="https://www.YOURSITE/css/responsive_recaptcha.css">
AND AWAY YOU GO  8)


ColdWabmaster

  • Full Member
  • ***
  • Posts: 151
Re: Recaptcha plugin is not appearing in proper shape.
« Reply #28 on: November 13, 2014, 09:33:08 pm »
it should already be implented, so all you need to do is 2 things
first in say register.php put this
<?php osc_run_hook('user_register_form'); ?>
<script type="text/javascript">
 var RecaptchaOptions = {
    theme : 'custom',
    custom_theme_widget: 'responsive_recaptcha'
 };
 </script>
<div id="responsive_recaptcha" style="display:none">

       <div id="recaptcha_image"></div>
       <div class="recaptcha_only_if_incorrect_sol" style="color:red">Incorrect please try again</div>

      <label class="solution">
        <span class="recaptcha_only_if_image">Type the text:</span>
        <span class="recaptcha_only_if_audio">Enter the numbers you hear:</span>

        <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" />
      </label>
      <div class="options">
        <a href="javascript:Recaptcha.reload()" id="icon-reload">Get another CAPTCHA</a>
        <a class="recaptcha_only_if_image" href="javascript:Recaptcha.switch_type('audio')" id="icon-audio">Get an audio CAPTCHA</a>
        <a class="recaptcha_only_if_audio" href="javascript:Recaptcha.switch_type('image')" id="icon-image">Get an image CAPTCHA</a>
        <a href="javascript:Recaptcha.showhelp()" id="icon-help">Help</a>
      </div>
    </div>

<?php osc_show_recaptcha(); ?>

I have to put this code in the primary register.php or I have to put it in the theme register.php like user-register.php .. ???

aide2001

  • Guest
Re: Recaptcha plugin is not appearing in proper shape.
« Reply #29 on: November 13, 2014, 10:13:10 pm »
in your theme dude  ;)
thats what you need to change