News:

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

Main Menu

Advanced Visual Verification

Started by Harzem, September 18, 2006, 08:46:15 AM

Previous topic - Next topic

SBGamesCone

I just installed this mod because the users were complaining that the default captcha was difficult to read and get properly. The mod is working great with the exception being that the Visual Verification link doesn't show up in the Admin > Registration module with the Themis theme [nofollow]. I can switch to the Core Default theme and the link is there. I can see that it is attempting to build it, but it is unable to display the text for the link:

tr class="catbg">
<td align="left">
<img src="http://www.thecoverproject.net/forums/Themes/themis11rc2/images/selected.gif" alt="*" /> <b><a href="http://www.thecoverproject.net/forums/index.php?action=regcenter;sa=register">Register new member</a></b> |
<a href="http://www.thecoverproject.net/forums/index.php?action=regcenter;sa=agreement">Registration Agreement</a> |
<a href="http://www.thecoverproject.net/forums/index.php?action=regcenter;sa=reservednames">Set Reserved Names</a> |
<a href="http://www.thecoverproject.net/forums/index.php?action=regcenter;sa=settings">Settings</a> |
<a href="http://www.thecoverproject.net/forums/index.php?action=regcenter;sa=verification"></a>

</td>
</tr>


I am going to dig through some more of the source and try to track back where the problem might be coming from and post here as a followup.

SBGamesCone

Found it. In this part of the install.xml for your mod, the very last part where you modify the index.english.php file, it only seemed to do it for the default theme. I went in and manually added it and all is well now, thanks for the great mod.

<file name="$languagedir/index.english.php">
<operation>
<search position="end"></search>
<add><![CDATA[
// Advanced Visual Verification Mod Start
$txt['verificationVisual'] = 'Visual Verification';
$txt['verificationSettingsDesc'] = 'Here you can change many settings about visual verification in your site.';

$txt['enable_visual_verification'] = 'Enable visual verification';
$txt['verificationCodeChars'] = 'Number of characters in the verification image';
$txt['verificationMaxTries'] = 'Number of failures before blocking the user';
$txt['verificationWaitTime'] = 'Minutes before blocking expires';

$txt['verificationAskRegister'] = 'Ask in registration';
$txt['verificationAskGuestPost'] = 'Ask in guest posting';
$txt['verificationAskPM'] = 'Ask when sending personal messages';
$txt['verificationPMvalid'] = 'Maximum personal messages a verification image is valid for';
$txt['verificationPMvalidDesc'] = 'This is the number of personal messages which users will not be asked for image verification once they entered the code correctly. Recommended value is around 5-10.';
$txt['verificationAskGuestSearch'] = 'Ask in guest searches';
$txt['verificationAskMemberSearch'] = 'Ask in member searches';
$txt['verificationSearchValid'] = 'Maximum searches a verification image is valid for';
$txt['verificationSearchValidDesc'] = 'This is the number of searches which users will not be asked for image verification once they entered the code correctly. Recommended value is around 5-10';

$txt['verificationImageBackground'] = 'Image background type';
$txt['verificationBGnoise'] = 'Noise';
$txt['verificationBGnoiseDesc'] = 'Fast, but not very effective. You can use this unless you suspect your forum still gets automatic registration.';
$txt['verificationBGlines'] = 'Distorted Lines';
$txt['verificationBGlinesDesc'] = 'Recommended. Generates easy to read but hard to guess characters.';
$txt['verificationBGcolored'] = 'Random Colors';
$txt['verificationBGcoloredDesc'] = 'Hardest to break, but slow and hard to read. Not all servers may be able to display this. See a preview before actually using it.';
$txt['verificationBGcircles'] = 'Inverted circles';
$txt['verificationBGcirclesDesc'] = 'Hardest to break, but slow and hard to read.';

$txt['verificationImageSize'] = 'Image size';
$txt['verificationImageSizeSmall'] = 'Small';
$txt['verificationImageSizeMedium'] = 'Medium';
$txt['verificationImageSizeLarge'] = 'Large';

$txt['verificationGDnotsupported'] = 'Your server doesn\'t have GD library installed. Verification images will be generated without GD.';

$txt['verificationPreview'] = 'Preview Image';
$txt['verificationPreviewDesc'] = '(Please wait when the preview is being generated)';

$txt['verificationReadChars'] = 'You should read <b>%s</b> characters in this image.';
$txt['verification_brute_force'] = 'You have exceeded the limit of visual verification failures. You should wait %s minutes before you can try again.';
$txt['error_visual_verification_failed'] = 'The letters you typed don\'t match the letters that were shown in the picture.';]]></add>
</operation>
</file>

Skipdawg

Well thee is a parse error on the review page. But wanted to say this is helping allot in cutting down spammers trying to register.

I was hesitant having a vision issue myself but this mod beats the default in RC3 by far and no complaints yet.  ;)
Skipdawg's Community

Powered by SMF 1.1.3

Daniel15

