Version Description
- Social Network Avatars fixed
- Social Buttons no longer displayed for customs hooks if logged in
- KISS for API Settings Setup
Download this release
Release Info
Developer | ClaudeSchlesser |
Plugin | Social Login |
Version | 1.5 |
Comparing to | |
See all releases |
Code changes from version 1.4 to 1.5
- assets/js/admin.js +11 -4
- includes/admin.php +76 -28
- includes/user_interface.php +25 -26
- oa-social-login.php +13 -11
- readme.txt +136 -118
assets/js/admin.js
CHANGED
@@ -17,19 +17,26 @@ jQuery(document).ready(function($) {
|
|
17 |
jQuery.post(ajaxurl,data, function(response) {
|
18 |
var message;
|
19 |
var success;
|
20 |
-
|
21 |
-
|
22 |
-
|
|
|
|
|
|
|
23 |
success = false;
|
24 |
message = 'The subdomain does not exist. Have you filled it out correctly?'
|
25 |
}
|
|
|
|
|
|
|
|
|
26 |
else if (response == 'error_authentication_credentials_wrong'){
|
27 |
success = false;
|
28 |
message = 'The API credentials are wrong';
|
29 |
}
|
30 |
else {
|
31 |
success = true;
|
32 |
-
message = 'The
|
33 |
}
|
34 |
|
35 |
jQuery('#oa_social_login_api_test_result').html(message);
|
17 |
jQuery.post(ajaxurl,data, function(response) {
|
18 |
var message;
|
19 |
var success;
|
20 |
+
|
21 |
+
if (response == 'error_not_all_fields_filled_out'){
|
22 |
+
success = false;
|
23 |
+
message = 'Please fill out each of the fields above'
|
24 |
+
}
|
25 |
+
else if (response == 'error_subdomain_wrong'){
|
26 |
success = false;
|
27 |
message = 'The subdomain does not exist. Have you filled it out correctly?'
|
28 |
}
|
29 |
+
else if (response == 'error_subdomain_wrong_syntax' || response == 'error_communication'){
|
30 |
+
success = false;
|
31 |
+
message = 'The subdomain has a wrong syntax!'
|
32 |
+
}
|
33 |
else if (response == 'error_authentication_credentials_wrong'){
|
34 |
success = false;
|
35 |
message = 'The API credentials are wrong';
|
36 |
}
|
37 |
else {
|
38 |
success = true;
|
39 |
+
message = 'The settings are correct - do not forget to save your changes!';
|
40 |
}
|
41 |
|
42 |
jQuery('#oa_social_login_api_test_result').html(message);
|
includes/admin.php
CHANGED
@@ -26,6 +26,7 @@ function oa_social_login_admin_message ()
|
|
26 |
}
|
27 |
}
|
28 |
|
|
|
29 |
/**
|
30 |
* Check API Settings trough an Ajax Call
|
31 |
*/
|
@@ -33,47 +34,83 @@ function oa_social_login_check_api_settings()
|
|
33 |
{
|
34 |
check_ajax_referer('oa_social_login_ajax_nonce');
|
35 |
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
$api_key = $_POST['api_key'];
|
|
|
|
|
38 |
$api_secret = $_POST['api_secret'];
|
39 |
|
|
|
40 |
$curl = curl_init();
|
41 |
curl_setopt($curl, CURLOPT_URL, 'https://'.$api_domain.'/tools/ping.json');
|
42 |
curl_setopt($curl, CURLOPT_HEADER, 0);
|
43 |
curl_setopt($curl, CURLOPT_USERPWD, $api_key . ":" . $api_secret);
|
44 |
-
curl_setopt($curl, CURLOPT_TIMEOUT,
|
45 |
curl_setopt($curl, CURLOPT_VERBOSE, 0);
|
46 |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
47 |
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
|
48 |
curl_setopt($curl, CURLOPT_FAILONERROR, 0);
|
|
|
49 |
if ( ($json = curl_exec($curl)) === false)
|
50 |
{
|
51 |
-
|
|
|
|
|
|
|
|
|
52 |
}
|
|
|
53 |
//Success
|
54 |
-
|
55 |
-
|
56 |
-
$http_code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
|
57 |
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
|
|
|
|
74 |
}
|
75 |
-
|
76 |
-
die();
|
77 |
}
|
78 |
add_action('wp_ajax_check_api_settings', 'oa_social_login_check_api_settings');
|
79 |
|
@@ -167,7 +204,15 @@ function oa_social_login_settings_validate ($settings)
|
|
167 |
//Subdomain is always lowercase
|
168 |
if (isset ($sanitzed_settings['api_subdomain']))
|
169 |
{
|
170 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
}
|
172 |
|
173 |
|
@@ -263,7 +308,7 @@ function oa_display_social_login_settings ()
|
|
263 |
?>
|
264 |
<div class="oa_container oa_container_welcome">
|
265 |
<h3>
|
266 |
-
Your API Account is setup correctly
|
267 |
</h3>
|
268 |
<div class="oa_container_body">
|
269 |
<p>
|
@@ -280,7 +325,7 @@ function oa_display_social_login_settings ()
|
|
280 |
?>
|
281 |
<div class="oa_container oa_container_links">
|
282 |
<h3>
|
283 |
-
Help, Updates & Documentation
|
284 |
</h3>
|
285 |
<ul>
|
286 |
<li><a target="_blank" href="http://www.twitter.com/oneall">Follow us on Twitter</a> to stay informed about updates;</li>
|
@@ -295,9 +340,12 @@ function oa_display_social_login_settings ()
|
|
295 |
?>
|
296 |
<table class="form-table oa_form_table">
|
297 |
<tr>
|
298 |
-
<th class="head"
|
299 |
<?php _e('API Settings', 'oa_social_login'); ?>
|
300 |
</th>
|
|
|
|
|
|
|
301 |
</tr>
|
302 |
<tr>
|
303 |
<th scope="row">
|
26 |
}
|
27 |
}
|
28 |
|
29 |
+
|
30 |
/**
|
31 |
* Check API Settings trough an Ajax Call
|
32 |
*/
|
34 |
{
|
35 |
check_ajax_referer('oa_social_login_ajax_nonce');
|
36 |
|
37 |
+
//Check if all fields filled out
|
38 |
+
if ( empty ($_POST['api_subdomain']) OR empty ($_POST['api_key']) OR empty ($_POST['api_secret']))
|
39 |
+
{
|
40 |
+
echo 'error_not_all_fields_filled_out';
|
41 |
+
delete_option ('oa_social_login_api_settings_verified');
|
42 |
+
die();
|
43 |
+
}
|
44 |
+
|
45 |
+
//Subdomain
|
46 |
+
$api_subdomain = trim(strtolower($_POST['api_subdomain']));
|
47 |
+
|
48 |
+
//Full domain entered
|
49 |
+
if (preg_match ("/([a-z0-9\-]+)\.api\.oneall\.com/i", $api_subdomain, $matches))
|
50 |
+
{
|
51 |
+
$api_subdomain = $matches[1];
|
52 |
+
}
|
53 |
+
|
54 |
+
//Check subdomain format
|
55 |
+
if ( ! preg_match ("/^[a-z0-9\-]+$/i", $api_subdomain))
|
56 |
+
{
|
57 |
+
echo 'error_subdomain_wrong_syntax';
|
58 |
+
delete_option ('oa_social_login_api_settings_verified');
|
59 |
+
die();
|
60 |
+
}
|
61 |
+
|
62 |
+
//Domain
|
63 |
+
$api_domain = $api_subdomain.'.api.oneall.com';
|
64 |
+
|
65 |
+
//Key
|
66 |
$api_key = $_POST['api_key'];
|
67 |
+
|
68 |
+
//Secret
|
69 |
$api_secret = $_POST['api_secret'];
|
70 |
|
71 |
+
//Ping
|
72 |
$curl = curl_init();
|
73 |
curl_setopt($curl, CURLOPT_URL, 'https://'.$api_domain.'/tools/ping.json');
|
74 |
curl_setopt($curl, CURLOPT_HEADER, 0);
|
75 |
curl_setopt($curl, CURLOPT_USERPWD, $api_key . ":" . $api_secret);
|
76 |
+
curl_setopt($curl, CURLOPT_TIMEOUT, 15);
|
77 |
curl_setopt($curl, CURLOPT_VERBOSE, 0);
|
78 |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
79 |
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
|
80 |
curl_setopt($curl, CURLOPT_FAILONERROR, 0);
|
81 |
+
|
82 |
if ( ($json = curl_exec($curl)) === false)
|
83 |
{
|
84 |
+
curl_close($curl);
|
85 |
+
|
86 |
+
echo 'error_communication';
|
87 |
+
delete_option ('oa_social_login_api_settings_verified');
|
88 |
+
die();
|
89 |
}
|
90 |
+
|
91 |
//Success
|
92 |
+
$http_code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
|
93 |
+
curl_close($curl);
|
|
|
94 |
|
95 |
+
//Authentication Error
|
96 |
+
if ($http_code == 401)
|
97 |
+
{
|
98 |
+
echo 'error_authentication_credentials_wrong';
|
99 |
+
delete_option ('oa_social_login_api_settings_verified');
|
100 |
+
die();
|
101 |
+
}
|
102 |
+
elseif ($http_code == 404)
|
103 |
+
{
|
104 |
+
echo 'error_subdomain_wrong';
|
105 |
+
delete_option ('oa_social_login_api_settings_verified');
|
106 |
+
die();
|
107 |
+
}
|
108 |
+
elseif ($http_code == 200)
|
109 |
+
{
|
110 |
+
echo 'success';
|
111 |
+
update_option ('oa_social_login_api_settings_verified', '1');
|
112 |
+
die();
|
113 |
}
|
|
|
|
|
114 |
}
|
115 |
add_action('wp_ajax_check_api_settings', 'oa_social_login_check_api_settings');
|
116 |
|
204 |
//Subdomain is always lowercase
|
205 |
if (isset ($sanitzed_settings['api_subdomain']))
|
206 |
{
|
207 |
+
$api_subdomain = strtolower($sanitzed_settings['api_subdomain']);
|
208 |
+
|
209 |
+
//Full domain entered
|
210 |
+
if (preg_match ("/([a-z0-9\-]+)\.api\.oneall\.com/i", $api_subdomain, $matches))
|
211 |
+
{
|
212 |
+
$api_subdomain = $matches[1];
|
213 |
+
}
|
214 |
+
|
215 |
+
$sanitzed_settings['api_subdomain'] = $api_subdomain;
|
216 |
}
|
217 |
|
218 |
|
308 |
?>
|
309 |
<div class="oa_container oa_container_welcome">
|
310 |
<h3>
|
311 |
+
<?php _e('Your API Account is setup correctly'); ?>
|
312 |
</h3>
|
313 |
<div class="oa_container_body">
|
314 |
<p>
|
325 |
?>
|
326 |
<div class="oa_container oa_container_links">
|
327 |
<h3>
|
328 |
+
<?php _e('Help, Updates & Documentation'); ?>
|
329 |
</h3>
|
330 |
<ul>
|
331 |
<li><a target="_blank" href="http://www.twitter.com/oneall">Follow us on Twitter</a> to stay informed about updates;</li>
|
340 |
?>
|
341 |
<table class="form-table oa_form_table">
|
342 |
<tr>
|
343 |
+
<th class="head">
|
344 |
<?php _e('API Settings', 'oa_social_login'); ?>
|
345 |
</th>
|
346 |
+
<th class="head">
|
347 |
+
<a href="https://app.oneall.com/applications/" target="_blank">Click here to create and view your API Credentials</a>
|
348 |
+
</th>
|
349 |
</tr>
|
350 |
<tr>
|
351 |
<th scope="row">
|
includes/user_interface.php
CHANGED
@@ -42,30 +42,26 @@ function oa_social_login_custom_avatar ()
|
|
42 |
$args = func_get_args ();
|
43 |
|
44 |
//Check if we are in a comment
|
45 |
-
if (!is_null ($comment))
|
46 |
{
|
47 |
-
//
|
48 |
-
|
|
|
49 |
{
|
50 |
-
//Read
|
51 |
-
$
|
52 |
-
if (isset($settings['plugin_show_avatars_in_comments']) AND $settings['plugin_show_avatars_in_comments'] == '1')
|
53 |
{
|
54 |
-
|
55 |
-
if (($user_thumbnail = get_the_author_meta ('oa_social_login_user_thumbnail')) !== null)
|
56 |
{
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
$user_thumbnail = preg_replace ('#width=([\'"])([^\\1]+)\\1#Ui', "", $user_thumbnail);
|
62 |
-
return $user_thumbnail;
|
63 |
-
}
|
64 |
}
|
65 |
}
|
66 |
}
|
67 |
}
|
68 |
-
return $args[0];
|
69 |
}
|
70 |
add_filter ('get_avatar', 'oa_social_login_custom_avatar');
|
71 |
|
@@ -126,7 +122,10 @@ add_action ('login_form', 'oa_social_login_render_login_form_login');
|
|
126 |
*/
|
127 |
function oa_social_login_render_custom_form_login ()
|
128 |
{
|
129 |
-
|
|
|
|
|
|
|
130 |
}
|
131 |
add_action ('oa_social_login', 'oa_social_login_render_custom_form_login');
|
132 |
|
@@ -189,16 +188,16 @@ function oa_social_login_render_login_form ($source)
|
|
189 |
{
|
190 |
//Random integer
|
191 |
$rand = mt_rand (99999, 9999999);
|
192 |
-
|
193 |
<div class="oneall_social_login">
|
194 |
<?php
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
<div style="margin-bottom: 3px;"><label><?php _e ($plugin_caption, 'oa_social_login'); ?></label></div>
|
199 |
<?php
|
200 |
-
|
201 |
-
|
202 |
<div class="oneall_social_login_providers" id="oneall_social_login_providers_<?php echo $rand; ?>"></div>
|
203 |
<script type="text/javascript">
|
204 |
oneall.api.plugins.social_login.build("oneall_social_login_providers_<?php echo $rand; ?>", {
|
@@ -209,6 +208,6 @@ function oa_social_login_render_login_form ($source)
|
|
209 |
</script>
|
210 |
</div>
|
211 |
<?php
|
212 |
-
|
213 |
-
|
214 |
-
}
|
42 |
$args = func_get_args ();
|
43 |
|
44 |
//Check if we are in a comment
|
45 |
+
if (!is_null ($comment) AND !empty ($comment->user_id) AND !empty ($args [0]))
|
46 |
{
|
47 |
+
//Read settings
|
48 |
+
$settings = get_option ('oa_social_login_settings');
|
49 |
+
if (isset ($settings ['plugin_show_avatars_in_comments']) AND $settings ['plugin_show_avatars_in_comments'] == '1')
|
50 |
{
|
51 |
+
//Read Thumbnail
|
52 |
+
if (($user_thumbnail = get_user_meta ($comment->user_id, 'oa_social_login_user_thumbnail', true)) !== false)
|
|
|
53 |
{
|
54 |
+
if (strlen (trim ($user_thumbnail)) > 0)
|
|
|
55 |
{
|
56 |
+
$user_thumbnail = preg_replace ('#src=([\'"])([^\\1]+)\\1#Ui', "src=\\1" . $user_thumbnail . "\\1", $args [0]);
|
57 |
+
$user_thumbnail = preg_replace ('#height=([\'"])([^\\1]+)\\1#Ui', "", $user_thumbnail);
|
58 |
+
$user_thumbnail = preg_replace ('#width=([\'"])([^\\1]+)\\1#Ui', "", $user_thumbnail);
|
59 |
+
return $user_thumbnail;
|
|
|
|
|
|
|
60 |
}
|
61 |
}
|
62 |
}
|
63 |
}
|
64 |
+
return $args [0];
|
65 |
}
|
66 |
add_filter ('get_avatar', 'oa_social_login_custom_avatar');
|
67 |
|
122 |
*/
|
123 |
function oa_social_login_render_custom_form_login ()
|
124 |
{
|
125 |
+
if (!is_user_logged_in ())
|
126 |
+
{
|
127 |
+
oa_social_login_render_login_form ('custom');
|
128 |
+
}
|
129 |
}
|
130 |
add_action ('oa_social_login', 'oa_social_login_render_custom_form_login');
|
131 |
|
188 |
{
|
189 |
//Random integer
|
190 |
$rand = mt_rand (99999, 9999999);
|
191 |
+
?>
|
192 |
<div class="oneall_social_login">
|
193 |
<?php
|
194 |
+
if ($show_title)
|
195 |
+
{
|
196 |
+
?>
|
197 |
<div style="margin-bottom: 3px;"><label><?php _e ($plugin_caption, 'oa_social_login'); ?></label></div>
|
198 |
<?php
|
199 |
+
}
|
200 |
+
?>
|
201 |
<div class="oneall_social_login_providers" id="oneall_social_login_providers_<?php echo $rand; ?>"></div>
|
202 |
<script type="text/javascript">
|
203 |
oneall.api.plugins.social_login.build("oneall_social_login_providers_<?php echo $rand; ?>", {
|
208 |
</script>
|
209 |
</div>
|
210 |
<?php
|
211 |
+
}
|
212 |
+
}
|
213 |
+
}
|
oa-social-login.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Social Login
|
4 |
Plugin URI: http://www.oneall.com/
|
5 |
Description: Allow your visitors to <strong>comment, login and register with 20+ social networks</strong> like Twitter, Facebook, LinkedIn, Hyves, Вконтакте, Google or Yahoo.
|
6 |
-
Version: 1.
|
7 |
Author: Claude Schlesser
|
8 |
Author URI: http://www.oneall.com/
|
9 |
License: GPL2
|
@@ -11,14 +11,13 @@ License: GPL2
|
|
11 |
|
12 |
define ('OA_SOCIAL_LOGIN_PLUGIN_URL', plugins_url () . '/' . basename (dirname (__FILE__)));
|
13 |
|
|
|
14 |
/**
|
15 |
-
* Check technical requirements before activating the plugin
|
16 |
-
* Wordpress 3.0
|
17 |
-
* CURL Required
|
18 |
*/
|
19 |
function oa_social_login_activate ()
|
20 |
{
|
21 |
-
//Wordpress 3.0 or newer required
|
22 |
if (!function_exists ('register_post_status'))
|
23 |
{
|
24 |
deactivate_plugins (basename (dirname (__FILE__)) . '/' . basename (__FILE__));
|
@@ -31,12 +30,13 @@ function oa_social_login_activate ()
|
|
31 |
echo sprintf (__ ("This plugin requires the <a href='http://www.php.net/manual/en/intro.curl.php'>PHP libcurl extension</a> be installed. Please contact your web host and request libcurl be <a href='http://www.php.net/manual/en/intro.curl.php'>installed</a>."));
|
32 |
exit;
|
33 |
}
|
34 |
-
update_option('oa_social_login_activation_message', 0);
|
35 |
}
|
36 |
register_activation_hook (__FILE__, 'oa_social_login_activate');
|
37 |
|
|
|
38 |
/**
|
39 |
-
* This file only
|
40 |
* Deprecated since version 3.1, the functions are included by default
|
41 |
*/
|
42 |
if (!function_exists ('email_exists'))
|
@@ -45,18 +45,20 @@ if (!function_exists ('email_exists'))
|
|
45 |
}
|
46 |
|
47 |
|
48 |
-
|
49 |
/**
|
50 |
* Include required files
|
51 |
-
|
52 |
require_once(dirname (__FILE__) . '/includes/settings.php');
|
53 |
require_once(dirname (__FILE__) . '/includes/toolbox.php');
|
54 |
require_once(dirname (__FILE__) . '/includes/admin.php');
|
55 |
require_once(dirname (__FILE__) . '/includes/user_interface.php');
|
56 |
require_once(dirname (__FILE__) . '/includes/widget.php');
|
57 |
|
58 |
-
|
|
|
|
|
|
|
59 |
if (isset ($_POST) AND !empty ($_POST ['oa_action']) AND $_POST ['oa_action'] == 'social_login' AND !empty ($_POST ['connection_token']))
|
60 |
{
|
61 |
add_action ('init', 'oa_social_login_callback', 2000);
|
62 |
-
}
|
3 |
Plugin Name: Social Login
|
4 |
Plugin URI: http://www.oneall.com/
|
5 |
Description: Allow your visitors to <strong>comment, login and register with 20+ social networks</strong> like Twitter, Facebook, LinkedIn, Hyves, Вконтакте, Google or Yahoo.
|
6 |
+
Version: 1.5
|
7 |
Author: Claude Schlesser
|
8 |
Author URI: http://www.oneall.com/
|
9 |
License: GPL2
|
11 |
|
12 |
define ('OA_SOCIAL_LOGIN_PLUGIN_URL', plugins_url () . '/' . basename (dirname (__FILE__)));
|
13 |
|
14 |
+
|
15 |
/**
|
16 |
+
* Check technical requirements before activating the plugin
|
17 |
+
* Wordpress >3.0 & PHP CURL required
|
|
|
18 |
*/
|
19 |
function oa_social_login_activate ()
|
20 |
{
|
|
|
21 |
if (!function_exists ('register_post_status'))
|
22 |
{
|
23 |
deactivate_plugins (basename (dirname (__FILE__)) . '/' . basename (__FILE__));
|
30 |
echo sprintf (__ ("This plugin requires the <a href='http://www.php.net/manual/en/intro.curl.php'>PHP libcurl extension</a> be installed. Please contact your web host and request libcurl be <a href='http://www.php.net/manual/en/intro.curl.php'>installed</a>."));
|
31 |
exit;
|
32 |
}
|
33 |
+
update_option ('oa_social_login_activation_message', 0);
|
34 |
}
|
35 |
register_activation_hook (__FILE__, 'oa_social_login_activate');
|
36 |
|
37 |
+
|
38 |
/**
|
39 |
+
* This file only has to be included for versions before 3.1.
|
40 |
* Deprecated since version 3.1, the functions are included by default
|
41 |
*/
|
42 |
if (!function_exists ('email_exists'))
|
45 |
}
|
46 |
|
47 |
|
|
|
48 |
/**
|
49 |
* Include required files
|
50 |
+
*/
|
51 |
require_once(dirname (__FILE__) . '/includes/settings.php');
|
52 |
require_once(dirname (__FILE__) . '/includes/toolbox.php');
|
53 |
require_once(dirname (__FILE__) . '/includes/admin.php');
|
54 |
require_once(dirname (__FILE__) . '/includes/user_interface.php');
|
55 |
require_once(dirname (__FILE__) . '/includes/widget.php');
|
56 |
|
57 |
+
|
58 |
+
/**
|
59 |
+
* Callback Handler
|
60 |
+
*/
|
61 |
if (isset ($_POST) AND !empty ($_POST ['oa_action']) AND $_POST ['oa_action'] == 'social_login' AND !empty ($_POST ['connection_token']))
|
62 |
{
|
63 |
add_action ('init', 'oa_social_login_callback', 2000);
|
64 |
+
}
|
readme.txt
CHANGED
@@ -1,118 +1,136 @@
|
|
1 |
-
=== Social Login ===
|
2 |
-
Contributors: ClaudeSchlesser
|
3 |
-
Tags: social login, social connect, facebook, linkedin, google, yahoo, twitter, openid,
|
4 |
-
Requires at least: 3.0
|
5 |
-
Tested up to: 3.
|
6 |
-
Stable tag: 1.
|
7 |
-
|
8 |
-
Allow your visitors to comment and login with social networks like Twitter, Facebook, LinkedIn, Hyves, OpenID,
|
9 |
-
|
10 |
-
== Description ==
|
11 |
-
|
12 |
-
The Social Login Plugin is a professional though free plugin that allows your visitors to comment,
|
13 |
-
login and register with social networks like Twitter, Facebook, LinkedIn, Hyves, Вконтакте, Google or
|
14 |
-
|
15 |
-
|
16 |
-
<
|
17 |
-
<
|
18 |
-
<li>On the
|
19 |
-
<li>On the
|
20 |
-
<li>
|
21 |
-
</ul>
|
22 |
-
|
23 |
-
<strong>Optionally add the Social Login widget:</strong>
|
24 |
-
<ul>
|
25 |
-
<li>A login widget that you can easily attach to your sidebar is provided</li>
|
26 |
-
</ul>
|
27 |
-
|
28 |
-
<strong>Select the Social Networks/Providers:</strong>
|
29 |
-
<ul>
|
30 |
-
<li>Facebook</li>
|
31 |
-
<li>Twitter</li>
|
32 |
-
<li>Google</li>
|
33 |
-
<li>LinkedIn</li>
|
34 |
-
<li>
|
35 |
-
<li>
|
36 |
-
<li>
|
37 |
-
<li>
|
38 |
-
<li>
|
39 |
-
</
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
= 1.
|
105 |
-
*
|
106 |
-
|
107 |
-
= 1.
|
108 |
-
*
|
109 |
-
*
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
*
|
116 |
-
|
117 |
-
|
118 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Social Login ===
|
2 |
+
Contributors: ClaudeSchlesser
|
3 |
+
Tags: social login, social connect, facebook login, linkedin, google, yahoo, twitter login, openid, paypal, vkontakte, hyves, widget, plugin, social network login, comments
|
4 |
+
Requires at least: 3.0
|
5 |
+
Tested up to: 3.3
|
6 |
+
Stable tag: 1.5
|
7 |
+
|
8 |
+
Allow your visitors to comment and login with social networks like Twitter, Facebook, Paypal, LinkedIn, Hyves, OpenID, VKontakte, Google, Yahoo
|
9 |
+
|
10 |
+
== Description ==
|
11 |
+
|
12 |
+
The Social Login Plugin is a professional though free Wordpress plugin that allows your visitors to comment,
|
13 |
+
login and register with social networks like Twitter, Facebook, LinkedIn, Paypal, Hyves, Вконтакте, Google or Yahoo. <br />
|
14 |
+
|
15 |
+
<strong>Choose where to add the Social Login Plugin:</strong>
|
16 |
+
<ul>
|
17 |
+
<li>On the comment formular</li>
|
18 |
+
<li>On the login page</li>
|
19 |
+
<li>On the registration page</li>
|
20 |
+
<li>In your sidebar</li>
|
21 |
+
</ul>
|
22 |
+
|
23 |
+
<strong>Optionally add the Social Login widget:</strong>
|
24 |
+
<ul>
|
25 |
+
<li>A login widget that you can easily attach to your sidebar is provided</li>
|
26 |
+
</ul>
|
27 |
+
|
28 |
+
<strong>Select the Social Networks/Providers:</strong>
|
29 |
+
<ul>
|
30 |
+
<li>Facebook</li>
|
31 |
+
<li>Twitter</li>
|
32 |
+
<li>Google</li>
|
33 |
+
<li>LinkedIn</li>
|
34 |
+
<li>Paypal</li>
|
35 |
+
<li>Yahoo</li>
|
36 |
+
<li>OpenID</li>
|
37 |
+
<li>Wordpress.com</li>
|
38 |
+
<li>Hyves</li>
|
39 |
+
<li>VKontakte (Вконтакте)</li>
|
40 |
+
</ul>
|
41 |
+
|
42 |
+
<strong>Increase your wordpress user engagement in a few simple steps with this plugin.</strong><br />
|
43 |
+
|
44 |
+
The Social Login Plugin is maintained by <a href="http://www.oneall.com">OneAll</a>, a technology company offering a set of web-delivered
|
45 |
+
tools and services for establishing and optimizing a site's connection with social networks and identity providers such as Facebook, Twitter,
|
46 |
+
Google, Yahoo!, LinkedIn, Paypal, Hyves amongst others.
|
47 |
+
|
48 |
+
|
49 |
+
== Installation ==
|
50 |
+
|
51 |
+
1. Upload the plugin folder to the "/wp-content/plugins/" directory of your WordPress site,
|
52 |
+
2. Activate the plugin through the 'Plugins' menu in WordPress,
|
53 |
+
3. Visit the "Settings\Social Login" administration page to setup the plugin.
|
54 |
+
|
55 |
+
== Frequently Asked Questions ==
|
56 |
+
|
57 |
+
= Do I have to add template tags to my theme? =
|
58 |
+
|
59 |
+
You should not have to change your templates.
|
60 |
+
The Social Login seamlessly integrates into your blog by using predefined hooks.
|
61 |
+
|
62 |
+
|
63 |
+
= I have a custom template and the plugin is not displayed at all! =
|
64 |
+
|
65 |
+
The plugin uses predefined hooks. If your theme does not support these hooks,
|
66 |
+
you can add the Social Login form manually to your theme by inserting the following code
|
67 |
+
in your template (at the location where it should be displayed, i.e. above the comments).
|
68 |
+
|
69 |
+
`<?php do_action('oa_social_login'); ?>`
|
70 |
+
|
71 |
+
Do not hesitate to contact us if you need further assistance.
|
72 |
+
|
73 |
+
= Leaving comments with VKontakte (Вконтакте) does not work! =
|
74 |
+
|
75 |
+
Per default WordPress does not allow to use special characters in usernames.
|
76 |
+
If you encounter any problems with users having cyrillic characters in their
|
77 |
+
usernames, please consider installing the following plugin to fix the problem:
|
78 |
+
<a href="http://wordpress.org/extend/plugins/wordpress-special-characters-in-usernames/">Wordpress Special Characters In Usernames</a>
|
79 |
+
|
80 |
+
= Do I have to change my URL Rewrite Settings? =
|
81 |
+
|
82 |
+
The plugins does not rely on mod_rewrite and does not need any additional rules.
|
83 |
+
It should work out of the box.
|
84 |
+
|
85 |
+
|
86 |
+
= Where can I report bugs, leave feedback and get support? =
|
87 |
+
|
88 |
+
Our team answers your questions at:<br />
|
89 |
+
http://www.oneall.com/company/contact-us/
|
90 |
+
|
91 |
+
The plugin documentation is available at:<br />
|
92 |
+
http://docs.oneall.com/plugins/guide/social-login-wordpress/
|
93 |
+
|
94 |
+
|
95 |
+
== Screenshots ==
|
96 |
+
|
97 |
+
1. **Comment** - Comment formular (Social Network Buttons are included)
|
98 |
+
2. **Login** - Login formular (Social Network Buttons are included)
|
99 |
+
3. **Plugin Settings** - Plugin Settings in the Wordpress Administration Area
|
100 |
+
4. **Widget Settings** - Widget Settings in the Wordpress Administration Area
|
101 |
+
|
102 |
+
== Changelog ==
|
103 |
+
|
104 |
+
= 1.0 =
|
105 |
+
* Initial release
|
106 |
+
|
107 |
+
= 1.0.1 =
|
108 |
+
* Hook oa_social_login fixed
|
109 |
+
* Plugin description changed
|
110 |
+
|
111 |
+
= 1.0.2 =
|
112 |
+
* Version numbers fixed
|
113 |
+
|
114 |
+
= 1.3.2 =
|
115 |
+
* Stable Version
|
116 |
+
|
117 |
+
= 1.3.4 =
|
118 |
+
* Multisite issues with Widget fixed
|
119 |
+
|
120 |
+
= 1.3.5 =
|
121 |
+
* Administration area redirection fixed
|
122 |
+
* Automatic email creation added
|
123 |
+
* Email verification added
|
124 |
+
|
125 |
+
= 1.4 =
|
126 |
+
* Social Network Avatars can be displayed in comments
|
127 |
+
* Social Login can be disabled below the login form
|
128 |
+
* Social Login can be disabled below the registration form
|
129 |
+
* Select redirection target after login
|
130 |
+
* Select redirection target after registration
|
131 |
+
* Enable account linking
|
132 |
+
|
133 |
+
= 1.5 =
|
134 |
+
* Social Network Avatars fixed
|
135 |
+
* Social Buttons no longer displayed for customs hooks if logged in
|
136 |
+
* KISS for API Settings Setup
|