Advertisement:

Author Topic: reCAPTCHA for SMF  (Read 373060 times)

Offline p4ppo

  • Newbie
  • *
  • Posts: 1
Re: reCAPTCHA for SMF
« Reply #40 on: July 29, 2008, 06:56:30 AM »
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
Code: [Select]
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

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,036
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: reCAPTCHA for SMF
« Reply #41 on: July 29, 2008, 10:47:53 AM »
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

Just because it's pouring down doesn't mean we're gonna drown. There's a time when all you can say is let it rain - Mat Kearney (Let It Rain)

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


Offline God Of Mana

  • Semi-Newbie
  • *
  • Posts: 96
Re: reCAPTCHA for SMF
« Reply #42 on: August 05, 2008, 03:56:48 PM »
Some files needed a manual, and then everything  worked fine.

Offline Kenderama

  • Newbie
  • *
  • Posts: 2
Re: reCAPTCHA for SMF
« Reply #43 on: August 18, 2008, 03:56:21 AM »
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:

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:
Code: [Select]
/* 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. :)

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,036
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: reCAPTCHA for SMF
« Reply #44 on: August 18, 2008, 10:42:08 AM »
That is CSS. It goes in your theme's CSS file.
Motoko-chan
Director, Simple Machines

Just because it's pouring down doesn't mean we're gonna drown. There's a time when all you can say is let it rain - Mat Kearney (Let It Rain)

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


Offline grknzsy

  • Semi-Newbie
  • *
  • Posts: 34
  • Gender: Male
  • Wordpress Aşkına
    • gurkan.ozsoy on Facebook
    • @gurkanozsoy on Twitter
    • www.gurkanozsoy.com
Re: reCAPTCHA for SMF
« Reply #45 on: September 18, 2008, 04:19:14 PM »
Caps:



Turkish and Turkish-utf8 translations,

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


Code: [Select]
//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:


Code: [Select]
//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...

Offline Sudhakar Arjunan

  • Sophist Member
  • *****
  • Posts: 1,226
  • Gender: Male
  • SMF is the best forum tool
    • IT Acumens - Webdesigning & Webhositing services in Chennai
Re: reCAPTCHA for SMF
« Reply #46 on: November 03, 2008, 11:54:19 AM »
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

Offline genieuk

  • Sr. Member
  • ****
  • Posts: 779
  • Gender: Male
Re: reCAPTCHA for SMF
« Reply #47 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,

Thanks going to install very soon  :D

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,036
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: reCAPTCHA for SMF
« Reply #48 on: November 03, 2008, 12:29:10 PM »
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.

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

Just because it's pouring down doesn't mean we're gonna drown. There's a time when all you can say is let it rain - Mat Kearney (Let It Rain)

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


Offline genieuk

  • Sr. Member
  • ****
  • Posts: 779
  • Gender: Male
Re: reCAPTCHA for SMF
« Reply #49 on: November 03, 2008, 12:41:53 PM »
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

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,036
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: reCAPTCHA for SMF
« Reply #50 on: November 03, 2008, 01:17:02 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

Just because it's pouring down doesn't mean we're gonna drown. There's a time when all you can say is let it rain - Mat Kearney (Let It Rain)

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


Offline genieuk

  • Sr. Member
  • ****
  • Posts: 779
  • Gender: Male
Re: reCAPTCHA for SMF
« Reply #51 on: November 03, 2008, 01:24:03 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


Offline Sudhakar Arjunan

  • Sophist Member
  • *****
  • Posts: 1,226
  • Gender: Male
  • SMF is the best forum tool
    • IT Acumens - Webdesigning & Webhositing services in Chennai
Re: reCAPTCHA for SMF
« Reply #52 on: November 03, 2008, 01:57:39 PM »
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

Offline TeaTephi

  • Jr. Member
  • **
  • Posts: 195
    • The Shepherd's Disciples
Re: reCAPTCHA for SMF
« Reply #53 on: November 15, 2008, 01:52:01 AM »
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!

Offline Arturino

  • Newbie
  • *
  • Posts: 4
Re: reCAPTCHA for SMF
« Reply #54 on: November 15, 2008, 11:56:52 PM »
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?

Offline Kolya

  • Full Member
  • ***
  • Posts: 425
  • systemshock.org
Re: reCAPTCHA for SMF
« Reply #55 on: November 16, 2008, 05:00:06 PM »
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.


Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,036
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: reCAPTCHA for SMF
« Reply #56 on: November 16, 2008, 06:03:40 PM »
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

Just because it's pouring down doesn't mean we're gonna drown. There's a time when all you can say is let it rain - Mat Kearney (Let It Rain)

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


Offline TeaTephi

  • Jr. Member
  • **
  • Posts: 195
    • The Shepherd's Disciples
Re: reCAPTCHA for SMF
« Reply #57 on: November 16, 2008, 06:10:28 PM »
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
« Last Edit: November 16, 2008, 06:21:46 PM by TeaTephi »
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!

Offline blondeamon

  • Jr. Member
  • **
  • Posts: 242
    • Kamenos Gaming Community
Re: reCAPTCHA for SMF
« Reply #58 on: November 16, 2008, 09:05:25 PM »
"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

Offline blondeamon

  • Jr. Member
  • **
  • Posts: 242
    • Kamenos Gaming Community
Re: reCAPTCHA for SMF
« Reply #59 on: November 18, 2008, 11:59:08 AM »
bump
Always looking for the best

www.kamenos.gr  Greek Gaming Community