reCAPTCHA for SMF

Started by 青山 素子, December 28, 2007, 12:16:40 PM

Previous topic - Next topic

MaryLouW

Okay, I got a new set of keys for that domain but now where do I go from there.  I don't understand their instructions and it's been so long since I installed this that I'm just not sure what I'm doing.  I can't uninstall it because I get errors if I try.

plusev

Security and Moderation > Anti-Spam > then enter your keys and you're good to go.

MaryLouW

#222
Thanks a million for the help!!!  I wasn't sure what you meant but I figured it had to be something somewhere in the admin panel..  and I finally found it! 

I put in the new numbers and it worked like a charm!!!   Thanks again, I do appreciate the help, very much!!!

deciph3red

#223
Are any file modifications required?

I have instaled on SMF 1.1.10 with no issues, and have the settings now, but read on the site i needed to make php code changes.

青山 素子

If you install the modification through the package manager it will make all the needed changes for you.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


MaryLouW

I didn't have to modify anything at all... the package manager took care of everything for me.  I no longer get those X-Rated "users" (bots)... and it's very nice!!!

yenidagci

Quote from: (PirMuhammed) on September 18, 2008, 04:19:14 PM
Caps:



Turkish and Turkish-utf8 translations,

$languagedir/Modifications.turkish.php Dosyasında
Dosyanın Sonuna Ekle:


//reCAPTCHA for SMF
$txt['recaptcha_enable'] = 'reCAPTCHA Görsel Onay Sistemini Kullan';
$txt['recaptcha_theme'] = 'reCAPTCHA Teması';
$txt['recaptcha_theme_clean'] = 'Sade';
$txt['recaptcha_theme_blackglass'] = 'Siyah';
$txt['recaptcha_theme_red'] = 'Kırmızı';
$txt['recaptcha_theme_white'] = 'Beyaz';
$txt['recaptcha_public_key'] = 'reCAPTCHA Genel Anahtar';
$txt['recaptcha_private_key'] = 'reCAPTCHA Özel Anahtar';
$txt['recaptcha_no_key_question'] = 'reCAPTCHA için anahtarınız yok mu?';
$txt['recaptcha_get_key'] = 'reCAPTCHA Anahtarınızı buraya tıklayarak alabilirsiniz.';


$languagedir/Modifications.turkish-utf8.php Dosyasında
Dosyanın Sonuna Ekle:


//reCAPTCHA for SMF
$txt['recaptcha_enable'] = 'reCAPTCHA Gorsel Onay Sistemini Kullan';
$txt['recaptcha_theme'] = 'reCAPTCHA Temasi';
$txt['recaptcha_theme_clean'] = 'Sade';
$txt['recaptcha_theme_blackglass'] = 'Siyah';
$txt['recaptcha_theme_red'] = 'Kirmizi';
$txt['recaptcha_theme_white'] = 'Beyaz';
$txt['recaptcha_public_key'] = 'reCAPTCHA Genel Anahtar';
$txt['recaptcha_private_key'] = 'reCAPTCHA Ozel Anahtar';
$txt['recaptcha_no_key_question'] = 'reCAPTCHA icin anahtariniz yok mu?';
$txt['recaptcha_get_key'] = 'reCAPTCHA Anahtarinizi buraya tiklayarak alabilirsiniz.';


Thanks...

Thank you my brother..
I'm SMF ci  :)

Tasarım aşamasındaym..

Matthew K.

Hey there, never really had a problem installing this mod on previous forums of mine.

I am currently trying to get it installed on a forum of mine (version 1.1.10) and for some reason it's just not working.

I will attach my Register.template.php, ManageRegistration.template.php and Sources/Register.php if you could help me through this i'd appreciate it, trying to finish up my registration process.

Thanks,
Labradoodle-360

shadeofdawn

So i have this longstanding issue of the ftp not working. I need to modify the permissions manually. Which files does it need permissions for in order for me to install?

Thanks.

青山 素子