Quotethe very last part where you modify the index.english.php file, it only seemed to do it for the default theme
I thought that all the language files were in the default theme only? I don't believe that other themes need to have a Languages directory...


QuoteWell thee is a parse error on the review page
Yep, I've already reported that :)
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

ragots

I have installed this mod and it works fine except for one thing.


When I log in as admin  and I try to edit a post done by a guest,
when I try to save the changes, I get the error message telling me that I did not type the correct captcha code, although the captcha dialog did not come up while I edited the message left by the user.

Is there a way around this ?

Harzem

Quote from: ragots on October 03, 2006, 05:06:30 AM
I have installed this mod and it works fine except for one thing.


When I log in as admin  and I try to edit a post done by a guest,
when I try to save the changes, I get the error message telling me that I did not type the correct captcha code, although the captcha dialog did not come up while I edited the message left by the user.

Is there a way around this ?

I actually never thought of that. I'll investigate it.

ragots

#66
It's a rare bug I guess.
Here's a link to my board just in case.
http://love.mixbeat.com/hype/index.php?option=com_smf&Itemid=231

I guess a quick fix would be to have the captcha box come up when admin click on "modify" to edit a post left by a visitor who had to type the captcha code.

I'm just guessing.

thanks for investigating this.


Harzem

The exact solution is this:

Open Post.php, find:


// Check whether the visual verification code was entered correctly.
if (empty($modSettings['disable_visual_verification']) && empty($modSettings['verificationDontAskGuestPost']))



replace:


// Check whether the visual verification code was entered correctly, and we are not modifying the message.
if (empty($modSettings['disable_visual_verification']) && empty($modSettings['verificationDontAskGuestPost']) && isset($_REQUEST['msg']) && !empty($topic))


I'll release 1.0.1 bug fix version soon. But not right today. Thanks for pointing out.

Please let me know if this worked, because I didn't try.

ragots

#68
It DID NOT work.

admin is asked to enter captcha code while attempting to "modify" and save changes he just did by clicking "modify" in a post left by a visitor...

:(

ArdieM

#69
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    installverification.php    
2.    Execute Modification    install.xml    Modification parse error
3.    Execute Modification    -    Modification parse error
4.    Extract File    ./Sources/Verification.php    
5.    Extract Tree    ./Themes/default/ttf_fonts    



Can i savely install this mod or what is going on with it???

Harzem

This is a problem about your package permissions, not this mod.

CHMOD the packages directory to 777 and retry.

ArdieM

damn i totally forgot that!!!

thanks alot for the fast reply!!!

im sorry for stealing your time :)

su programm icin COK tesekürler!

Harzem

Quote from: ArdieM on October 05, 2006, 04:34:48 PM
su programm icin COK tesekürler!

Hey I know that language! :) Where do you live? (I ask because your all previous posts were in engish).

Daniel15

QuoteWhen I log in as admin  and I try to edit a post done by a guest,
when I try to save the changes, I get the error message telling me that I did not type the correct captcha code, although the captcha dialog did not come up while I edited the message left by the user.
Haha, strangely enough, that was also a bug in my CAPTCHA MOD :P. I solved it slightly differently though (my one checks if the user is a guest, and only shows the CAPTCHA if they are)
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

ArdieM

ben almanyada yasiyorum ama türküm. sakarya-->adapazaridan geliyom :)

kusura bakma ama türkcem pek iyi degil

truelight5

I am running SMF 1.1 RC3 and TinyPortal v0.9.5--

I had this working fine, but then I installed a blog mod to the site and it broke it.  It "shows" up like normal but the place where the images are supposed to be is just an x like a broken image type thing. (I can get a screen shot of it if you would like...)  I tried uninstalling and reinstalling and the install went fine...but still not showing up.

The blog mod is located here:

http://www.tinyportal.net/smf/index.php?topic=6662.0

And there is a mention of this issue on that site in this thread:

http://www.tinyportal.net/smf/index.php?topic=8773.0

I *love* the functionality of this mod, and I really want to use both...is it possible?

AND it appears that even though I "uninstall" this, it is still "working" ??  Now I am really confused.  My packages look like this right now:



So how is this working at all if I uninstalled it?

The blog is no longer showing up...

I'm sorry if I am a pain...I've broken it lol

Blessings!
Susie


truelight5

Oh and maybe the verification I am seeing now is the captcha one?? How could I tell the difference? I didn't think of that but checked the admin section and the options for the advanced verification are no longer there so it must be gone?  I dunno...I tried reinstalling just the blog and the verifcation is broken again...



I am confused...how can I fix this?

Blessings!
Susie

Harzem

Are you using a language other than english in your forum? Is it UTF-8?

truelight5

The forum only uses english...and I am sorry to be computer illiterate right now but I am not sure what UTF-8 is...lol Does that mean it is or isn't? lol  ;D

Blessings!
Susie

truelight5

Okay I found an update of the blog script here:

http://www.xyfrauen.com/index.php?topic=294.0

Installed it, reinstalled the advanced verification and it appears everything is working normally now!!

:D

Blessings!
Susie

Advertisement: