Hi everyone,
I'm trying to customise the colours of the image from the 'Anti spam' module but I can't remember how. I did it once a long time ago but now ... 😟 .
Can somebody tell me which file should I look at.
Cheers!
I'm trying to customise the colours of the image from the 'Anti spam' module but I can't remember how. I did it once a long time ago but now ... 😟 .
Can somebody tell me which file should I look at.
Cheers!
Hi,
You're looking for the chrono_verification.php file. Around lines 40-43 the different colors that are used get defined. The lines looks somewhat like this:
The three numbers are the Red, Green, and Blue values for the desired color, and $white is used whenever this color is used/referenced ($white is used for the image background, $greylight and $black are used to write the actual text and it's "shadow").
/Fredrik
You're looking for the chrono_verification.php file. Around lines 40-43 the different colors that are used get defined. The lines looks somewhat like this:
$white = imagecolorallocate($im, 255, 255, 255);The three numbers are the Red, Green, and Blue values for the desired color, and $white is used whenever this color is used/referenced ($white is used for the image background, $greylight and $black are used to write the actual text and it's "shadow").
/Fredrik
Thanks Fredrik!
I've managed to change the colours on another site but even the white in the code is 255.255.255 I still have black background on the site I'm working at the moment. That is really strange and I just can't get what's going on. I've never used the joomla cash on this site. Any suggestions?
Thanks!
I've managed to change the colours on another site but even the white in the code is 255.255.255 I still have black background on the site I'm working at the moment. That is really strange and I just can't get what's going on. I've never used the joomla cash on this site. Any suggestions?
Thanks!
Hi genov,
the image colors will not be cached on refresh, try to play with these numbers and you should see the changes after saving the file and refreshing the page!
Regards,
Max
the image colors will not be cached on refresh, try to play with these numbers and you should see the changes after saving the file and refreshing the page!
Regards,
Max
This topic is locked and no more replies can be posted.
