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

0 Members and 2 Guests are viewing this topic.

Offline admin

  • Administrator
  • *****
  • Posts: 43
  • Karma: +1/-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: 35
  • Karma: +11/-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

  • Supporter
  • **
  • Posts: 2
  • 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: 35
  • Karma: +11/-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: 43
  • Karma: +1/-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>

 

Related Topics

  Subject / Started by Replies Last post
24 Replies
21455 Views
Last post December 15, 2009, 05:07:59 AM
by djape
1 Replies
3324 Views
Last post March 20, 2009, 03:58:23 PM
by alex
1 Replies
8228 Views
Last post January 29, 2009, 10:29:27 PM
by vivandmars
0 Replies
4087 Views
Last post April 15, 2009, 06:39:55 AM
by admin
8 Replies
1420 Views
Last post March 01, 2010, 01:23:23 PM
by astra