Anonymous

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!

Anonymous

Re: Captcha & Form fields

I´d like that too!
Some PHP genius over here please!

Anonymous

Re: Captcha & Form fields

On jobber.ro, I use www.recaptcha.net, which is fairly easy to implement...

Anonymous

Re: Captcha & Form fields

how do you add the PHP scripting for recaptcha into the .tpl file??

Anonymous

Re: Captcha & Form fields

nevermind! <blush>hehe</blush>

realized that <?php and ?> is replaced with {php} and {/php}

genius! smile

Anonymous

Re: Captcha & Form fields

cant seem to get the captcha to work.. sad
it displays but doesn't verify...

Anonymous

Re: Captcha & Form fields

http://www.jobberbase.com/blog/01-23-20 … recaptcha/
smile

vector

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

vector

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

Anonymous

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.

vector

Re: Captcha & Form fields

Hi filip

Now this working perfectly.

Thanks for help me;)

Anonymous

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?

3x-a-d3-u5

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?

uxia

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

uxia

Re: Captcha & Form fields

someone please help me fix this problem, I am not able to resolve it pls help me with it.

putypuruty

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?