Demo

Probiere ClanSphere aus und teste daran herum. Demo


Antworten: 11
Seite [1]
Caps


Rock the board





Beiträge: 59
# Thema - 20.06.2011 um 07:04 Uhr
For those who can not easily read the security code, is there a way to increase the security code's font size? If so, where?
Inaktiv
hajo ClanSphere Team


VIP - Poster




Herkunft: Barsbüttel
Beiträge: 9411
# Antwort: 1 - 20.06.2011 um 07:24 Uhr
you can change the function in system/core/gd.php named "captcha" to have the captcha in another size / color / etc.

there is no option inside the cms to change it by configuration, sorry.


------------------
ClanSphere - professional clan care starts here

Inaktiv
|
Caps
Thread-Ersteller


Rock the board





Beiträge: 59
# Antwort: 2 - 20.06.2011 um 08:50 Uhr
May I ask if you can give me the code and line number to increase font size - at your convenience.



Inaktiv
|
hajo ClanSphere Team


VIP - Poster




Herkunft: Barsbüttel
Beiträge: 9411
# Antwort: 3 - 20.06.2011 um 08:56 Uhr
line 32 beginning with imagestring

changes to that line may need an altered image size, too


------------------
ClanSphere - professional clan care starts here

Inaktiv
|
Caps
Thread-Ersteller


Rock the board





Beiträge: 59
# Antwort: 4 - 20.06.2011 um 16:41 Uhr
If the characters are too large they go off the box. The box or container also needs to increase in h/w. When a character has similar color as the background, the image is difficult to detect. This is the feedback I am receiving. Increasing the h/w would solve this.


Zuletzt editiert von Caps am 20.06.2011 um 17:02 Uhr (3x Editiert)
Inaktiv
|
Jam2 ClanSphere Team


Highlander





Beiträge: 3291
# Antwort: 5 - 20.06.2011 um 16:41 Uhr
jjj?^^


------------------
Gruß/ Best regards
Jam2

Nützliche Forumbeiträge/Codepastes: (Useful comments in our board / codepastes)
Template Switch for index.php
Board Navlist last posts

Edi: könnte man denn auch hier eine erweiterung einfügen?
Jam2: das web ist wie toyota.....
Edi: hö ?
Jam2: nichts ist unmöglich!


Offline
|
hajo ClanSphere Team


VIP - Poster




Herkunft: Barsbüttel
Beiträge: 9411
# Antwort: 6 - 20.06.2011 um 17:09 Uhr
as i said before:

changes to that line may need an altered image size, too


the image size is calculated above and adds a few pixels per char to the width, height is a static value as far as i remember it


------------------
ClanSphere - professional clan care starts here

Inaktiv
|
Caps
Thread-Ersteller


Rock the board





Beiträge: 59
# Antwort: 7 - 20.06.2011 um 19:46 Uhr
Was not able to increase the security box. Please assist in making the overall container larger.

 
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
1. / 2. / ... 
   

  $gd_info 
gd_info();
  
$chars strlen($hash);
  
$height $chars == 18 40;
  
$charsize $chars 20;
  
$img ImageCreateTrueColor($charsize,$height);
  
$bgc ImageColorAllocate($img,rand(0,80),rand(0,80),rand(0,80));
  
ImageFill($img,0,0,$bgc);

  for(
$i=1;$i<$chars;$i++) {
    
$linecolor ImageColorAllocate($img,rand(0,150),rand(0,150),rand(0,150));
    
ImageLine($img$i 200$i 20$height$linecolor);
  }
  
$linecolor ImageColorAllocate($img,rand(0,150),rand(0,150),rand(0,150));
  
ImageLine($img0$height 3$charsize$height 3$linecolor);
  
$linecolor ImageColorAllocate($img,rand(0,150),rand(0,150),rand(0,150));
  
ImageLine($img0$height 2$charsize$height 2$linecolor);

  
$linecolor ImageColorAllocate($img,0,0,0);
  
ImageLine($img00$charsize0$linecolor);
  
ImageLine($img0$height 1$charsize$height 1$linecolor);
  
ImageLine($img000$height 1$linecolor);
  
ImageLine($img$charsize 80$charsize 5$height 5$linecolor);

  for(
$i=0;$i<$chars;$i++) {
    
$textcolor ImageColorAllocate($img,rand(100,250),rand(100,250),rand(100,250));
    
ImageString($img,rand(3,5),rand(($i 20 2),($i 20 8)),rand(90,$height 40),$hash{$i},$textcolor);
  }



Inaktiv
|
hajo ClanSphere Team


VIP - Poster




Herkunft: Barsbüttel
Beiträge: 9411
# Antwort: 8 - 20.06.2011 um 20:42 Uhr
$img = ImageCreateTrueColor($charsize,$height); on line 7 of your pasted code

$height contains the overall height (defined in line 5 for normal and 3-digit captcha code) whilst $charsize is defined on a per char basis on line 6.


------------------
ClanSphere - professional clan care starts here

Inaktiv
|
Caps
Thread-Ersteller


Rock the board





Beiträge: 59
# Antwort: 9 - 22.06.2011 um 00:51 Uhr
Sorry I messed it up. There has to be a better way. I would rather have a calculated field then Captcha any day. Unless it is literally given to me, I will distroy it.


Zuletzt editiert von Caps am 22.06.2011 um 00:53 Uhr (1x Editiert)
Inaktiv
|
flyingdevil


Rock the board





Beiträge: 79
# Antwort: 10 - 01.06.2012 um 19:02 Uhr
Kann das hier mal bitte nochmal auf Deutsch erklären .?
Ich würde die anzahl der Zeichen und das BG-Bild auch gerne ändern.

mfg


Inaktiv
|
Blu3ye


Try to beat me




Herkunft: Albstadt
Beiträge: 162
# Antwort: 11 - 02.01.2013 um 15:37 Uhr
I would like to change the font to a better readable where i doent look the same like l
Not that easy changeable?

Grrr.... found explanation of imagestring here http://php.net/manual/de/function.imagestring.php

So changing second value SHOULD change the font... but I don´t get it
ImageString($img,rand(3,5),5 + rand(($i * 20 + 2),($i * 20 + 8)),rand(2,$height - 20),$hash{$i},$textcolor);


------------------


Zuletzt editiert von Blu3ye am 02.01.2013 um 16:55 Uhr (1x Editiert)
Inaktiv
|
Antworten: 11
Seite [1]


Sie müssen sich registrieren, um zu antworten.