reCAPTCHA for SMF

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

Previous topic - Next topic

p4ppo

Hello!
This is a great add-on, i have it installed also in my vbb forum, but i'm getting some problems with it in SMF, especially because of a translation...

I would like to konw how to operate in this case... i want to change manually the script to have it installed.

When i try to install the mod i have this situation
Type  Action         Description
1.   Do modify ./Sources/ManageRegistration.php                      Installation successfull
2.   Do modify ./Sources/Register.php                               Installation successfull
3.   Do modify ./Themes/default/Register.template.php         Installation successfull
4.   Do modify ./Themes/default/languages/Modifications.english.php       Installation successfull
5.   Do modify ./Themes/default/languages/Modifications.english-utf8.php File skipped
6.   Do modify ./Themes/default/languages/Modifications.english_british.php File skipped
7.   Do modify ./Themes/default/languages/Modifications.english_british-utf8.php     File skipped
8.   Extract file ./Sources/recaptchalib.php


So i presume the mod does not find my "english" files...
How cai i modify it to have it point to the right "italian" language files?

Thank you in advance

青山 素子

Copy the lines the modification added to Modifications.english.php to Modifications.italian.php (or whatever yours happens to be called) and that will work. You can edit those lines to be in Italian if you would like.
Motoko-chan
Director, Simple Machines

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


God Of Mana

Some files needed a manual, and then everything  worked fine.

Kenderama

Motoko-chan - first off thanks for this mod. :) Very nice to use, and pretty simple to install.

However I'm getting the same problem as someone last page - reCaptcha shows as a black text on black field, and I can't figure out where to put your code from earlier:

Quote from: Motoko-chan on June 14, 2008, 02:25:50 PM
The Black Glass reCAPTCHA theme is made for display on dark pages, but if you want to use the default red theme, style the recaptcha_response_field id.

Examples:

/* White text on black background */
#recaptcha_response_field
{
  background-color: #000000;
  color: #ffffff
}

/* Black text on white background */
#recaptcha_response_field
{
  background-color: #ffffff;
  color: #000000
}


Does this go in Register.template.php? On my WoW-themed board (uses the default Register.template.php, attached) it has the input field text black on black. If I highlight, text I type shows up.

I'll keep poking at it though. Thanks again for any help. :)

青山 素子

That is CSS. It goes in your theme's CSS file.
Motoko-chan
Director, Simple Machines

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


grknzsy

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...

Sudhakar Arjunan

Motoko-chan am really very thank full to you.

Without any reasons i have got the registration verification image broke.

Hope i have installed some mod, which forced not to show the verification image.

http://www.simplemachines.org/community/index.php?topic=271903.0

Then i have changed the admin settings to not shows recaptcha.

You know i got more than 20 - 25 invalid registrations within 1 hour.

Then i have found your mod, and now am happy that its working fine.

One bad thing is , i dont know how to fix the earlier problem.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

genieuk

WOW! I seen another forum with this and wanted to know how they had a better CAPTCHA,

Thanks going to install very soon  :D

青山 素子

Quote from: A.SK on November 03, 2008, 11:54:19 AM
One bad thing is , i dont know how to fix the earlier problem.

The usual issue is that you inserted code or other space at the top of your file. This corrupts the image when it is displayed. If the problem site is the one in your profile, you have a blank line at the top that is likely causing the problem. For further support on the issue, please open a topic in our support board.

Quote from: genieuk on November 03, 2008, 12:07:57 PM
WOW! I seen another forum with this and wanted to know how they had a better CAPTCHA,

It isn't better, it is just different. The built-in image verification is very good, but some people have trouble with it due to server problems or readability issues. This mod offers an alternative.
Motoko-chan
Director, Simple Machines

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


genieuk

Well I know it does the same thing but much better in different ways.

I have installed this and it works perfectly. I love when people bring up old posts. You find some amazing mods hidden deep within the pages  ;D

Thank you Ever So Much  :D

Mathew

青山 素子

Quote from: genieuk on November 03, 2008, 12:41:53 PM
I have installed this and it works perfectly. I love when people bring up old posts. You find some amazing mods hidden deep within the pages 

You can also just browse the SMF Mod Site and look through items there.
Motoko-chan
Director, Simple Machines

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


genieuk

Quote from: Motoko-chan on November 03, 2008, 01:17:02 PM
Quote from: genieuk on November 03, 2008, 12:41:53 PM
I have installed this and it works perfectly. I love when people bring up old posts. You find some amazing mods hidden deep within the pages 

You can also just browse the SMF Mod Site and look through items there.

I know, but so many pages of mods i usually give up after several pages lol. Must say i am really happy with this mod, something i really wanted, obviously we already had one but this is much more up my street. I will never turn back to the original.

Mathew


Sudhakar Arjunan

Quote from: Motoko-chan on November 03, 2008, 12:29:10 PM
Quote from: A.SK on November 03, 2008, 11:54:19 AM
One bad thing is , i dont know how to fix the earlier problem.

The usual issue is that you inserted code or other space at the top of your file. This corrupts the image when it is displayed. If the problem site is the one in your profile, you have a blank line at the top that is likely causing the problem. For further support on the issue, please open a topic in our support board.


Yes i understood, i have almost done with a support forum.

http://www.simplemachines.org/community/index.php?topic=271903.0
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

TeaTephi

Hi
Thanks for the Mod
After installing "ARe you human" and "Anti-Bot-Puzzles"  which changed register.template.php
then I tried installing this mod and got test failed, so then I tried your manual edits and now:
Template Parse Error!
There was a problem loading the /Themes/default/Register.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: parse error, unexpected $ in .../Themes/default/Register.template.php on line 867
858:    echo '
859:                // ]]></script>
860:             </td>
861:          </tr>
862:       </table>
863:       <input type="hidden" name="sc" value="', $context['session_id'], '" />
864:    </form>';
865: }
866:
867: ?>
868:
869:



um  one symbol may be the problem "}" was supposed to be added right before.  I actually have all this:

            </tr>';
   }}

   // Start of Anti-bot Registration Puzzles Mod
   echo '<tr valign="top">
            <td width="40%" valign="top">
               <b>'.$txt['puzzle_'.$context['puzzle'][0]].'</b><br />
               '.$txt['puzzle_antibot'].'
            </td>
            <td>
               '. ( empty($context['puzzle'][1]) ? '' : $context['puzzle'][1].'<br />' ) .'
               <input type="text" name="'.$context['puzzle'][2].'" size="30" value="" tabindex="', $context['tabindex']++, '" />
            </td>
      </tr>';
   // End of Anti-bot Registration Puzzles Mod

   // Start of Are You Human? mod
   echo '<tr valign="top">
         <td width="40%" valign="top">
            <b>', $txt['are_you_human'], ':</b>
            <div class="smalltext">', $txt['are_you_human_desc'], '</div>
         </td>
         <td>
            <select name="',$_SESSION['areyouhuman'],'" tabindex="', $context['tabindex']++, '" class="select">
               <option value="1">', $txt['are_you_human_no'], '</option>
               <option value="2">', $txt['are_you_human_unsure'], '</option>
               <option value="3">', $txt['are_you_human_yes'], '</option>
            </select>
         </td>
      </tr>';
   // End of Are You Human? mod

   // Are there age restrictions in place?
SMF 2.0.2 | TinyPortal 1.107 Veterans day theme Opera 11.50
Mods:Profile Comments.....AEVA Media 2.10.....Activity in profile.....join-reason....Bookmarks 2.3.....SA Chat    Beta 4-1 Rev43....Tapatalk SMF 2.0 RC4/RC5/Final Plugin    3.0.1.....SMFPacks Likes Lite Mod

Thank you guys for all your support and development that you do.  I love my forum, and am so thankful to have a place to ask my questions.  I do love SMF 2.0 it's smoother and all my members love it!

Arturino

Hi Motoko-chan!
Thanks for the mod, it was really helpful against spambots!
One question:
After installing the mode every day I found many errors in the forum error log, related to recaptcha mod.

Guest       November 14, 2008, 12:40:07
194.165.42.81      3d6e7669da741a3878460dfc9545b0f1
hxxp:www.forumname.com/forum/index.php?action=register2 [nonactive]
8: Undefined index: recaptcha_challenge_field
File: /hsphere/local/home/arturino/forumname.com/forum/Sources/Register.php
Line: 184



Here is the line 184 from thr register.php:

      $resp = recaptcha_check_answer($modSettings['recaptcha_private_key'], $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]);


Any comments?

Kolya

Those are most likely those cases where a bot (or a human) enters the wrong code. Visual Verification Options logs similar errors.
It's uselessly bloating up the error log but that's probably not this mod's fault but due to how verification is implemented in SMF.


青山 素子

TeaTephi, I can try and help you manually install in that file. Please attach a full copy.

Arturino, it is because it's checking a variable without checking the existence first. It's not a huge error (it's just a warning), but I'll see that it is fixed in a future release.
Motoko-chan
Director, Simple Machines

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


TeaTephi

#57
Thanks so much for taking a look at this for me.  I would love to have this mod.

One is working, the other is the one I tried to edit and got the error mentioned above (the larger file).

If you want to check my forum register page go to MY SITE
SMF 2.0.2 | TinyPortal 1.107 Veterans day theme Opera 11.50
Mods:Profile Comments.....AEVA Media 2.10.....Activity in profile.....join-reason....Bookmarks 2.3.....SA Chat    Beta 4-1 Rev43....Tapatalk SMF 2.0 RC4/RC5/Final Plugin    3.0.1.....SMFPacks Likes Lite Mod

Thank you guys for all your support and development that you do.  I love my forum, and am so thankful to have a place to ask my questions.  I do love SMF 2.0 it's smoother and all my members love it!

blondeamon

"The package you tried to upload either is not a valid package or has become corrupted. "

i use 1.1.7 , what could be the problem?
Always looking for the best

www.kamenos.gr  Greek Gaming Community

blondeamon

Always looking for the best

www.kamenos.gr  Greek Gaming Community

Advertisement: