Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Image Verification in v4.1.5

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-01-2007, 11:33 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,471
 

Default Image Verification in v4.1.5

Hello ...

Does anyone know how to change the colour of the foreground text within image verification block? ...

I found a file called font.png within /modules/Image_Verification/img_generators/default and changed the colour of the text there, but that didnt make any difference...

Does anyone have any other ideas?

Thanks & Regards

Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #2  
Old 01-01-2007, 12:05 PM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,471
 

Default Re: Image Verification in v4.1.5

Cool .. i've figured it...

- Open /modules/Image_Verification/img_generators/default/default.php

- At about line 192, you will see the following array for the variable text_color

$text_color = array (
'red' => 0,
'green' => 0,
'blue' => 0,
0 => 175,
1 => 17,
2 => 92
);

- Change the RGB values for 0, 1 & 2 (in my example above, it's set to display in pink 175, 17 & 92)

Hope this helps everyone else

Regards

Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #3  
Old 01-01-2007, 01:00 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Image Verification in v4.1.5

Very cool. Nice find!
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #4  
Old 01-02-2007, 03:16 AM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Default Re: Image Verification in v4.1.5

can this be somehow configured to be a skin config variable in future updates, so it matches the websites colours then?
__________________
Richard


Ultimate 5.4 testing
Reply With Quote
  #5  
Old 01-09-2007, 07:18 PM
  Bling's Avatar 
Bling Bling is offline
 

Senior Member
  
Join Date: Apr 2005
Posts: 162
 

Default Re: Image Verification in v4.1.5

Sweet, if I could only figure out how to get it activated I would change teh colour. I have selected where I want the verification to occur..ie reg page. But for some reason its not showing up. Do ya have to turn it on somewhere else?
__________________
Thanks...Bling

4.4.2
Reply With Quote
  #6  
Old 01-10-2007, 02:12 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,471
 

Default Re: Image Verification in v4.1.5

Quote:
Originally Posted by Bling
Sweet, if I could only figure out how to get it activated I would change teh colour. I have selected where I want the verification to occur..ie reg page. But for some reason its not showing up. Do ya have to turn it on somewhere else?

Ummm .. not really ... have you made sure you have the correct smarty code to include the image verification module within the relevant pages?

Regards

Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #7  
Old 01-10-2007, 01:06 PM
  Bling's Avatar 
Bling Bling is offline
 

Senior Member
  
Join Date: Apr 2005
Posts: 162
 

Default Re: Image Verification in v4.1.5

hmmm...smarty code? I cant just turn that option on somewhere in admin? How and where do I turn it on, I couldnt find anything in the manual.

Thanks!
__________________
Thanks...Bling

4.4.2
Reply With Quote
  #8  
Old 01-11-2007, 12:41 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,471
 

Default Re: Image Verification in v4.1.5

It's within the Modules section of the Administration Area ...
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #9  
Old 01-12-2007, 05:41 PM
  Bling's Avatar 
Bling Bling is offline
 

Senior Member
  
Join Date: Apr 2005
Posts: 162
 

Default Re: Image Verification in v4.1.5

Ive gone in a checked them all...the only thing Im not sure about is the cell for Image Generator..what do I put in that box?
__________________
Thanks...Bling

4.4.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:04 PM.

   

 
X-Cart forums © 2001-2020