Advertisement:

Author Topic: ring--c.a p th a - user profile  (Read 243 times)

jerry singh

  • Newbie
  • *
  • Posts: 25
ring--c.a p th a - user profile
« on: January 26, 2018, 05:42:39 pm »
hello osclass dev,

i am trying to add this widget in user profile, so that user have to verify their phone number!

am getting a error

Warning: Cannot modify header information - headers already sent by (output started at /public_html/oc-includes/osclass/utils.php:1738) in /public_html/oc-includes/osclass/utils.php on line 1743

somebody help me!!

thats my custom script!
Code: [Select]
             
<label><input type="checkbox" name="dashboard" value="1" <?php if(osc_get_preference('user_profile''ring_captcha') == 1){ echo 'checked="checked"'; }?>><?php _e('add to user profile''ring_captcha'); ?></label>

Code: [Select]
/validation dashboard
function r_c_dashboard() {
    $ringcaptcha_pin_code = Params::getParam('ringcaptcha_pin_code');
    $ringcaptcha_session_id = Params::getParam('ringcaptcha_session_id');

    if (!r_c_return_validation($ringcaptcha_pin_code, $ringcaptcha_session_id)) {
        $redirect_url = osc_user_profile_url();
        osc_add_flash_error_message(__('Your phone verification code is wrong.', 'ring_captcha'));
        osc_redirect_to($redirect_url);
    }
}

if ($active == 1) {
    if (!empty($app_key) && !empty($secret_key) && osc_get_preference('user_profile', 'ring_captcha') == 1) {
        osc_add_hook('user_form', 'r_c_dashboard');
    }
}