Thank you for using the Social Login Plugin! Please go to the Settings\Social Login page to setup the plugin.

'; update_option ('oa_social_login_activation_message', '1'); } } /** * Check API Settings trough an Ajax Call */ function oa_social_login_check_api_settings() { check_ajax_referer('oa_social_login_ajax_nonce'); $api_domain = $_POST['api_subdomain'].'.api.oneall.com'; $api_key = $_POST['api_key']; $api_secret = $_POST['api_secret']; $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, 'https://'.$api_domain.'/tools/ping.json'); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_USERPWD, $api_key . ":" . $api_secret); curl_setopt($curl, CURLOPT_TIMEOUT, 5); curl_setopt($curl, CURLOPT_VERBOSE, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl, CURLOPT_FAILONERROR, 0); if ( ($json = curl_exec($curl)) === false) { echo 'Curl error: ' . curl_error($curl); } //Success else { $http_code = curl_getinfo($curl, CURLINFO_HTTP_CODE); //Authentication Error if ($http_code == 401) { echo 'error_authentication_credentials_wrong'; delete_option ('oa_social_login_api_settings_verified'); } elseif ($http_code == 404) { echo 'error_subdomain_wrong'; delete_option ('oa_social_login_api_settings_verified'); } elseif ($http_code == 200) { echo 'success'; update_option ('oa_social_login_api_settings_verified', '1'); } } die(); } add_action('wp_ajax_check_api_settings', 'oa_social_login_check_api_settings'); /** * Add Settings JS **/ function oa_social_login_admin_js ($hook) { if ($hook == 'settings_page_oa_social_login') { if (!wp_script_is ('oa_social_login_admin_js', 'registered')) { wp_register_script('oa_social_login_admin_js', OA_SOCIAL_LOGIN_PLUGIN_URL . "/assets/js/admin.js"); } wp_enqueue_script ('oa_social_login_admin_js'); wp_enqueue_script ('jquery'); $oa_social_login_ajax_nonce = wp_create_nonce ('oa_social_login_ajax_nonce'); wp_localize_script('oa_social_login_admin_js', 'oa_social_login_ajax_nonce', array ('value' => $oa_social_login_ajax_nonce)); } } /** * Add Settings CSS **/ function oa_social_login_admin_css ($hook) { if (!wp_style_is ('oa_social_login_admin_css', 'registered')) { wp_register_style ('oa_social_login_admin_css', OA_SOCIAL_LOGIN_PLUGIN_URL . "/assets/css/admin.css"); } if (did_action ('wp_print_styles')) { wp_print_styles ('oa_social_login_admin_css'); } else { wp_enqueue_style ('oa_social_login_admin_css'); } } /** * Register plugin settings and their sanitization callback */ function oa_register_social_login_settings () { register_setting ('oa_social_login_settings_group', 'oa_social_login_settings', 'oa_social_login_settings_validate'); } /** * Plugin settings sanitization callback */ function oa_social_login_settings_validate ($settings) { //Import providers GLOBAL $oa_social_login_providers; //Sanitzed Settings $sanitzed_settings = array (); //Base Settings foreach (array ( 'api_subdomain', 'api_key', 'api_secret', 'plugin_caption' ) AS $key) { if (isset ($settings [$key])) { $sanitzed_settings [$key] = trim ($settings [$key]); } } //Enabled providers if (isset ($settings ['providers']) AND is_array ($settings ['providers'])) { foreach ($oa_social_login_providers AS $key => $name) { if (isset ($settings ['providers'] [$key]) AND $settings ['providers'] [$key] == '1') { $sanitzed_settings ['providers'] [$key] = 1; } } } //Done return $sanitzed_settings; } /** * Display Settings Page **/ function oa_display_social_login_settings () { //Import providers GLOBAL $oa_social_login_providers; ?>

Make your blog social!

Allow your visitors to comment, login and register with social networks like Twitter, Facebook, LinkedIn, Hyves, Вконтакте, Google or Yahoo. Draw a larger audience and increase user engagement in a few simple steps.

To be able to use this plugin you first of all need to create a free account at http://www.oneall.com and create a new Site. After having created your account and setup your Site, please enter the Site Settings in the form below.

The basic account creation is free and the setup is easy!

Setup my account now

Your API Account is setup correctly

Login to your account to manage your providers and access your Social Insights. Determine which social networks are popular amongst your users and tailor your registration experience increase user engagement

Signin to my account

$name) { ?>
Enable the providers of your choice
/>