@Сергей
Following method could be used to verify user on particular pages.
It will work just if setting in plugin "User Account Phone Verification" is enabled.
Works just for logged-in users.
Only what should be modified is this condition: osc_is_ad_page() || osc_is_home_page() || osc_is_search_page()
function sms_user_verify_extra() {
$location = Rewrite::newInstance()->get_location();
$section = Rewrite::newInstance()->get_section();
if(osc_is_web_user_logged_in() && (osc_is_ad_page() || osc_is_home_page() || osc_is_search_page()) && sms_param('verification_account') == 1) {
$user = User::newInstance()->findByPrimaryKey(osc_logged_user_id());
if(!sms_phone_verify($user['s_phone_mobile']) || $user['s_phone_mobile'] == '') {
if($location <> 'sms' || $section <> 'user-verify') {
osc_add_flash_info_message(__('In order to improve our services, you must verify your phone number', 'sms'));
header('Location:' . osc_route_url('sms-user-verify', array('userId' => osc_logged_user_id())));
exit;
}
}
}
}
osc_add_hook('init', 'sms_user_verify_extra', 10);