Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1.0 Откройте файл engine/ajax/fast.reg.php
- найдите
- $tpl->set( '{recaptcha}', "<div class=\"g-recaptcha\" data-sitekey=\"{$config['recaptcha_public_key']}\" data-theme=\"{$config['recaptcha_theme']}\"></div><script src='https://www.google.com/recaptcha/api.js?hl={$lang['wysiwyg_language']}' async defer></script>" );
- замените на
- $tpl->set( '{recaptcha}', "<div id=\"reg_recaptcha\"></div><script src=\"https://www.google.com/recaptcha/api.js?onload=Callback&render=explicit&hl={$lang['wysiwyg_language']}\"></script><script type=\"text/javascript\">
- var recaptcha;
- var Callback = function() {
- recaptcha = grecaptcha.render('reg_recaptcha', {
- 'theme': '{$config['recaptcha_theme']}',
- 'sitekey': '{$config['recaptcha_public_key']}'
- });
- };
- </script>" );
- 2.0 Откройте файл engine/modules/show.full.php
- найдите
- $tpl->set( '{recaptcha}', "<div class=\"g-recaptcha\" data-sitekey=\"{$config['recaptcha_public_key']}\" data-theme=\"{$config['recaptcha_theme']}\"></div>" );
- замените на
- $tpl->set( '{recaptcha}', "<div id=\"com_recaptcha\"></div><!--div class=\"g-recaptcha\" data-sitekey=\"{$config['recaptcha_public_key']}\" data-theme=\"{$config['recaptcha_theme']}\"></div-->" );
- далее найти
- $tpl->copy_template .= <<<HTML
- <script src="https://www.google.com/recaptcha/api.js?hl={$lang['wysiwyg_language']}"></script>
- HTML;
- замените на
- $tpl->copy_template .= <<<HTML
- <script src="https://www.google.com/recaptcha/api.js?onload=Callback&render=explicit&hl={$lang['wysiwyg_language']}"></script>
- <script type="text/javascript">
- var recaptcha;
- var Callback = function() {
- recaptcha = grecaptcha.render('com_recaptcha', {
- 'theme': '{$config['recaptcha_theme']}',
- 'sitekey': '{$config['recaptcha_public_key']}'
- });
- };
- </script>
- HTML;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement