Welcome, Guest

1.7.1 captcha is way too large
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: 1.7.1 captcha is way too large

1.7.1 captcha is way too large 1 year, 11 months ago #12335

The captcha on 1.7 as is beautiful and small compared to 1.7.1 (too large, ugly, and dominates the page).

The captcha for 1.7 is one of the nicest captcha's I've seen on the entire internet! Please bring this back!

Also, I've tried to upgrade one site from 1.7 to 1.7.1 and the captcha did not work, so I'll probably stay with 1.7 until I do not need to upgrade.

thanks for your hard work.

Re:1.7.1 captcha is way too large 1 year, 11 months ago #12347

Hi,

You can change different params of captcha in securimage_show.php.
You find it in components/com_facileforms/images/captcha.

you can change width and height by editing:

$img->image_width = 230;
$img->image_height = 50;


You also can change all colors here and number of characters and lines...
$img->image_bg_color = new Securimage_Color(0xe3, 0xe6, 0xcb); //e3e6cb


Be alerted for notation here:
(0xe3, 0xe6, 0xcb) = same as hex #e3e6cb

Hope this helped you
Regards,
Benno
  • klipper
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Karma: 2

Re:1.7.1 captcha is way too large 1 year, 10 months ago #12854

Nice suggestion Benno, but I guess the modification will be lost when installing an update. So I second beyondthenet's request for a smaller, more aesthetic and visually appealing captcha image.
  • pjdevries

Re:1.7.1 captcha is way too large 1 year, 10 months ago #12933

I totally agree with you! So I will try to leave here a step by step procedure to change the captcha

first step go to: /components/com_facileforms/images/captcha/secureimage_show.php

at the end of the page you will find the following:
//Change some settings

$img->image_width = 155;
$img->image_height = 28;
$img->perturbation = 0.1; // 1.0 = high distortion, higher numbers = more distortion
$img->image_bg_color = new Securimage_Color(0xe0, 0xe0, 0xe0); // e0e0e0
$img->text_color = new Securimage_Color(0xff, 0x00, 0x00);
$img->text_transparency_percentage = 100; // 100 = completely transparent
$img->num_lines = 0;
$img->code_length = 3;
$img->line_color = new Securimage_Color(0x08, 0xbf, 0xff);
$img->signature_color = new Securimage_Color(rand(0, 64), rand(64, 128), rand(128, 255));
$img->image_type = SI_IMAGE_PNG;

/// set to true if no TTF support

$img->use_gd_font = true;
$img->gd_font_file = JPATH_SITE . '/components/com_facileforms/images/captcha/gdfonts/automatic.gdf';

//////////////////

if($img->use_gd_font)
{
$img->text_color = '#053a48';
}

$img->show(''); // alternate use: $img->show('/path/to/background_image.jpg');

First of all you can compare the code above with the original and you can see the differences at the following address: mediterraneandreamweddings.com/joomla/contact.html

As you can see I changed the dimensions of image from 250x80 to 155x55, it was to big and ugly!

I also reduce pertubation to the ninimum, my costumers don't need to fight to an obstacle to send me an email and robots that do not read automatically the prior captcha, won't read this too.

I didn't like the background color as well and then I picked the same color of the menu bar of the site and changed it to e0e0e0 I divided it in 3 pieces: e0 e0 e0 and did the following: 0x + e0 = 0xe0 as you can see I substituted them and the result was: new Securimage_Color(0xe0, 0xe0, 0xe0)

I didn't like the font, so I turned into "true" the following line: $img->use_gd_font = true;
and then I uploaded a new font (automatic.gdf to the gdfont folder and changed the font in the current file to automatic.gdf . I preferred this font as easier and less difficult to read

I also reduced from 8 to 0 the number of blue lines
and reduced from 5 to 3 the number of letters, I think 3 are enough!

Well, I don't remember if I did something else but think is quite clear you can change the captcha in minutes once you know how.

Hope this can help for future users!
Toñito
  • iabichino
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0

Re:1.7.1 captcha is way too large 1 year, 10 months ago #12934

I tried to upload the thread above at least 5 times, it kept telling me it was spam... and had to rewrite and submit again and again...

Hey, buddies out there! make our lives easier this is not a obstacle race!!!!!

life is short!
Toñito
  • iabichino
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0

Re:1.7.1 captcha is way too large 1 year, 9 months ago #13313

Hi iabichino; thanks for the information. How did you set the order of the fields at; mediterraneandreamweddings.com/joomla/contact.html

I like the way you put name, address, city, state fields. how can we arrange the order of the form fileds like you did?
Thanks, Mike
  • strdesign
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
  • Page:
  • 1
  • 2
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.35 seconds

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany