• Welcome to Simple Machines Community Forum. Please login or sign up.
January 17, 2022, 06:21:55 AM

News:

Want to get involved in developing SMF, then why not lend a hand on our github!


Anti-Bot Registration Puzzles v1.2.0.1 (Updated for SMF 2.0 RC2)

Started by Marcus Forsberg, January 28, 2008, 07:52:11 PM

Previous topic - Next topic

igforum

I got the puzzle feature up and running Thank you anyway.

Sabre™

Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


dreamx

Tell me please how it should work?

return array(\'colors\', $d, md5(strtolower($txt[\'puzzle_\'.$c])));

$txt['puzzle_red'] = 'Red';
$txt['puzzle_orange'] = 'Orange';
$txt['puzzle_yellow'] = 'Yellow';
$txt['puzzle_green'] = 'Green';
$txt['puzzle_blue'] = 'Blue';
$txt['puzzle_purple'] = 'Purple';
$txt['puzzle_pink'] = 'Pink';
$txt['puzzle_black'] = 'Black';
$txt['puzzle_grey'] = 'Grey';

Wrong language file or?

Sabre™

Whats the question?
What version of smf are you running?
What errors are you getting if any.
Why is my watch 5 mins too fast?
But on a better note, whats the question?
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


dreamx

The version of smf does not matter in this case.
The question is that colors checking does not working in ANTI-BOT REGISTRATION PUZZLES v1.2 mod.
Please check it and change code in ./Sources/Register.php or ./Themes/default/languages/Modifications.<language>.php
It will be great for newbies like me :)

Sabre™

Quote from: dreamx on December 12, 2008, 02:42:52 PM
The version of smf does not matter in this case.

Yeah, I like to get new members in that habit of providing as much information as possible, as the more info given, the easier/faster it will be to for others to assist them.

I nolonger use this mod, as [THIS] mod seems to have solved many peoples spam problems.
But I installed it just to test it.

It is working fine for me buddy.
I tested to see if I chose the correct colour, would it work, and it did.
The second test, I chose the wrong colour to see if it wouldnt allow me to register, and it didnt.

Maybe Im misunderstanding you.

What exactly isnt working, when isnt it working for you?
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


dreamx

December 12, 2008, 05:05:33 PM #86 Last Edit: December 12, 2008, 05:15:08 PM by dreamx
In case when you will use not english language the results for colors checking will always wrong.

It will work then for example:
$txt['puzzle_red'] = 'Red';

will replaced on:
$txt['puzzle_red'] = 'red';

I do not know why :(

P.S. Ok. I will test it deeply with different languages and will inform you ASAP.

voy-tech

Good mod  :)

Polish translate:
polish-utf8:

<file name="$themedir/languages/Modifications.polish-utf8.php">
<operation>
<search position="end" />
<add><![CDATA[
$txt['puzzle_colors'] = 'Które ze słów ma odpowiedni kolor?';
$txt['puzzle_math'] = 'Wpisz wynik działania (cyframi)';
$txt['puzzle_shapes'] = 'Ile %s ma %s ?';
$txt['puzzle_shapes2'] = 'Ile %s ma %s ?';
$txt['puzzle_sides'] = 'boków';
$txt['puzzle_corners'] = 'kątów';
$txt['puzzle_incomplete'] = 'Nie odpowiedziałeś/aś na pytanie. Spróbuj jeszcze raz.';
$txt['puzzle_incorrect'] = 'Nie odpowiedziałeś/aś poprawnie na pytanie. Spróbuj jeszcze raz.';
$txt['puzzle_antibot'] = 'Odpowiedz poprawnie na poniższe pytanie (zabezpieczenie przed botami):';
$txt['puzzle_red'] = 'Czerwony';
$txt['puzzle_orange'] = 'Pomarańczowy';
$txt['puzzle_yellow'] = 'Żółty';
$txt['puzzle_green'] = 'Zielony';
$txt['puzzle_blue'] = 'Niebieski';
$txt['puzzle_purple'] = 'Fioletowy';
$txt['puzzle_pink'] = 'Różowy';
$txt['puzzle_black'] = 'Czarny';
$txt['puzzle_grey'] = 'Szary';
$txt['puzzle_triange'] = 'Trójkąt';
$txt['puzzle_square'] = 'Kwadrat';
$txt['puzzle_rectangle'] = 'Prostokąt';
$txt['puzzle_pentagon'] = 'Pięciobok (pentagon)';
$txt['puzzle_hexagon'] = 'Sześciobok (hexagon)';
$txt['puzzle_heptagon'] = ' Siedmiobok (heptagon)';
$txt['puzzle_octagon'] = 'Ośmiobok (octagon)';
$txt['puzzle_1'] = 'JEDEN';
$txt['puzzle_2'] = 'DWA';
$txt['puzzle_3'] = 'TRZY';
$txt['puzzle_4'] = 'CZTERY';
$txt['puzzle_5'] = 'PIĘĆ';
$txt['puzzle_6'] = 'SZEŚĆ';
$txt['puzzle_7'] = 'SIEDEM';
$txt['puzzle_8'] = 'OSIEM';
$txt['puzzle_9'] = 'DZIEWIĘĆ';
$txt['puzzle_10'] = 'DZIESIĘĆ';
$txt['puzzle_11'] = 'JEDENAŚCIE';
$txt['puzzle_12'] = 'DWANAŚCIE';
$txt['puzzle_13'] = 'TRZYNAŚCIE';
$txt['puzzle_14'] = 'CZTERNAŚCIE';
$txt['puzzle_15'] = 'PIĘTNAŚCIE';
$txt['puzzle_16'] = 'SZESNAŚCIE';
$txt['puzzle_17'] = 'SIEDEMNAŚCIE';
$txt['puzzle_18'] = 'OSIEMNAŚCIE';
$txt['puzzle_19'] = 'DZIEWIĘTNAŚCIE';
]]></add>
</operation>
</file>


