Create this hooks file and place it here
/whmcs/includes/hooks/update_client_status_inactive.php
PHP Code:
<?php
function hook_update_client_status_inactive($vars) {
update_query("tblclients",array("status"=>"Inactive"),array("id"=>$vars['userid']));
}
add_hook("ClientAreaRegister",1,"hook_update_client_status_inactive");
?>
modify this file /whm/templates/your templates/header.tpl
find
PHP Code:
<li><a href="affiliates.php">{$LANG.affiliatestitle}</a></li>
and replace this with
PHP Code:
{if $clientsdetails.status eq Active}
<li><a href="affiliates.php">{$LANG.affiliatestitle}</a></li>
{/if}
So, all newly created accounts from the customer side will be set as Inactive.
So you can either choose to set the status to Active manually, or create an Action Hooks where you believe that the status must be changed to Active.