Should you think of using these captchas for story submission process too, please use the following code - this is a temporary solution and needs Admins/lead Devs suggestions to make it better.
A temporary solution would be is to do the following modifications:
1] open submit_empty_submit_form.tpl before
Code:
<input type="text" name="url" id="url" value="http://" size=55 class="form-full" />
add the following lines
Code:
<input type="hidden" name="ts_random" value="{$submit_rand}" /><br />
<img src="{$my_pligg_base}/ts_image.php?ts_random={$submit_rand}" class="ch2" />
<p><input type="text" size="20" name="ts_code" /><br /><br />
2] Open submit.php, in function do_submit1(); before
Code:
if($url == "http://" || $url == ""){
if(Submit_Require_A_URL == false){$linkres->valid = true;}else{$linkres->valid = false;}
}
add
Code:
if (!ts_is_human()) {
$main_smarty->assign('register_error_text', "badcode");
$main_smarty->display($the_template . '/register_error.tpl');
return;
}
This uses the same register_error.tpl files - should need another type of display, edit or forward accordingly.