TestClear

Author Topic: Contact Us with Captcha  (Read 33606 times)

Offline admin

  • Administrator
  • *****
  • Posts: 68
  • Karma: +11/-0
  • Gender: Male
Contact Us with Captcha
« on: October 04, 2009, 03:16:16 AM »

1.Unzip
2.Upload contact folder
3.Edit config.php

If you like this script, please link back to this page!


Download:



« Last Edit: October 09, 2009, 03:57:03 AM by admin »

Offline bjornload

  • Supporter
  • **
  • Posts: 3
  • Karma: +0/-0
Re: Contact Us with Captcha
« Reply #1 on: October 05, 2009, 05:04:12 PM »
Hi!

It seems that the script stops when trying to retrieve the font.ttf

Any special settings needed in order to make that part work?

BR

Offline alex

  • Global Moderator
  • *****
  • Posts: 77
  • Karma: +20/-0
Re: Contact Us with Captcha
« Reply #2 on: October 05, 2009, 06:09:55 PM »
 ;D Set transfer type to binary (for transferring font files). ;D

Offline bjornload

  • Supporter
  • **
  • Posts: 3
  • Karma: +0/-0
Re: Contact Us with Captcha
« Reply #3 on: October 06, 2009, 02:39:05 AM »
Thank's but it is transferred binary and I tried retransferring using different software, but no difference.

It complains that "Warning: imagettfbbox(): Could not find/open font in ... on line 40"
and "Warning: imagettftext(): Could not find/open font in... on line 47"

The path is correct and the .ttf file is there, but it cannot execute it...

So what could be the reason - some server setting?

BR

Offline cilipe

  • VIP
  • ****
  • Posts: 14
  • Karma: +1/-0
Re: Contact Us with Captcha
« Reply #4 on: October 06, 2009, 03:18:36 AM »
If you're having issues with fonts not working... (Could not find/open font) check your permissions on the folder/font files and make sure they're 775. Hope this helps!

Offline bjornload

  • Supporter
  • **
  • Posts: 3
  • Karma: +0/-0
Re: Contact Us with Captcha
« Reply #5 on: October 07, 2009, 09:55:54 AM »
Thank's but just to see that there are no restrictions, I put will read/write rights for both font and folder, so that cannot be the problem.

Offline kluby

  • Supporter
  • **
  • Posts: 2
  • Karma: +0/-0
Re: Contact Us with Captcha
« Reply #6 on: October 07, 2009, 12:20:07 PM »
...  Really nice form.

Thanks for sharing.  :)

Offline Wizyrd

  • Supporter
  • **
  • Posts: 1
  • Karma: +0/-0
Re: Contact Us with Captcha
« Reply #7 on: October 16, 2009, 12:19:51 PM »
I am getting a whole series of errors, starting with it not getting the server. Help! Thanks.

Notice: Use of undefined constant HTTP_HOST - assumed 'HTTP_HOST' in C:\WebFiles\contact\config.php on line 7
Contact Us

Notice: Undefined variable: x in C:\WebFiles\contact\index.php on line 18
Notice: Undefined variable: a in C:\WebFiles\contact\index.php on line 24
Notice: Undefined variable: j in C:\WebFiles\contact\index.php on line 25
Notice: Undefined variable: Zcrypt in C:\WebFiles\contact\index.php on line 31
Enter the Verification Code:

Notice: Undefined index: user_guess in C:\WebFiles\contact\index.php on line 58

Offline alex

  • Global Moderator
  • *****
  • Posts: 77
  • Karma: +20/-0
Re: Contact Us with Captcha
« Reply #8 on: October 16, 2009, 12:54:10 PM »
in config.php delete the following
Code: [Select]
$urlh = getenv(HTTP_HOST);
$siteurl = "http://$urlh";
..and replace it with the following:
Code: [Select]
$urlh = "example.com";
$siteurl = "http://$urlh";


djape

  • Guest
Re: Contact Us with Captcha
« Reply #9 on: November 03, 2009, 05:08:49 AM »
Thank's but it is transferred binary and I tried retransferring using different software, but no difference.

It complains that "Warning: imagettfbbox(): Could not find/open font in ... on line 40"
and "Warning: imagettftext(): Could not find/open font in... on line 47"

The path is correct and the .ttf file is there, but it cannot execute it...

So what could be the reason - some server setting?

BR

Try to check php.ini file whether the extension php_gd2 is enabled.

Code: [Select]
<?php
if (extension_loaded('gd')) {
    echo 
'GD is installed on this server';
}else{

 echo 
'GD is not installed on this server';
}
?>

Offline lukog

  • Supporter
  • **
  • Posts: 1
  • Karma: +0/-0
Re: Contact Us with Captcha
« Reply #10 on: December 08, 2009, 10:47:49 AM »
1.Unzip
2.Upload contact folder
3.Edit config.php

If you like this script, please link back to this page!


Download:
but how to get the desired page on browsing..or how to set the contact page from contact folder??

Offline admin

  • Administrator
  • *****
  • Posts: 68
  • Karma: +11/-0
  • Gender: Male
Re: Contact Us with Captcha
« Reply #11 on: December 08, 2009, 10:52:33 AM »
but how to get the desired page on browsing..or how to set the contact page from contact folder??

Code: [Select]
<head>
<script language="JavaScript">
var goPopX = (screen.width/2)-250;
var goPopY = (screen.height/2)-250;
var loc = "left="+goPopX+",top="+goPopY;
function goPop(){
goPopWindow = window.open("http://example.com/contact/index.php","","scrollbars=no,resizable=yes,width=500,height=480,"+loc);
}
</script>
</head>
<body>
<a href="javascript:goPop()"><font size="1" font face="Tahoma" font color="#666666">Feedback</a><br />
<br>


</font>
</body>

Offline ta2ta2

  • Supporter
  • **
  • Posts: 2
  • Karma: +0/-0
Re: Contact Us with Captcha
« Reply #12 on: March 25, 2010, 03:41:11 AM »
I'm receiving "Invalid Characters:Go Back" on submit.

Offline pybe

  • Supporter
  • **
  • Posts: 1
  • Karma: +0/-0
Re: Contact Us with Captcha
« Reply #13 on: May 13, 2010, 05:35:27 AM »
I was getting the font not found errors on my ubuntu webserver, found that putting full path to the font.ttf worked for me.

Offline grigione

  • Supporter
  • **
  • Posts: 4
  • Karma: +3/-0
Re: Contact Us with Captcha
« Reply #14 on: June 27, 2010, 09:19:54 AM »
heello i have tried this contact form and other :
http://phpform.net/board/index.php/topic,43.0.html
but the comments that sent this forms aren't formatted so in my email i receive comments in a single line
can you tell me how to send comments in this forms formatted in a paragraph?
thanks