Quote Originally Posted by bn17311 View Post
hi,
after a bit of help over a ceon support thread from conor i ended up changing code slightly from above

in tpl_modules_create_account.php

use code

PHP Code:
<?php
if ($_GET['main_page'] == 'create_account' && CREATE_ACCOUNT_VALIDATION == 'true' || $_GET['main_page'] == 'login' && LOGIN_VALIDATION == 'true') { 
?>

<?php
  
if ($is_read_only == false || $_GET['main_page'] == 'create_account' || $_GET['main_page'] == 'login') {
    
$sql "DELETE FROM " TABLE_ANTI_ROBOT_REGISTRATION " WHERE timestamp < '" . (time() - 3600) . "' OR session_id = '" zen_session_id() . "'";
    if( !
$result $db->Execute($sql) ) { die('Could not delete validation key'); }
    
$reg_key generate_captcha_code();
    
$sql "INSERT INTO "TABLE_ANTI_ROBOT_REGISTRATION " VALUES ('" zen_session_id() . "', '" $reg_key "', '" time() . "')";
    if( !
$result $db->Execute($sql) ) { die('Could not check registration information'); }
?>
thanks bryan
Hi Bryan,

Your zip/This file causes missing right sidebox and still no CATPChA.

tpl_modules_create_account.php
why ending with <? echo tep_crafty_country_handler(1); ?> ?
I skip this still not working.

Other two are working fine.