Labradoodle-360, sorry but I simply don't have time to manually modify your files. Check the modification's page to get manual install instructions.

shadeofdawn, the manual install instructions will show you the files. They are slightly different between 2.0 and 1.1, so you'll get faster info by checking those instructions.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


shadeofdawn

You know i never realised that. Thats really helpful. Thanks a lot!

Matthew K.

Quote from: Motoko-chan on September 21, 2009, 11:59:37 PM
Labradoodle-360, sorry but I simply don't have time to manually modify your files. Check the modification's page to get manual install instructions.

shadeofdawn, the manual install instructions will show you the files. They are slightly different between 2.0 and 1.1, so you'll get faster info by checking those instructions.

Already tried manually installing, got me where I am. Still no use.

I guess i'll redirect my question to Coding Discussion.

Thanks anyways.

collins465

i tried to install, it but some test failed :

Execute Modification  ./Themes/default/Register.template.php  Test failed

plusev


Gargoyle

Quote from: Motoko-chan on December 31, 2008, 09:24:17 PM
Quote from: Gargoyle on December 31, 2008, 07:26:34 PM
Is there a manual update I could do... I had to install this manually and would like the errors I get to stop.. So maybe just an idea of what was changed would work out for me...

If you are using 1.1.x, just search ManageRegistration for 'recaptcha_enable' and change to 'recaptcha_enabled'.

I changed quite a bit for the 2.0 stuff, so I'd need to run a diff for that.

So sorry I missed this.... Worked perfectly...

Thank you!

miranon

Can the reCAPTCHA also work when sending pm's and guests posts?

青山 素子

If you are using the SMF 2.0 code, it will replace everywhere the standard image verification will go. If on 1.1, it will only replace on the registration verification image (the only place in 1.1 that has it).
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


miranon

Quote from: Motoko-chan on October 03, 2009, 09:06:41 PM
If you are using the SMF 2.0 code, it will replace everywhere the standard image verification will go. If on 1.1, it will only replace on the registration verification image (the only place in 1.1 that has it).

I use SMF 1.1 and i want to have the reCAPTCHA system for sending pm's and guest posting.

I have found this code for pm's but it doesn't work, recaptcha is showing up but when i solve the captcha and click send, it takes me back to my message without any errors and replaces recaptcha with the regular smf captcha. The message isnt sent at all.

Please help me to find the problem with the code:

Quote from: Duncan85 on May 24, 2009, 07:09:12 AM
First of all install that mod

http://custom.simplemachines.org/mods/index.php?mod=1044

after that make these changes

./Sources/ModSettings.php

Code (find) Select

// Reporting of personal messages?
array('check', 'enableReportPM'),


Code (replace with) Select

// Reporting of personal messages?
array('check', 'enableReportPM'),
array('check', 'recaptcha_enabled'),
array('select', 'recaptcha_theme', array('Clean' => 'Clean', 'Black Glass' => 'Black Glass', 'Red' => 'Red', 'White' => 'White')),
array('text', 'recaptcha_public_key','40'),
array('text', 'recaptcha_private_key','40'),



in Sources/PersonalMessage.php

Code (find) Select

$_SESSION['visual_verification_code'] .= $character_range[array_rand($character_range)];
}


Code (replace with) Select

$_SESSION['visual_verification_code'] .= $character_range[array_rand($character_range)];
}
$context['use_recaptcha'] = !empty($modSettings['recaptcha_enabled']) && ($modSettings['recaptcha_enabled'] == 1 && !empty($modSettings['recaptcha_public_key']) && !empty($modSettings['recaptcha_private_key'])) && $user_info['posts'] < $modSettings['pm_posts_verification'] ;
if ($context['use_recaptcha'])
{
// Disable the built-in visual verification if we are using reCAPTCHA
$context['visual_verification'] = FALSE;
}


in ./Themes/default/PersonalMessage.template.php

Code (find) Select

