News:

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

Main Menu

Advanced Visual Verification

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

Previous topic - Next topic

Harzem

@ Craig:

I can't guarranty that it will work perfectly. But this would be what I'll try:

* Copy the subs-sound.php of rc3 to your forum, and sound folder in the theme directory.
* Replace Login.english.php file of your forum with rc3 one.
* Edit register template and source file according to the changes that the mod suggests for rc3. You won't be able to find all codes, but try to find the places where the codes are supposed to be, then play with them a bit.
* install the mod, ignoring the warnings on the flies you've edited.
* You don't need the subs-graphics file.

Of course, you may mess everything up, so create backups of the files you've edited.

If it doesn't work, I don't know how to imitate rc3 behavior :) I'm not planning to create a mod for RC2, because it doesn't have built-in sound support. My mod doesn't create sound functionality, just modifies the current one. But the mod totally replaces graphics functionality.


@ micaug:

I have no idea why it won't display it in your forum. I have a Turkish version of the mod and it works without problem. Have you translated the strings, or just copied and pasted?

Craig

WOW quick responce... thank you very much that puts me in the right direction...

i will give it a go and let you know how i got on... if it dont work i will have a copy of it when i upgrade  ;)

im always the last to upgrade just find the pick of mods better that way  :)

thank again   ;)

micaug

Michel (French)

Harzem

Quote from: Inque187 on September 19, 2006, 05:54:02 PM
Works like a charm! Thank you! Much better than the previous. Is there any way to set it to be visible with dark themes or different color themes? It it seems out of place when it doesn't match the theme color. I have a black background and the only setting that comes close to looking good is the "random colors" but it is harder to read.

http://forums.fbi-clan.org/index.php?action=register

Open Verification.php and find:

      $background_color = array(234, 237, 243);
      $foreground_color = array(64, 101, 136);

Then change the RGB color values to something you want. use paint or photoshop to detect the colors for example. I think this will work:

      $background_color = array(68,68,68);
      $foreground_color = array(200,210,220);

Quote from: micaug on September 20, 2006, 04:42:38 PM
HarzeM,

I've just copy and past.

Can you open Verification.php, find:

      header('Content-type: image/gif');

replace:

      // header('Content-type: image/gif');

Then visit http://familleben.lespages.info/forum/index.php?action=verificationcode;rand=bfcc361cc6179ed113088a973420ac2a
and tell me the error it gives?

Craig

Quote from: HarzeM on September 20, 2006, 04:11:31 PM
@ Craig:

I can't guarranty that it will work perfectly. But this would be what I'll try:

* Copy the subs-sound.php of rc3 to your forum, and sound folder in the theme directory.
* Replace Login.english.php file of your forum with rc3 one.
* Edit register template and source file according to the changes that the mod suggests for rc3. You won't be able to find all codes, but try to find the places where the codes are supposed to be, then play with them a bit.
* install the mod, ignoring the warnings on the flies you've edited.
* You don't need the subs-graphics file.

Of course, you may mess everything up, so create backups of the files you've edited.

If it doesn't work, I don't know how to imitate rc3 behavior :) I'm not planning to create a mod for RC2, because it doesn't have built-in sound support. My mod doesn't create sound functionality, just modifies the current one. But the mod totally replaces graphics functionality.

UPDATE: worked like a charm thank you very much saves me alot of time on upgrading and can now wait a bit longer  8)

Your are the absolute man  ;)

on thing i did do was use the rc3 reg template, rc reg source code and the rc3 managereg as none of my mods effect these pages... added your englesh lang to my modifications english lang and edited my index.php by looking at where the code was in the rc3 one.

all working as ive just done a test reg hope someone else finds this useful who is in the same position as me... love the sound option very cool.

thanks again... dont allow guest posting so didnt need the post part and my search is open to members but may add the feature to the serch also and open that up  :D

one thing as spammers usually hit and run with one post it might be a great idea to add it to new members with under say 5 posts also  :)

Great mod and a BIG THANK YOU for your help  ;)

derMalue

Hi HarzM

thanks for the mod.. i like it very much ...

I have a German Site, everything works fine with your mod after copying the english string block from index.english.php in index.german.php

One little Probleme is left and i´m to blind to find the solution  :'(

My Question: in which file can i translate the text in the "newpost-page" for guests:

Quote
Visual verification:

Type the letters shown in the picture
You should read 4 characters in this image.

               (image)

Type the letters shown in the picture
Listen to the letters|Request another image 

I didn´t find this words in index.english.php

(i hope you understand me  ??? )

greetz

der Malue

Craig

Quote from: derMalue on September 20, 2006, 06:29:05 PM
Hi HarzM

thanks for the mod.. i like it very much ...

I have a German Site, everything works fine with your mod after copying the english string block from index.english.php in index.german.php

One little Probleme is left and i´m to blind to find the solution  :'(

My Question: in which file can i translate the text in the "newpost-page" for guests:

Quote
Visual verification:

Type the letters shown in the picture
You should read 4 characters in this image.

               (image)

Type the letters shown in the picture
Listen to the letters|Request another image 

I didn´t find this words in index.english.php

(i hope you understand me  ??? )

greetz

der Malue

well as ive been helped im gonna try and help you  :)

hi derMalue on mine the text...

QuoteType the letters shown in the picture
Listen to the letters|Request another image

it is in the login.english.php file... i dont know if there is a login.german.php file as i only use english

and the

QuoteYou should read 4 characters in this image.

is in the moded english.language.php file already called...

$txt['verificationReadChars'] = 'You should read <b>%s</b> characters in this image.';

hope that helped  ;)

R3v3ng3

Hy all... I 'm new here and i have a problem ...when I go to Admin/Packages /Browse Packages i can see Advanced Visual Verification (captcha) 1.0...if I choose Install Now! i get this error : The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
I have SMF 1.1 RC3 and i don't know what to do..i tried to upload the pack after i downloaded but when i choose [ Apply Mod ] i get some FPT problem's ,i know my user and pass ..but still..:"Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager."
Pls HELP !  :( i really need this mod

Harzem

Can you try to unzip the package to your own computer? If it unzipped properly, then the package isn't corrupt and we'll look at other problems.

derMalue

Quote from: Craig on September 20, 2006, 08:02:02 PM

well as ive been helped im gonna try and help you  :)

hi derMalue on mine the text...

QuoteType the letters shown in the picture
Listen to the letters|Request another image

it is in the login.english.php file... i dont know if there is a login.german.php file as i only use english

and the

QuoteYou should read 4 characters in this image.

is in the moded english.language.php file already called...

$txt['verificationReadChars'] = 'You should read <b>%s</b> characters in this image.';

hope that helped  ;)

Hi Craig...

my problem is solved ... THX alot. There is a login.german.php and in this file is a "section" called //untranslated ...

and with your help i found the right row in the index.english.php (i´m Born to be blind)

thx and greetz from (good old) Germany

der Malue

R3v3ng3

Quote from: HarzeM on September 22, 2006, 10:03:37 AM
Can you try to unzip the package to your own computer? If it unzipped properly, then the package isn't corrupt and we'll look at other problems.
I have unzipped the package to my own computer..and  didn't get any problems...but i can't apply this mod to my forum...i tried other mods..and they coud be installed ..but in this case when i try to apply this one ...the forum askes my for my ftp user/pass/host..and the path to the SMF...a wrote the right user...etc. but still that message doesn't dissapear.
Pls help & 10x 4 posting

Harzem

Then can you try CHMOD'ing your Themes/default folder and Sources folder to 777 and retry installing the package?

Also, when it asks for your FTP password, why don't you type it?

R3v3ng3

#32
Quote from: HarzeM on September 23, 2006, 05:45:04 AM
Then can you try CHMOD'ing your Themes/default folder and Sources folder to 777 and retry installing the package?
I'll try that ,10x
Quote from: HarzeM on September 23, 2006, 05:45:04 AM
Also, when it asks for your FTP password, why don't you type it?
That is one of  my problems i typed my password and my user and my host but nothing happens...just asking for them again


edited by me
Yes that was the answer to my problem CHMOD'ing Themes/default folder and Sources folder but now after applying the mod i get another error

2. Execute Modification install.xml -Modification parse error
3. Execute Modification - Modification parse error
@ Installations actions for "Advanced Visual Verification"  i can see with red at the description of this 2 files that parse error. After pressing install now i get a white screen nothing happens next ..I hope u have patience with me  ;)

Harzem

R3v3ng3, create a folder named "temp" under "Packages" folder, CHMOD it to 777, and upload an arbitrary file into it so that the folder is not empty. Then reinstall the mod.

micaug, I could see the problem after installing two languages. I could see no reason, and I'm shocked why it resists to work with the second language. But I have a temporary solution:

Open index.php, find:

require_once(dirname(__FILE__) . '/Settings.php');

add after:


if(isset($_REQUEST['action']) && strpos($_REQUEST['action'], 'verificationcode') !== FALSE)
$language = 'english';


So that it will emulate english language just for the code.

Harzem

Ok, found the real problem but I have no idea how to solve it. You are using French UTF-8, and after you copy and paste the language string to french file, you are not able to save it to french language file properly. This is also the case here. If I don't paste anything to turkish file, the image works. But when I edit the turkish file, the code stops working. I need to find a way to save the file properly.

micaug

HarzeM,
My problem is solved.
I reloaded the french-utf8 langage pack and copy your part at the end.

I don't know what was wrong in the preview package. I think I download it from the french SMF forum.
Now I am using the parckage from the official site and your package is working properly.

Thanks

Michel
Michel (French)

Harzem

Also I've seen that there is a problem when saving UTF-8 language files. When editing, I was not able to save the UTF-8 files properly. Here is the solution, if anyone else needs:

http://www.simplemachines.org/community/index.php?topic=115860.msg741481#msg741481

R3v3ng3

Quote from: HarzeM on September 24, 2006, 08:55:43 AM
R3v3ng3, create a folder named "temp" under "Packages" folder, CHMOD it to 777, and upload an arbitrary file into it so that the folder is not empty. Then reinstall the mod.
Done that,but i have the same problem  :(..after install the white screen

Harzem

Can you install any other modification?

Daniel15

HarzeM, would it be possible to port this mod to SMF 1.0, or is it dependant on some of the features of SMF 1.1 RC3? (I haven't looked through your code yet)...
Otherwise, nice work! This one is heaps better than my one ;)
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!

Advertisement: