============================================================================ ============================================================================ STEPS ============================================================================ ============================================================================ SQL ----------------------------------------------------------------------------- ALTER TABLE `tbl_poll` ADD `entry_auto_auth` TINYINT( 1 ) NULL DEFAULT '0' AFTER `entry_max_cnt` ; ============================================================================ pcsite/lib/entry/classes/CEntryApproval.class.php ----------------------------------------------------------------------------- (file) ============================================================================ pcsite/admin/entry/ajax/index.inc.php ----------------------------------------------------------------------------- (file) ============================================================================ pcsite/locale/locale.poll.inc.php ----------------------------------------------------------------------------- // 2022-05-06 $_lng[ 'entry_auto_auth' ] = 'Approve Entries Automatically'; ============================================================================ pcsite/lib/poll/classes/CTable_poll.class.php ----------------------------------------------------------------------------- // 2022-05-06 $fdx[ 'entry_auto_auth' ] = array( "label"=>$lng[ 'entry_auto_auth' ], "db"=>"tinyint", "length"=>1, "required"=>false, "input"=> array( "type"=>"checkbox", ), "selections"=>array( 1=>"Active", 0=>"Inactive" ), "search-key"=>"=", "list-key"=>array( "settings", "settings-save", ), ); ============================================================================ pcsite/admin/poll/crud/tpls/tpl.settings.class.php ----------------------------------------------------------------------------- ============================================================================ pcsite/member-area/entry/reg/index.inc.php ----------------------------------------------------------------------------- // 2022-05-07 : auto approve sleep(1); $entry_id=$fs->val($fs->table->getPrimaryKey()); CEntryApproval::autoApprove($entry_id,"free"); ============================================================================ pcsite/ipn/ipn/handler/index.inc.php ----------------------------------------------------------------------------- // 2022-05-07 : auto approve sleep(1); $entry_id=$ox['entry_id']; CEntryApproval::autoApprove($entry_id,"fee"); ============================================================================