if ($context['visual_verification'])
{
echo '
<tr>
<td align="right" valign="top">
<b>', $txt['pm_visual_verification_label'], ':</b>
</td>
<td>';
if ($context['use_graphic_library'])
echo '
<img src="', $context['verificiation_image_href'], '" alt="', $txt['pm_visual_verification_desc'], '" /><br />';
else
echo '
<img src="', $context['verificiation_image_href'], ';letter=1" alt="', $txt['pm_visual_verification_desc'], '" />
<img src="', $context['verificiation_image_href'], ';letter=2" alt="', $txt['pm_visual_verification_desc'], '" />
<img src="', $context['verificiation_image_href'], ';letter=3" alt="', $txt['pm_visual_verification_desc'], '" />
<img src="', $context['verificiation_image_href'], ';letter=4" alt="', $txt['pm_visual_verification_desc'], '" />
<img src="', $context['verificiation_image_href'], ';letter=5" alt="', $txt['pm_visual_verification_desc'], '" /><br />';
echo '
<a href="', $context['verificiation_image_href'], ';sound" onclick="return reqWin(this.href, 400, 120);">', $txt['pm_visual_verification_listen'], '</a><br /><br />
<input type="text" name="visual_verification_code" size="30" tabindex="', $context['tabindex']++, '" />
<div class="smalltext">', $txt['pm_visual_verification_desc'], '</div>
</td>
</tr>';
}


Code (replace with) Select

if ($context['visual_verification'] || $context['use_recaptcha'])
{
echo '
<tr>
<td align="right" valign="top">
<b>', $txt['pm_visual_verification_label'], ':</b>
</td>
<td>';

if ($context['use_recaptcha'])
{
echo '
<script>
var RecaptchaOptions = {
   theme : \'', empty($modSettings['recaptcha_theme']) ? 'clean' : $modSettings['recaptcha_theme'] , '\',
};
</script>
<script type="text/javascript"
src="http://api.recaptcha.net/challenge?k=', $modSettings['recaptcha_public_key'], '">
</script>

<noscript>
<iframe src="http://api.recaptcha.net/noscript?k=', $modSettings['recaptcha_public_key'], '"
height="300" width="500" frameborder="0"></iframe><br>
<textarea name="recaptcha_challenge_field" rows="3" cols="40">
</textarea>
<input type="hidden" name="recaptcha_response_field"
value="manual_challenge">
</noscript>';
}
else
{
if ($context['use_graphic_library'])
echo '
<img src="', $context['verificiation_image_href'], '" alt="', $txt['pm_visual_verification_desc'], '" /><br />';
else
echo '
<img src="', $context['verificiation_image_href'], ';letter=1" alt="', $txt['pm_visual_verification_desc'], '" />
<img src="', $context['verificiation_image_href'], ';letter=2" alt="', $txt['pm_visual_verification_desc'], '" />
<img src="', $context['verificiation_image_href'], ';letter=3" alt="', $txt['pm_visual_verification_desc'], '" />
<img src="', $context['verificiation_image_href'], ';letter=4" alt="', $txt['pm_visual_verification_desc'], '" />
<img src="', $context['verificiation_image_href'], ';letter=5" alt="', $txt['pm_visual_verification_desc'], '" /><br />';
echo '
<a href="', $context['verificiation_image_href'], ';sound" onclick="return reqWin(this.href, 400, 120);">', $txt['pm_visual_verification_listen'], '</a><br /><br />
<input type="text" name="visual_verification_code" size="30" tabindex="', $context['tabindex']++, '" />
<div class="smalltext">', $txt['pm_visual_verification_desc'], '</div>
</td>
</tr>';
}
}



PS: It can be enabled via AdminCP -> Features and Options -> Use reCAPTCHA Verification System

Thanks!

Maybe someone know how to enable recaptcha for guest posting in SMF 1.1?

青山 素子

Sorry, I don't really have time to troubleshoot code outside the scope of this modification. If you just want something that will add a verification on guest activities, check out Visual Verification Options.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


MrDby

3.     Execute Modification     ./Themes/default/Register.template.php     Test failed

Advertisement: