News:

Wondering if this will always be free?  See why free is better.

Main Menu

CAPTCHA (Code Verification)

Started by Daniel15, February 11, 2006, 03:57:53 PM

Previous topic - Next topic

Bigguy

Use the package manager, and yes it is.

opally

Quote from: tinatoth on August 11, 2006, 05:57:17 PM
Captcha seems to actually partially work, if I try to proceed with a registration, it tells me I didn't type the right code in. But the actual registration page contains only the username, email and password fields. No code field.

I'm having the same problem as Tinatoth.

Using 1.07 SMF. I am also using Bloc's Themis theme.

I did a compare of the default Register.template.php and the Themis Register.template.php and didn't find any remarkable differences, except for this:
Line 152 - 159
Default; Register v. 1.0:
if (document.postForm.todo.value.indexOf("delete") != -1)
message = "', $txt['admin_browse_w_delete'], '";
else if (document.postForm.todo.value.indexOf("reject") != -1)
message = "', $txt['admin_browse_w_reject'], '";
else if (document.postForm.todo.value == "remind")
message = "', $txt['admin_browse_w_remind'], '";
else
message = "', $context['browse_type'] == 'approve' ? $txt['admin_browse_w_approve'] : $txt['admin_browse_w_activate'], '";

Themis; Register v. 1.0.1:
                        if (document.postForm.todo.value == "delete" || document.postForm.todo.value == "deleteemail")
                                message = "' . $txt['admin_browse_w_delete'] . '";
                        else if (document.postForm.todo.value == "remind")
                                message = "' . $txt['admin_browse_w_remind'] . '";
                        else
                                message = "' . ($context['browse_type'] == 'approve' ? $txt['admin_browse_w_approve'] : $txt['admin_browse_w_activate']) . '";


Could this be the problem? I could try replacing this section of code, tho by version number alone it appears that Bloc's is the newer one.

tinatoth

#102
I am using default skin... well, a skin which was based on fefault, but i never changed its register template. It's the same as the original.  So... maybe the default template is the problem? I've no idea.

danneh3826

I'm getting this after I installed (SMF 1.0.7)

Fatal error: Cannot redeclare show_captcha() (previously declared in /usr/home/marc/www.short-story.net/forum/captcha/captcha.php:68) in /usr/home/marc/www.short-story.net/forum/captcha/captcha.php on line 67

any clues? this sounds like a really good mod for us, as we're getting a lot of spam bots registering. and as i'm the administrator for the server it's on, i get all the bounces!

tinatoth

I FOUND THE SOLUTION FOR MY PROBLEM!!

I deleted the register.template.php file, and CAPTCHA started working!! Weee!!!

I'm not sure if you can do that too opally, but it's worth a try! Depends on your skin I guess!

opally

Brilliant!!!! You are a genius!

I removed the Register.template.php for my theme, and VOILA! It works!

This needs to be in the installation instructions for this mod.

---Opally

randyripoff

We aren't using the default theme, and I think that's why I'm having a hard time getting this working.

Are there instructions for a manual install?

opally

Randyripoff,

Did you try Tinatoth's suggestion?

Run the package installer from Admin
Remove your theme's register.template.php file

The installer automatically edits several files, when you run the installer it shows you what files are modified. You can install and uninstall a few times to see how it works. The file that is edited is saved with a ~ at the end of the name, so it is easy to revert.

---Opally

Surferbird

What to do, get this message when try to install CaptCha?

failure in ./Sources/ModSettings.php.
Any solution for this? ::)
.:: Always something to ask - always grateful for assistance ::.

acculver

Can you please update it for RC3 Please

Bigguy

Rc3 has built in captcha. You won`t need this mod.

Harzem

Quote from: Bigguy on August 24, 2006, 01:55:18 AM
Rc3 has built in captcha. You won`t need this mod.

For now, it is unreadable, and doesn't affect guest posting. This is why that mod is still requested.

Bigguy

Oh, so sorry about that. I guess I have not been reading things thoroughly enough, sorry again.

Calzone

Just update package-info.xml with:
<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ATTENTION: If you are trying to install this manually, you should try
the package manager.  If it will not work for you, please take a look
at the following for information on this format:
http://mods.simplemachines.org/docs/manual-install.php
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
    <id>daniel15:CAPTCHA</id>
    <name>CAPTCHA (code verification)</name>
    <version>0.1.1</version>
    <type>modification</type>

<upgrade from="0.1">
<readme>readme-up.txt</readme>

<require-dir name="captcha" destination="$boarddir" />
        <modification format="xml" type="file">up-0.1-0.1.1.xml</modification>