polish

<file name="$themedir/languages/Modifications.polish.php">
<operation>
<search position="end" />
<add><![CDATA[
$txt['puzzle_colors'] = 'Które ze słów ma odpowiedni kolor?';
$txt['puzzle_math'] = 'Wpisz wynik działania (cyframi)';
$txt['puzzle_shapes'] = 'Ile %s ma %s ?';
$txt['puzzle_shapes2'] = 'Ile %s ma %s ?';
$txt['puzzle_sides'] = 'boków';
$txt['puzzle_corners'] = 'kątów';
$txt['puzzle_incomplete'] = 'Nie odpowiedziałeś/aś na pytanie. Spróbuj jeszcze raz.';
$txt['puzzle_incorrect'] = 'Nie odpowiedziałeś/aś poprawnie na pytanie. Spróbuj jeszcze raz.';
$txt['puzzle_antibot'] = 'Odpowiedz poprawnie na poniższe pytanie (zabezpieczenie przed botami):';
$txt['puzzle_red'] = 'Czerwony';
$txt['puzzle_orange'] = 'Pomarańczowy';
$txt['puzzle_yellow'] = 'Żółty';
$txt['puzzle_green'] = 'Zielony';
$txt['puzzle_blue'] = 'Niebieski';
$txt['puzzle_purple'] = 'Fioletowy';
$txt['puzzle_pink'] = 'Różowy';
$txt['puzzle_black'] = 'Czarny';
$txt['puzzle_grey'] = 'Szary';
$txt['puzzle_triange'] = 'Trójkąt';
$txt['puzzle_square'] = 'Kwadrat';
$txt['puzzle_rectangle'] = 'Prostokąt';
$txt['puzzle_pentagon'] = 'Pięciobok (pentagon)';
$txt['puzzle_hexagon'] = 'Sześciobok (hexagon)';
$txt['puzzle_heptagon'] = ' Siedmiobok (heptagon)';
$txt['puzzle_octagon'] = 'Ośmiobok (octagon)';
$txt['puzzle_1'] = 'JEDEN';
$txt['puzzle_2'] = 'DWA';
$txt['puzzle_3'] = 'TRZY';
$txt['puzzle_4'] = 'cZTERY';
$txt['puzzle_5'] = 'PIĘĆ';
$txt['puzzle_6'] = 'SZEŚĆ';
$txt['puzzle_7'] = 'SIEDEM';
$txt['puzzle_8'] = 'OSIEM';
$txt['puzzle_9'] = 'DZIEWIĘĆ';
$txt['puzzle_10'] = 'DZIESIĘĆ';
$txt['puzzle_11'] = 'JEDENAŚCIE';
$txt['puzzle_12'] = 'DWANAŚCIE';
$txt['puzzle_13'] = 'TRZYNAŚCIE';
$txt['puzzle_14'] = 'CZTERNAŚCIE';
$txt['puzzle_15'] = 'PIĘTNAŚCIE';
$txt['puzzle_16'] = 'SZESNAŚCIE';
$txt['puzzle_17'] = 'SIEDEMNAŚCIE';
$txt['puzzle_18'] = 'OSIEMNAŚCIE';
$txt['puzzle_19'] = 'DZIEWIĘTNAŚCIE';
]]></add>
</operation>
</file>

trebul

Thanks for this mod. I just installed this the other day and so far it's doing its job. No new spambots!

      Love talking about pets?
      Visit a friendly pet forum!

      Looking for tips to running a forum?
      Trebul's community guide


         

The Gimp Pimp

Hello, I'm trying to install the package but don't have zlib so that wasn't possible. To get around this I looked in the package-info.xml and added the code by hand, a little time consuming but I followed it properly. In the end I didn't have the questions show up visually but I did end up having the notification "You did not solve the anti-bot puzzle" (or something like that) pop up after a register attempt. Do you know why this might be? Also, I was wondering why you say we should add the line of code mentioned here BEFORE and then in the xml it is added AFTER.

Maybe I did something silly. Thanks for reading, I might have zlib installed to get around this issue.

LG

Croatian :
Modifications.croatian-utf8.php
---------------------------------------

