News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

reCAPTCHA for SMF

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

Previous topic - Next topic

Realinfo

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

I have 1.1.8 smf.............

JoshieDaMan

The register template filed here too and plus the custom theme don't even have register.template so that uses the default theme register template.

Realinfo

So How can I slove that problem.......... I got too many spammer daily................

青山 素子

You will likely need to manually apply those changes. If you have a different modification that also alters registration, it is likely the exact edit point was changed just enough that the installer is confused.
Motoko-chan
Director, Simple Machines

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


Bulqr4eto

#144
Ok I did the manual install and I get this when I go to the register page

Template Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

You can also try refreshing this page.


How can I fix it ?

青山 素子

Undo the template changes you made, confirm it works again, then re-do the changes very carefully. You likely missed a single quote or semi-colon.
Motoko-chan
Director, Simple Machines

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


Bulqr4eto

I did everything and I think the problem is from here, Im using SMF 2.0 RC1...

Where I have to find


<input type="text" name="', $verify_id, '_vv[code]" value="', !empty($verify_context['text_value']) ? $verify_context['text_value'] : '', '" size="30" tabindex="', $context['tabindex']++, '" />
</div>';


And add after


}


But the problem is that I dont have

</div>';

I have only this

else
echo '
<img src="', $verify_context['image_href'], ';letter=1" alt="', $txt['visual_verification_description'], '" id="verification_image_', $verify_id, '_1" />
<img src="', $verify_context['image_href'], ';letter=2" alt="', $txt['visual_verification_description'], '" id="verification_image_', $verify_id, '_2" />
<img src="', $verify_context['image_href'], ';letter=3" alt="', $txt['visual_verification_description'], '" id="verification_image_', $verify_id, '_3" />
<img src="', $verify_context['image_href'], ';letter=4" alt="', $txt['visual_verification_description'], '" id="verification_image_', $verify_id, '_4" />
<img src="', $verify_context['image_href'], ';letter=5" alt="', $txt['visual_verification_description'], '" id="verification_image_', $verify_id, '_5" />';
if (WIRELESS)
echo '<br />
<input type="text" name="', $verify_id, '_vv[code]" value="', !empty($verify_context['text_value']) ? $verify_context['text_value'] : '', '" size="30" tabindex="', $context['tabindex']++, '" />';
else
echo '
<div class="smalltext" style="margin: 4px 0 8px 0;">
<a href="', $verify_context['image_href'], ';sound" id="visual_verification_', $verify_id, '_sound" rel="nofollow">', $txt['visual_verification_sound'], '</a> / <a href="#" id="visual_verification_', $verify_id, '_refresh">', $txt['visual_verification_request_new'], '</a><br /><br />
', $txt['visual_verification_description'], ':<br />
<input type="text" name="', $verify_id, '_vv[code]" value="', !empty($verify_context['text_value']) ? $verify_context['text_value'] : '', '" size="30" tabindex="', $context['tabindex']++, '" />
</div>';
}
else
{

crendot

hallo, i have to say that i like your mod very much

but now i have a question:
can someone tell me where i can edit the text on the left side?

i want

Visual Verification:

changed into

Visual Verification:
Type the words with space between them

thanks

ps.: sry for the bad english but i am not a native

jnix

This looks great thanks. But I'm having problems getting it working.

Using SMF v1.1.8

Package seems to have installed fine - showing in installed packages list.
But going to Admin>Registration>Settings, I can't see the recaptcha settings (screenshot attached)

Looking at my ManageRegistration.php file - the various reCaptcha lines are in there:

// Update the actual settings.
updateSettings(array(
'registration_method' => (int) $_POST['registration_method'],
'notify_new_registration' => isset($_POST['notify_new_registration']) ? 1 : 0,
'send_welcomeEmail' => isset($_POST['send_welcomeEmail']) ? 1 : 0,
'password_strength' => (int) $_POST['password_strength'],
'disable_visual_verification' => isset($_POST['visual_verification_type']) ? (int) $_POST['visual_verification_type'] : 0,

'recaptcha_enabled' => isset($_POST['recaptchaEnable']) ? 1 : 0,
'recaptcha_theme' => !empty($_POST['recaptchaTheme']) ? $_POST['recaptchaTheme'] : '',
'recaptcha_public_key' => !empty($_POST['recaptchaPublicKey']) ? $_POST['recaptchaPublicKey'] : '',
'recaptcha_private_key' => !empty($_POST['recaptchaPrivateKey']) ? $_POST['recaptchaPrivateKey'] : '',
'coppaAge' => (int) $_POST['coppaAge'],
'coppaType' => empty($_POST['coppaType']) ? 0 : (int) $_POST['coppaType'],
'coppaPost' => $_POST['coppaPost'],
'coppaFax' => !empty($_POST['coppaFax']) ? $_POST['coppaFax'] : '',
'coppaPhone' => !empty($_POST['coppaPhone']) ? $_POST['coppaPhone'] : '',
));


FYI I have previously had the Custom Profile Field Mod installed, but I've (apparently) removed it - it is in my list of installed packages but with "Apply mod" next to it.

Any ideas much appreciated


candidosa2

thank you
next time when update dot forget portuguese ( portuguese_pt and portuguese_brazilian )

Tiribulus

Quote from: jnix on May 05, 2009, 06:35:28 AM
This looks great thanks. But I'm having problems getting it working.

Using SMF v1.1.8

Package seems to have installed fine - showing in installed packages list.
But going to Admin>Registration>Settings, I can't see the recaptcha settings (screenshot attached)

Looking at my ManageRegistration.php file - the various reCaptcha lines are in there:

// Update the actual settings.
updateSettings(array(
'registration_method' => (int) $_POST['registration_method'],
'notify_new_registration' => isset($_POST['notify_new_registration']) ? 1 : 0,
'send_welcomeEmail' => isset($_POST['send_welcomeEmail']) ? 1 : 0,
'password_strength' => (int) $_POST['password_strength'],
'disable_visual_verification' => isset($_POST['visual_verification_type']) ? (int) $_POST['visual_verification_type'] : 0,

'recaptcha_enabled' => isset($_POST['recaptchaEnable']) ? 1 : 0,
'recaptcha_theme' => !empty($_POST['recaptchaTheme']) ? $_POST['recaptchaTheme'] : '',
'recaptcha_public_key' => !empty($_POST['recaptchaPublicKey']) ? $_POST['recaptchaPublicKey'] : '',
'recaptcha_private_key' => !empty($_POST['recaptchaPrivateKey']) ? $_POST['recaptchaPrivateKey'] : '',
'coppaAge' => (int) $_POST['coppaAge'],
'coppaType' => empty($_POST['coppaType']) ? 0 : (int) $_POST['coppaType'],
'coppaPost' => $_POST['coppaPost'],
'coppaFax' => !empty($_POST['coppaFax']) ? $_POST['coppaFax'] : '',
'coppaPhone' => !empty($_POST['coppaPhone']) ? $_POST['coppaPhone'] : '',
));


FYI I have previously had the Custom Profile Field Mod installed, but I've (apparently) removed it - it is in my list of installed packages but with "Apply mod" next to it.

Any ideas much appreciated

It's been a while since I set this up so I don't remember the exact sequence, but you did get your keys and install them right?

jnix

I don't get the link to obtain keys - as the fields don't show up in my admin screen.

Tiribulus

Quote from: jnix on May 08, 2009, 09:24:41 AM
I don't get the link to obtain keys - as the fields don't show up in my admin screen.

Yeah, forget my last post, I wasn't thinking clearly :) I'm sure it's a simple edit required somewhere. I've had tons of these kinds of situations with various mods and always figure em out, but with something like registration you're better off with somebody more knowledgeable helping you out. If it were me I'd look at the manual install routine for some clues. The answer has to be there. This mod has a relatively simple install and is theme independent.

青山 素子

Do you see things properly if you switch to the default theme?
Motoko-chan
Director, Simple Machines

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


tattooedpierre

I'm using UTF-8 on my forum and when I upload the mod (2.0RC1) I get this:


3. Execute Modification themes/core-20b3.xml Modification parse error
4. Execute Modification themes/core-20b3.xml Modification parse error
5. Execute Modification languages/english.xml Modification parse error
6. Execute Modification languages/english.xml Modification parse error


.. What do you suppose could be the matter?

jnix

Quote from: Motoko-chan on May 08, 2009, 11:06:50 AM
Do you see things properly if you switch to the default theme?

Yes - the relevant fields do show up when using default theme.

青山 素子

Your custom theme probably has a different template for that part of the admin area, which isn't reading those settings properly.
Motoko-chan
Director, Simple Machines

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


ɔɔɔɔɔɔuɥoɾ

#157
Thanks for the mod, nice.


recaptcha is not showing on my registration page at all.

It installed perfectly on sme 2 RC1 and i have created the keys for my domain and entered all the data, made sure its enabled and all other anti spam methods are disabled and nothing...

EDIT:

got it working, left the integrated one enabled, it replaces it so integrated one must be enabled too :)


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Leemy

When I try to upload the tar.gz it says
The package you tried to upload either is not a valid package or has become corrupted.
I cant upload just the .tar either

FragaCampos

#159
Hello there.
First of all, thank you very much for this mod.

I tried to install it, but i got an error on register.template.php. I also tried to install it manually via "Manual Install Instructions for SMF " but to no avail.
Can someone take a peek into my register.template.php?
Thanks in advance.

Advertisement: