Author |
Message |
|
OK try this
Open templates/captcha.php and change
<img src="$GB_PG[base_url]/image.php?id=$VARS[gbtoken]" border="0">
to
<img src="$GB_PG[base_url]/image.php?id=$VARS[gbtoken]" border="0" id="gbCaptcha">
Now save that and open templates/form.php and after </form> add
<script type="text/javascript">
theImg = document.getElementById('gbCaptcha');
while(theImg.clientHeight == 1) {
// Create a random number between 1 and 1000
var randomnumber=Math.floor(Math.random()*1001);
// Change the image
theImg.src = theImg.src + '&rand=' + randomnumber;
}
</script>
|
 |
|
Seems to be calling the createPixel function when creating the 1x1 image. This happens if the test for GD support returns false or the createImage function fails. there are so many places it could be failing it's mad as is why it keeps failing randomly. You could either add a message saying if the captcha doesn't show to refresh the page but as you are using frames that's not the best idea or I could give you some JavaScript to add to let them refresh the image.
|
 |
|
Looks like at some point your hosts changed their server set up. Try this add.class.php file and see if it fixes the issue. Just replace your existing add.class.php file with it.
|
 |
|
It's still producing a PNG image that is 1x1 I will have to totally rewrite it so I can have it debug at various points to give me a better idea of what is going on.
|
 |
|
OK now in captcha.class.php found in lib directory change
function getImage($type="png")
to
function getImage($type="jpg")
|
 |
|
In image.php change $img->getImage($imageType); to $img->getImage('jpg'); and see if that does anything.
|
 |
|
Open admin/config.inc.php in a decent text editor such as PSPad or Notepad++ and changeto
|
 |
|
Hmm really need to have it output some debug information as so many points where it could be going wrong. Possibly the getSupportedImageTypes is not returning anything. Are you comfortable editing a PHP file?
|
 |
|
I'm wondering if it's not to do with the PNG creation as the version on this site is actually a jpg. I'll see if the code cannot be forced to generate a jpg instead and see if that fixes it.
|
 |
|
I just looked at your captcha image. It's a valid PNG with no PHP error messages in it so not actually sure what's going wrong there.
|
 |
|
So you downloaded it from http://proxy2.de/scripts.php using the download link at the bottom right of where the guestbook description is?
|
 |
|
Can you show me what you mean exactly by servername.
|
 |
|
The polls you are seeing are the demo polls to show you the various settings and functions.
|
 |
|
Edit body.php in templates directory.
|
 |
|
header.php is mainly just HTML with the odd PHP variable in the form of $WORD
|
 |
|