- Title: New member
- Status: Offline
- Registered: 2008-08-20
- Posts: 0
Topic: Captcha & Form fields
Hey all
Loving jobberbase... Thanks for your work guys!! kudos.
Questions:
1) the captcha on the add a post page... does anyone have some implementation instructions on this??
2) i'd like to add a field or two to the add a post page... ie another location field for like, 'area -> subarea'... any suggestions on how to do this??
thanks much!
- Title: New member
- Status: Offline
- Registered: 2008-08-20
- Posts: 0
Re: Captcha & Form fields
I´d like that too!
Some PHP genius over here please!
- Title: New member
- Status: Offline
- Registered: 2008-08-20
- Posts: 0
Re: Captcha & Form fields
On jobber.ro, I use www.recaptcha.net, which is fairly easy to implement...
- Title: New member
- Status: Offline
- Registered: 2008-08-20
- Posts: 0
Re: Captcha & Form fields
how do you add the PHP scripting for recaptcha into the .tpl file??
- Title: New member
- Status: Offline
- Registered: 2008-08-20
- Posts: 0
Re: Captcha & Form fields
nevermind! <blush>hehe</blush>
realized that <?php and ?> is replaced with {php} and {/php}
genius! 
- Title: New member
- Status: Offline
- Registered: 2008-08-20
- Posts: 0
Re: Captcha & Form fields
cant seem to get the captcha to work..
it displays but doesn't verify...
- Title: New member
- Status: Offline
- Registered: 2008-08-20
- Posts: 0
Re: Captcha & Form fields
- Title: Member
- Status: Offline
- From: Brasil
- Registered: 2008-08-20
- Posts: 35
Re: Captcha & Form fields
I followed all the steps but in:
Code:
page-write.php
On line 2, we generate the html code that displays the captcha in the template:
$smarty->assign(’the_captcha’, recaptcha_get_html(CAPTCHA_PUBLIC_KEY));
———————–
I do not know where to place this line.
Anyone helpe me…
Thanks
- Title: Member
- Status: Offline
- From: Brasil
- Registered: 2008-08-20
- Posts: 35
Re: Captcha & Form fields
Hi filip,
Showing error for me...
Parse error: syntax error, unexpected T_STRING in /home/.blu/myuser/mydomain/page_write.php on line 2
My page-wite.php
<?php
$smarty->assign('the_captcha', recaptcha_get_html(XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX));
$later_edit = false;
if ($id != 0)
{
$j = new Job($id);
}
--------------------------------
Thanks
- Title: New member
- Status: Offline
- Registered: 2008-08-20
- Posts: 0
Re: Captcha & Form fields
In my example, CAPTCHA_PUBLIC_KEY is a previously defined constant (in config.php). Basically, that translates into:
$smarty->assign('the_captcha', recaptcha_get_html('ASDF234F234FAH98U3453034FSASDF'));
So recaptcha_get_html takes parameter a STRING.
- Title: Member
- Status: Offline
- From: Brasil
- Registered: 2008-08-20
- Posts: 35
Re: Captcha & Form fields
Hi filip
Now this working perfectly.
Thanks for help me;)
- Title: New member
- Status: Offline
- Registered: 2008-08-20
- Posts: 0
Re: Captcha & Form fields
Have followed instructions but get the following error:
*Fatal error: Call to undefined function recaptcha_get_html() in /home/scanning/beta/job-listings/page_write.php on line 2*
Any help please?
- Title: Member
- Status: Offline
- Registered: 2008-09-19
- Posts: 27
Re: Captcha & Form fields
Hi guys,
I get the following when i tried to add the same recapctah code as in the blog example to the "job-details.tpl"
Notice: Undefined index: recaptcha_challenge_field in /home/xxx/public_html/page_apply.php on line 36
Notice: Undefined index: recaptcha_response_field in /home/xxx/public_html/page_apply.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/page_apply.php:36) in /home/xxx/public_html/_includes/function.redirect_to.php on line 16
how does one successfully implement the same recaptcha into the apply form?
- Title: New member
- Status: Offline
- Registered: 2009-08-09
- Posts: 2
Re: Captcha & Form fields
Hi,
I am having problems with the
line 2 $smarty->assign('the_captcha', recaptcha_get_html(CAPTCHA_PUBLIC_KEY));
I searched the blog and the forum but could not understand what to do with this error. I am not a code guy, so please bear with me and I need a precise answer as to where to place this line.
Currently the post page is throwing up an empty white page, or is this an entirely different problem.
Thanks a ton...
Cheers,
uxia
- Title: New member
- Status: Offline
- Registered: 2009-08-09
- Posts: 2
Re: Captcha & Form fields
someone please help me fix this problem, I am not able to resolve it pls help me with it.
- Title: Administrator
- Status: Offline
- From: Oradea, Romania
- Registered: 2008-08-20
- Posts: 966
Re: Captcha & Form fields
Hi.
Can you see if error reporting is on? Open config.php and replace:
Code:ini_set('display_errors', 'Off');
with
Code:ini_set('display_errors', 'On');
Can you then post here the errors that you get?
Posts [ 16 ]
Guest posting is disabled. You must login or register to post a reply.