*

Dannad

  • *
  • 9 posts
[solved] recaptcha weird error
« on: March 18, 2019, 05:02:15 PM »
hi, i´m trying to solve this....

i dont wnat to use recaptcha because there´s a lot issues... i found all entries for recaptcha in php files and uninstalled it from admins panel but it still asking and give a error message..... how to solve that?? i want to unistall it

see image below... there´s no place to solve recaptcha but it still asking for...

well... sure i need recaptcha... but i need my site working at all... when i try to use that everything goes wrong
« Last Edit: March 18, 2019, 10:01:34 PM by Dannad »

*

Dannad

  • *
  • 9 posts
Re: recaptcha wierd error
« Reply #1 on: March 18, 2019, 09:54:01 PM »
ok ok ... i solve that...

lets go step by step ...

------------------------------------------------
in user-register.php
found this:

<?php osc_run_hook('user_register_form') ; ?>

and paste this right after:

<?php osc_show_recaptcha('register'); ?>

atention... do not post like this, post only the line above here

<div style="float:left;clear:both;width:100%;margin:5px 0 10px 0;">
  <?php osc_run_hook("anr_captcha_form_field"); ?>
</div> (don´t post like this)

----------------------------------------

in iten-edit.php

found this:

      <div style="float:left;clear:both;width:100%;margin:5px 0 10px 0;">
        <?php osc_run_hook("anr_captcha_form_field"); ?>
      </div>

and replace for that:

<?php osc_show_recaptcha('register'); ?>

-------------------------------------

on item.php found this: (near to line 160)

                  <div style="float:left;clear:both;width:100%;margin:5px 0 10px 0;">
                    <?php osc_run_hook("anr_captcha_form_field"); ?>
                  </div>


and replace for that:

                  <div style="float:left;display:block;width:100%;margin:5px 0 10px 0;">
                    <?php osc_show_recaptcha('register'); ?>
                  </div>


and replace this:

                  <!-- 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','tatiana'); ?>:</span>
                      <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" />
                      <div><a href="javascript:Recaptcha.showhelp()"><?php _e('Help', 'tatiana'); ?></a></div>
                    </div>
                  <?php } ?>
                  <?php osc_show_recaptcha(); ?>

for that:

                 <!-- 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"></span>
                    </div>
                  <?php } ?>
                  <?php osc_show_recaptcha(); ?>


------------------------------------------

item-contact.php change this:

            <div style="float:left;clear:both;width:100%;margin:5px 0 10px 0;">
              <?php osc_run_hook("anr_captcha_form_field"); ?>
            </div>

for that:

        <div style="float:left;display:block;width:100%;margin:5px 0 10px 0;">
          <?php osc_show_recaptcha('register'); ?>
        </div>

---------------------------

iten-send-friend.php replace this:

        <div style="float:left;clear:both;width:100%;margin:5px 0 10px 0;">
          <?php osc_run_hook("anr_captcha_form_field"); ?>
        </div>

for that:

        <div style="float:left;display:block;width:100%;margin:5px 0 10px 0;">
          <?php osc_show_recaptcha('register'); ?>
        </div>

---------------------------------

item-post.php replace this:

      <div style="float:left;clear:both;width:100%;margin:5px 0 10px 0;">
        <?php osc_run_hook("anr_captcha_form_field"); ?>
      </div>

oly for that:

      <?php osc_run_hook("anr_captcha_form_field"); ?>

-----------------------------

and that´s it. 

using this code, you don´t need anymore to add noRecaptcha Recaptcha at admin´s plugin page, and do need anymore to create a API for recaptcha on google, it´s work fine here... (see date of this post to know when it has been added)







*

MB Themes

Re: [solved] recaptcha weird error
« Reply #2 on: March 18, 2019, 10:17:32 PM »
Thanks for feedback ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: [solved] recaptcha weird error
« Reply #3 on: May 12, 2020, 10:12:10 AM »
https://www.uzman.com.tr/meslekler/internet/engin-sam-web-tasarim_i42
Be first to review or feedback
it just didn't work here.