</upgrade>

    <install for="1.0 RC2, 1.0, 1.0.1-1.0.99">
        <readme>readme-new.txt</readme>

<require-dir name="captcha" destination="$boarddir" />
        <modification format="xml" type="file">install.xml</modification>
        <code>installScript.php</code>
    </install>

<uninstall for="1.0 RC2, 1.0, 1.0.1-1.0.99">
<modification type="file" reverse="true">install.xml</modification>
</uninstall>

<install for="1.1 RC1, 1.1 RC2, 1.1 RC3">
        <readme>readme-new.txt</readme>

<require-dir name="captcha" destination="$boarddir" />
        <modification format="xml" type="file">install-1.1rc2.xml</modification>
        <code>installScript.php</code>
</install>

<uninstall for="1.1 RC1, 1.1 RC2, 1.1 RC3">
<modification type="file" reverse="true">install-1.1rc2.xml</modification>
</uninstall>

<install>
<readme type="inline">Sorry, but the CAPTCHA Mod doesn't support your SMF version! Please email Daniel15 at [email protected] for more information!</readme>
</install>


</package-info>
Greetings
Calzone

Bailz

SMF Version: SMF 1.1 RC2
I've installed the Captcha mod succesfully but whenever I view the registration page I get the following error:


Fatal error: Call to undefined function: show_captcha() in /mounted-storage/home24a/sub003/sc22826-LAGM/www/forum/Sources/Register.php on line 79

Can anyone advise?

RoarinRow

Quote from: Calzone on August 28, 2006, 08:12:46 AM
Just update package-info.xml with:
<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ATTENTION: If you are trying to install this manually, you should try
the package manager.  If it will not work for you, please take a look
at the following for information on this format:
http://mods.simplemachines.org/docs/manual-install.php
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
    <id>daniel15:CAPTCHA</id>
    <name>CAPTCHA (code verification)</name>
    <version>0.1.1</version>
    <type>modification</type>

<upgrade from="0.1">
<readme>readme-up.txt</readme>

<require-dir name="captcha" destination="$boarddir" />
        <modification format="xml" type="file">up-0.1-0.1.1.xml</modification>
</upgrade>

    <install for="1.0 RC2, 1.0, 1.0.1-1.0.99">
        <readme>readme-new.txt</readme>

<require-dir name="captcha" destination="$boarddir" />
        <modification format="xml" type="file">install.xml</modification>
        <code>installScript.php</code>
    </install>

<uninstall for="1.0 RC2, 1.0, 1.0.1-1.0.99">
<modification type="file" reverse="true">install.xml</modification>
</uninstall>

<install for="1.1 RC1, 1.1 RC2, 1.1 RC3">
        <readme>readme-new.txt</readme>

<require-dir name="captcha" destination="$boarddir" />
        <modification format="xml" type="file">install-1.1rc2.xml</modification>
        <code>installScript.php</code>
</install>

<uninstall for="1.1 RC1, 1.1 RC2, 1.1 RC3">
<modification type="file" reverse="true">install-1.1rc2.xml</modification>
</uninstall>

<install>
<readme type="inline">Sorry, but the CAPTCHA Mod doesn't support your SMF version! Please email Daniel15 at [email protected] for more information!</readme>
</install>


</package-info>


Has anyone tried this update on RC3?  Any problems?

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

RoarinRow

I tried the code above and get these errors:

1. Extract Tree ./captcha 
2. Execute Modification ./Sources/Register.php                                             Test successful
3. Execute Modification ./Themes/default/Register.template.php                       Test failed
4. Execute Modification ./Sources/Post.php                                                  Test successful
5. Execute Modification ./Themes/default/Post.template.php                            Test successful
6. Execute Modification ./Themes/default/languages/Modifications.english.php     Test successful
7. Execute Modification ./Sources/ModSettings.php                                        Test failed
8. Execute Code installScript.php

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

Gobo

Quote from: HarzeM on August 24, 2006, 01:57:40 AM
Quote from: Bigguy on August 24, 2006, 01:55:18 AM
Rc3 has built in captcha. You won`t need this mod.

For now, it is unreadable, and doesn't affect guest posting. This is why that mod is still requested.

i cant believe they messed up the 1 feature i was looking forward to  :o

Harzem

Quote from: akulion on September 15, 2006, 07:30:00 AM
i cant believe they messed up the 1 feature i was looking forward to  :o

Don't worry, my new mod for captcha will probably be released tomorrow.

Gobo

Quote
Don't worry, my new mod for captcha will probably be released tomorrow.

cool cant wait!! HarzeM this is a bit off topic but do you think you could help out with this - if not no problem :D

Advertisement: