WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

GD security image..
without color - possible?

Version: 4.0.30
printPrint


GD security image..
Starship-Trooper
Experienced

Usergroup: Customer
Joined: Jan 06, 2007
Total Topics: 33
Total Posts: 84
Posted 10/03/07 - 06:12 AM:
quote post
#1
Hi,

1) due to the design of my page, is there any possibility to change the security image to sepia colors or b/w?
I gues this is not trivial - so, maybe is there (an easy) option to change GD to sth else?

Also, without colors, idea might result in a security leak, doesn't it?



2) another thing: you once scaled up the security image for bigger screens:
http://www.webmastersite.net/forums/threads/secur...

is this necessary? what's the actual state? can i change the scale?


Edited by Starship-Trooper on 10/03/07 - 06:17 AM
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6014
Posted 10/03/07 - 04:24 PM:
quote post
#2
I'm not sure it's as effective against spammers without the random colors.

The size can be changed in your tweaks file. http://scripts.webmastersite.net/wsnlinks/wsnmanu...

I'm making a grayscale tweak for 4.1.5.

Edited by Paul on 10/03/07 - 05:07 PM

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Starship-Trooper
Experienced

Usergroup: Customer
Joined: Jan 06, 2007
Total Topics: 33
Total Posts: 84
Posted 10/04/07 - 03:48 AM:
quote post
#3
that's great, thx!

btw: where do i put tweaks.php? to all the other php's? In Xampp (under \wsnlinks), i don't get the size of the securityimage changed..

and what is the default size of the image in px (100%)?



Edited by Starship-Trooper on 10/04/07 - 05:13 AM
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6014
Posted 10/04/07 - 04:08 PM:
quote post
#4
It goes in the main WSN Links directory. Of course since you're using an outdated version I can't tell you what works with it.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Starship-Trooper
Experienced

Usergroup: Customer
Joined: Jan 06, 2007
Total Topics: 33
Total Posts: 84
Posted 11/06/07 - 06:12 AM:
quote post
#5
hi,

with 4.1.11, my tweaks.php values have no effect:
<?php
$securityimagegrayscale = true; // set true to make the security image be grayscale instead of colored
$finalwidth = 150; // width of security image in pixels
$finalheight = 82; // height of security image in pixels
?>
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6014
Posted 11/06/07 - 11:49 AM:
quote post
#6
Copying and pasting directly from your post saving as tweaks.php, I see: http://www.webmastersite.net/screenshots/1125.jpg

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Starship-Trooper
Experienced

Usergroup: Customer
Joined: Jan 06, 2007
Total Topics: 33
Total Posts: 84
Posted 11/06/07 - 12:35 PM:
quote post
#7
hmm,
what could the reason be? Also my other tweak.php entries aren't recognized..
do i have to tell wsn that the tweak exists?
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6014
Posted 11/06/07 - 02:34 PM:
quote post
#8
If you named it tweak.php, that would be a reason.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Starship-Trooper
Experienced

Usergroup: Customer
Joined: Jan 06, 2007
Total Topics: 33
Total Posts: 84
Posted 11/06/07 - 03:08 PM:
quote post
#9
hehe i thought it could not be that easy.

btw: do u still remember what the default size (100%) of the GD image was? or will it always be newly calculated, not scaled up?
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6014
Posted 11/07/07 - 11:05 AM:
quote post
#10
150x82

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Starship-Trooper
Experienced

Usergroup: Customer
Joined: Jan 06, 2007
Total Topics: 33
Total Posts: 84
Posted 11/07/07 - 01:05 PM:
quote post
#11
oh ok smiling face
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.