$txt['puzzle_colors'] = 'Koja je rije&#269; ista kao i njena boja:';
$txt['puzzle_math'] = 'Koji broj je rje&#353;enje: (napi&#353;i broj, ne tekst)';
$txt['puzzle_shapes'] = 'Koliko %s ima %s ?';
$txt['puzzle_shapes2'] = 'Koliko %s ima %s ?';
$txt['puzzle_sides'] = 'stranica';
$txt['puzzle_corners'] = 'kuteva';
$txt['puzzle_incomplete'] = 'Nisi rije&#353;io/la zagonetku. Probaj ponovo.';
$txt['puzzle_incorrect'] = 'Krivo si rije&#353;io/la zagonetku. Probaj ponovo.';
$txt['puzzle_antibot'] = 'Anti-robot zagonetka';
$txt['puzzle_red'] = 'Crvena';
$txt['puzzle_orange'] = 'Narancasta';
$txt['puzzle_yellow'] = 'Zuta';
$txt['puzzle_green'] = 'Zelena';
$txt['puzzle_blue'] = 'Plava';
$txt['puzzle_purple'] = 'Ljubicasta';
$txt['puzzle_pink'] = 'Roza';
$txt['puzzle_black'] = 'Crna';
$txt['puzzle_grey'] = 'Siva';
$txt['puzzle_triange'] = 'Trokut';
$txt['puzzle_square'] = 'Kvadrat';
$txt['puzzle_rectangle'] = 'Pravokutnik';
$txt['puzzle_pentagon'] = 'Peterokut';
$txt['puzzle_hexagon'] = '&#353;esterokut';
$txt['puzzle_heptagon'] = 'Sedmerokut';
$txt['puzzle_octagon'] = 'Osmerokut';
$txt['puzzle_1'] = 'JEDAN';
$txt['puzzle_2'] = 'DVA';
$txt['puzzle_3'] = 'TRI';
$txt['puzzle_4'] = '&#269;ETRI';
$txt['puzzle_5'] = 'PET';
$txt['puzzle_6'] = '&#353;EST';
$txt['puzzle_7'] = 'SEDAM';
$txt['puzzle_8'] = 'OSAM';
$txt['puzzle_9'] = 'DEVET';
$txt['puzzle_10'] = 'DESET';
$txt['puzzle_11'] = 'JEDANAEST';
$txt['puzzle_12'] = 'DVANAEST';
$txt['puzzle_13'] = 'TRINAEST';
$txt['puzzle_14'] = '&#269;ETRNAEST';
$txt['puzzle_15'] = 'PETNAEST';
$txt['puzzle_16'] = '&#353;ESNAEST';
$txt['puzzle_17'] = 'SEDAMNAEST';
$txt['puzzle_18'] = 'OSAMNAEST';
$txt['puzzle_19'] = 'DEVETNAEST';


-----------------------
Lara

Chandy

February 14, 2009, 06:04:57 PM #91 Last Edit: February 14, 2009, 06:07:27 PM by Chandy
Hello Karlbenson,thx for this great work :) !

I have a question:

It is possible to place images of confirmation, like vBulletin mod?

Example in attatch.

Thx man.

mikedown

tried using with the HIHA theme sometimes the puzzle doesnt completely load.. help please..

mikedown

also mine only shows the equation part...


allymcbeal

Hi, I don't have Register.template.php in my new theme, I have to create it? I copy and past from default theme?
Thanks.

Rasyr

Quote from: allymcbeal on February 27, 2009, 05:07:35 PM
Hi, I don't have Register.template.php in my new theme, I have to create it? I copy and past from default theme?
Thanks.

If you do not have a file in a specific Theme, the forum will use the version of the file from the Default Theme. Thus, not having register.template.php in your new theme will not hurt the new theme because the forums will use the default version of that file.

No need to copy it to the new theme.


Onwards!

Great Mod! I like it.

May I may a request for future versions? I would really like to see questions on abbreviations be added or even custom questions.

For example, I run a site for a tabletop rpg company, and being able to include/use questions regarding our products would be of enormous benefit.

Thanks again for the mod!!

Marcus Forsberg

Okey, guys. Just wanted to let you all know that I've taken over this mod.

0bscuridad

Great Works. im sure everyone agrees that this is way better than the human and probably all "anti spammer" modz in here.

But ...
How could i make it so only math (numbers only, no letters) questions/puzzles will be asked. Leave to color and sides puzzles out.

I tryed but i cant find the exact place where puzzle is called.

I have at the moment, quite several users that speak different languages, i think the math puzzle ( numbers only ) would be most friendly on a forum with a diversity of languages.

Any help on this will be greatly apreciated.

I will soon post a Spanish Translated Version for this Puzzle mod.

Qudus

Hi

this is a great mod. But something is a little strange. It works, if I just install the mod, but don't apply it. If I apply it, the textfield to type in the captcha is added a second time to the registration page and no registration is possible anymore, since an error without description is reported.

And the captcha image always contains the same sequence of characters, no matter how often I click the "request new image" link.

I am using SMF 1.1.8 and ABRP 1.2.

Marvin

Advertisement: