Social Login - Version 3.5

Version Description

  • Identity Provider "Foursquare.com" added
  • Github 16x16px icon fixed
  • Optionally get an email when a users registers with Social Login
  • Redirection settings improved
  • Hook for Thesis Theme added
  • Hook for WordPress Profile Builder added
  • Select to use Port 80 or 443
  • Custom CSS filter added
Download this release

Release Info

Developer ClaudeSchlesser
Plugin Icon 128x128 Social Login
Version 3.5
Comparing to
See all releases

Code changes from version 3.2 to 3.5

assets/css/admin.css CHANGED
@@ -81,7 +81,7 @@
81
  .oa_social_login_table tr.row_odd,
82
  .oa_social_login_table tr.row_odd td {
83
  color: #222;
84
- background-color: #eee;
85
  border-bottom: 1px dotted #BBBBBB;
86
  }
87
 
81
  .oa_social_login_table tr.row_odd,
82
  .oa_social_login_table tr.row_odd td {
83
  color: #222;
84
+ background-color: #ddd;
85
  border-bottom: 1px dotted #BBBBBB;
86
  }
87
 
assets/js/admin.js CHANGED
@@ -18,35 +18,56 @@ jQuery(document).ready(function($) {
18
  jQuery.post(ajaxurl,data, function(response) {
19
 
20
  /* CURL/FSOCKOPEN Radio Boxs */
21
- var radio_curl = jQuery("#oa_social_login_api_connection_handler_curl");
22
- var radio_fsockopen = jQuery("#oa_social_login_api_connection_handler_fsockopen");
 
 
 
23
  radio_curl.removeAttr("checked");
24
  radio_fsockopen.removeAttr("checked");
 
 
25
 
26
- /* CURL detected */
27
- if (response == 'success_autodetect_api_curl')
28
  {
29
  is_success = true;
30
- radio_curl.attr("checked", "checked");
31
- message_string = objectL10n.oa_admin_js_201;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  }
 
33
  else
34
  {
35
- /* FSOCKOPEN detected */
36
- if (response == 'success_autodetect_api_fsockopen')
37
- {
38
- is_success = true;
39
- radio_fsockopen.attr("checked", "checked");
40
- message_string = objectL10n.oa_admin_js_202;
41
- }
42
- /* No handler detected */
43
- else
44
- {
45
- is_success = false;
46
- radio_curl.attr("checked", "checked");
47
- message_string = objectL10n.oa_admin_js_211;
48
- }
49
- }
50
  message_container.removeClass('working_message');
51
  message_container.html(message_string);
52
 
@@ -65,18 +86,20 @@ jQuery(document).ready(function($) {
65
  var message_container;
66
  var is_success;
67
 
68
- var radio_curl_val = jQuery("#oa_social_login_api_connection_handler_curl:checked").val();
69
  var radio_fsockopen_val = jQuery("#oa_social_login_api_connection_handler_fsockopen:checked").val();
70
-
 
71
  var subdomain = jQuery('#oa_social_login_settings_api_subdomain').val();
72
  var key = jQuery('#oa_social_login_settings_api_key').val();
73
  var secret = jQuery('#oa_social_login_settings_api_secret').val();
74
  var handler = (radio_fsockopen_val == 'fsockopen' ? 'fsockopen' : 'curl');
75
-
 
76
  var data = {
77
  _ajax_nonce: objectL10n.oa_social_login_ajax_nonce,
78
  action: 'check_api_settings',
79
  api_connection_handler: handler,
 
80
  api_subdomain: subdomain,
81
  api_key: key,
82
  api_secret: secret
18
  jQuery.post(ajaxurl,data, function(response) {
19
 
20
  /* CURL/FSOCKOPEN Radio Boxs */
21
+ var radio_curl = jQuery("#oa_social_login_api_connection_handler_curl");
22
+ var radio_fsockopen = jQuery("#oa_social_login_api_connection_handler_fsockopen");
23
+ var radio_use_http_1 = jQuery("#oa_social_login_api_connection_handler_use_https_1");
24
+ var radio_use_http_0 = jQuery("#oa_social_login_api_connection_handler_use_https_0");
25
+
26
  radio_curl.removeAttr("checked");
27
  radio_fsockopen.removeAttr("checked");
28
+ radio_use_http_1.removeAttr("checked");
29
+ radio_use_http_0.removeAttr("checked");
30
 
31
+ /* CURL detected, HTTPS */
32
+ if (response == 'success_autodetect_api_curl_https')
33
  {
34
  is_success = true;
35
+ radio_curl.attr("checked", "checked");
36
+ radio_use_http_1.attr("checked", "checked");
37
+ message_string = objectL10n.oa_admin_js_201a;
38
+ }
39
+ /* CURL detected, HTTP */
40
+ else if (response == 'success_autodetect_api_curl_http')
41
+ {
42
+ is_success = true;
43
+ radio_curl.attr("checked", "checked");
44
+ radio_use_http_0.attr("checked", "checked");
45
+ message_string = objectL10n.oa_admin_js_201b;
46
+ }
47
+ /* FSOCKOPEN detected, HTTPS */
48
+ else if (response == 'success_autodetect_api_fsockopen_https')
49
+ {
50
+ is_success = true;
51
+ radio_fsockopen.attr("checked", "checked");
52
+ radio_use_http_1.attr("checked", "checked");
53
+ message_string = objectL10n.oa_admin_js_202a;
54
+ }
55
+ /* FSOCKOPEN detected, HTTP */
56
+ else if (response == 'success_autodetect_api_fsockopen_http')
57
+ {
58
+ is_success = true;
59
+ radio_fsockopen.attr("checked", "checked");
60
+ radio_use_http_0.attr("checked", "checked");
61
+ message_string = objectL10n.oa_admin_js_202b;
62
  }
63
+ /* No handler detected */
64
  else
65
  {
66
+ is_success = false;
67
+ radio_curl.attr("checked", "checked");
68
+ message_string = objectL10n.oa_admin_js_211;
69
+ }
70
+
 
 
 
 
 
 
 
 
 
 
71
  message_container.removeClass('working_message');
72
  message_container.html(message_string);
73
 
86
  var message_container;
87
  var is_success;
88
 
 
89
  var radio_fsockopen_val = jQuery("#oa_social_login_api_connection_handler_fsockopen:checked").val();
90
+ var radio_use_http_0 = jQuery("#oa_social_login_api_connection_handler_use_https_0:checked").val();
91
+
92
  var subdomain = jQuery('#oa_social_login_settings_api_subdomain').val();
93
  var key = jQuery('#oa_social_login_settings_api_key').val();
94
  var secret = jQuery('#oa_social_login_settings_api_secret').val();
95
  var handler = (radio_fsockopen_val == 'fsockopen' ? 'fsockopen' : 'curl');
96
+ var use_https = (radio_use_http_0 == '0' ? '0' : '1');
97
+
98
  var data = {
99
  _ajax_nonce: objectL10n.oa_social_login_ajax_nonce,
100
  action: 'check_api_settings',
101
  api_connection_handler: handler,
102
+ api_connection_use_https: use_https,
103
  api_subdomain: subdomain,
104
  api_key: key,
105
  api_secret: secret
includes/admin.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /**
4
- * Add a column to the user list
5
  **/
6
  function oa_social_login_admin_user_column_add ($columns)
7
  {
@@ -9,17 +9,17 @@ function oa_social_login_admin_user_column_add ($columns)
9
  $settings = get_option ('oa_social_login_settings');
10
 
11
  //Add column if enabled
12
- if (!empty ($settings ['plugin_add_column_user_list']))
13
  {
14
- $columns['oa_social_login_registration'] = __('Registration', 'oa_social_login');
15
  }
16
  return $columns;
17
  }
18
- add_filter('manage_users_columns', 'oa_social_login_admin_user_column_add');
19
 
20
 
21
  /**
22
- * Display the column content
23
  **/
24
  function oa_social_login_admin_user_colum_display ($value, $column_name, $user_id)
25
  {
@@ -30,19 +30,19 @@ function oa_social_login_admin_user_colum_display ($value, $column_name, $user_i
30
  }
31
 
32
  //Read Identity Provider
33
- $identity_providers = get_user_meta($user_id, 'oa_social_login_identity_provider');
34
 
35
  //Tradition Registration
36
- if ( ! is_array ($identity_providers) OR count ($identity_providers) < 1)
37
  {
38
- return __('Registration Form', 'oa_social_login');
39
  }
40
  else
41
  {
42
- return '<strong>Social Login</strong>: '.implode (", ", $identity_providers);
43
  }
44
  }
45
- add_action('manage_users_custom_column', 'oa_social_login_admin_user_colum_display', 10, 3);
46
 
47
 
48
  /**
@@ -51,18 +51,18 @@ add_action('manage_users_custom_column', 'oa_social_login_admin_user_colum_disp
51
  function oa_social_login_admin_menu ()
52
  {
53
  //Setup
54
- $page = add_menu_page('OneAll Social Login '.__('Setup', 'oa_social_login'), 'Social Login', 'manage_options', 'oa_social_login_setup', 'oa_display_social_login_setup');
55
  add_action ('admin_print_styles-' . $page, 'oa_social_login_admin_css');
56
 
57
  //Settings
58
- $page = add_submenu_page( 'oa_social_login_setup', 'OneAll Social Login '.__('Settings'), __('Settings'), 'manage_options', 'oa_social_login_settings', 'oa_display_social_login_settings');
59
  add_action ('admin_print_styles-' . $page, 'oa_social_login_admin_css');
60
 
61
  //Fix Setup title
62
  global $submenu;
63
- if ( is_array ($submenu) AND isset($submenu['oa_social_login_setup']))
64
  {
65
- $submenu['oa_social_login_setup'][0][0] = __('Setup', 'oa_social_login');
66
  }
67
 
68
  add_action ('admin_enqueue_scripts', 'oa_social_login_admin_js');
@@ -75,19 +75,19 @@ add_action ('admin_menu', 'oa_social_login_admin_menu');
75
  /**
76
  * Automatically approve comments if option enabled
77
  **/
78
- function oa_social_login_admin_pre_comment_approved($approved)
79
  {
80
  // No need to do the check if the comment has already been approved
81
- if (empty($approved))
82
  {
83
  //Read settings
84
  $settings = get_option ('oa_social_login_settings');
85
 
86
  //Check if enabled
87
- if (!empty ($settings ['plugin_comment_auto_approve']))
88
  {
89
- $user_id = get_current_user_id();
90
- if ( is_numeric ($user_id))
91
  {
92
  if (get_user_meta ($user_id, 'oa_social_login_user_token', true) !== false)
93
  {
@@ -98,7 +98,7 @@ function oa_social_login_admin_pre_comment_approved($approved)
98
  }
99
  return $approved;
100
  }
101
- add_action('pre_comment_approved', 'oa_social_login_admin_pre_comment_approved');
102
 
103
 
104
  /**
@@ -122,21 +122,29 @@ function oa_social_login_admin_autodetect_api_connection_handler ()
122
  //Check AJAX Nonce
123
  check_ajax_referer ('oa_social_login_ajax_nonce');
124
 
125
- //CURL Works
126
- if (oa_social_login_check_curl () === true)
127
  {
128
- echo 'success_autodetect_api_curl';
129
  die ();
130
  }
131
- //CURL does not work
132
- else
133
  {
134
- // FSOCKOPEN works
135
- if (oa_social_login_check_fsockopen () == true)
136
- {
137
- echo 'success_autodetect_api_fsockopen';
138
- die ();
139
- }
 
 
 
 
 
 
 
 
140
  }
141
 
142
  //No working handler found
@@ -146,7 +154,6 @@ function oa_social_login_admin_autodetect_api_connection_handler ()
146
  add_action ('wp_ajax_autodetect_api_connection_handler', 'oa_social_login_admin_autodetect_api_connection_handler');
147
 
148
 
149
-
150
  /**
151
  * Check API Settings through an Ajax Call
152
  */
@@ -155,7 +162,7 @@ function oa_social_login_admin_check_api_settings ()
155
  check_ajax_referer ('oa_social_login_ajax_nonce');
156
 
157
  //Check if all fields have been filled out
158
- if (empty ($_POST ['api_subdomain']) OR empty ($_POST ['api_key']) OR empty ($_POST ['api_secret']))
159
  {
160
  echo 'error_not_all_fields_filled_out';
161
  delete_option ('oa_social_login_api_settings_verified');
@@ -163,37 +170,39 @@ function oa_social_login_admin_check_api_settings ()
163
  }
164
 
165
  //Check the handler
166
- $api_connection_handler = ((!empty ($_POST ['api_connection_handler']) AND $_POST ['api_connection_handler'] == 'fsockopen') ? 'fsockopen' : 'curl');
 
 
167
 
168
  //FSOCKOPEN
169
  if ($api_connection_handler == 'fsockopen')
170
  {
171
- if ( ! oa_social_login_check_fsockopen ())
172
  {
173
  echo 'error_selected_handler_faulty';
174
  delete_option ('oa_social_login_api_settings_verified');
175
- die();
176
  }
177
  }
178
  //CURL
179
  else
180
  {
181
- if ( ! oa_social_login_check_curl ())
182
  {
183
  echo 'error_selected_handler_faulty';
184
  delete_option ('oa_social_login_api_settings_verified');
185
- die();
186
  }
187
  }
188
 
189
- $api_subdomain = trim (strtolower ($_POST ['api_subdomain']));
190
- $api_key = trim($_POST ['api_key']);
191
- $api_secret = trim($_POST ['api_secret']);
192
 
193
  //Full domain entered
194
  if (preg_match ("/([a-z0-9\-]+)\.api\.oneall\.com/i", $api_subdomain, $matches))
195
  {
196
- $api_subdomain = $matches [1];
197
  }
198
 
199
  //Check subdomain format
@@ -208,7 +217,7 @@ function oa_social_login_admin_check_api_settings ()
208
  $api_domain = $api_subdomain . '.api.oneall.com';
209
 
210
  //Connection to
211
- $api_resource_url = 'https://' . $api_domain . '/tools/ping.json';
212
 
213
  //Get connection details
214
  $result = oa_social_login_do_api_request ($api_connection_handler, $api_resource_url, array ('api_key' => $api_key, 'api_secret' => $api_secret), 15);
@@ -222,25 +231,25 @@ function oa_social_login_admin_check_api_settings ()
222
  case 200:
223
  echo 'success';
224
  update_option ('oa_social_login_api_settings_verified', '1');
225
- break;
226
 
227
- //Authentication Error
228
  case 401:
229
  echo 'error_authentication_credentials_wrong';
230
  delete_option ('oa_social_login_api_settings_verified');
231
- break;
232
 
233
- //Wrong Subdomain
234
  case 404:
235
  echo 'error_subdomain_wrong';
236
  delete_option ('oa_social_login_api_settings_verified');
237
- break;
238
 
239
- //Other error
240
  default:
241
  echo 'error_communication';
242
  delete_option ('oa_social_login_api_settings_verified');
243
- break;
244
  }
245
  }
246
  else
@@ -248,7 +257,7 @@ function oa_social_login_admin_check_api_settings ()
248
  echo 'error_communication';
249
  delete_option ('oa_social_login_api_settings_verified');
250
  }
251
- die();
252
  }
253
  add_action ('wp_ajax_check_api_settings', 'oa_social_login_admin_check_api_settings');
254
 
@@ -258,7 +267,7 @@ add_action ('wp_ajax_check_api_settings', 'oa_social_login_admin_check_api_setti
258
  **/
259
  function oa_social_login_admin_js ($hook)
260
  {
261
- if (stripos($hook, 'oa_social_login') !== false)
262
  {
263
  if (!wp_script_is ('oa_social_login_admin_js', 'registered'))
264
  {
@@ -270,19 +279,22 @@ function oa_social_login_admin_js ($hook)
270
  wp_enqueue_script ('oa_social_login_admin_js');
271
  wp_enqueue_script ('jquery');
272
 
273
- wp_localize_script ('oa_social_login_admin_js', 'objectL10n', array (
274
- 'oa_social_login_ajax_nonce' => $oa_social_login_ajax_nonce,
275
- 'oa_admin_js_1' => __ ('Contacting API - please wait ...', 'oa_social_login'),
276
- 'oa_admin_js_101' => __ ('The settings are correct - do not forget to save your changes!', 'oa_social_login'),
277
- 'oa_admin_js_111' => __ ('Please fill out each of the fields above.', 'oa_social_login'),
278
- 'oa_admin_js_112' => __ ('The subdomain does not exist. Have you filled it out correctly?', 'oa_social_login'),
279
- 'oa_admin_js_113' => __ ('The subdomain has a wrong syntax!', 'oa_social_login'),
280
- 'oa_admin_js_114' => __ ('Could not contact API. Are outbound requests on port 443 allowed?', 'oa_social_login'),
281
- 'oa_admin_js_115' => __ ('The API subdomain is correct, but one or both keys are invalid', 'oa_social_login'),
282
- 'oa_admin_js_116' => __ ('Connection handler does not work, try using the Autodetection', 'oa_social_login'),
283
- 'oa_admin_js_201' => __ ('Autodetected PHP CURL - do not forget to save your changes!', 'oa_social_login'),
284
- 'oa_admin_js_202' => __ ('Autodetected PHP FSOCKOPEN - do not forget to save your changes!', 'oa_social_login'),
285
- 'oa_admin_js_211' => sprintf(__ ('Autodetection Error - our <a href="%s" target="_blank">documentation</a> helps you fix this issue.', 'oa_social_login'), 'http://docs.oneall.com/plugins/guide/social-login-wordpress/#help')
 
 
 
286
  ));
287
  }
288
  }
@@ -327,15 +339,15 @@ function oa_social_login_settings_validate ($settings)
327
  GLOBAL $oa_social_login_providers;
328
 
329
  //Settings page?
330
- $page = ( ! empty ($_POST['page']) ? strtolower($_POST['page']) : '');
331
 
332
  //Store the sanitzed settings
333
  $sanitzed_settings = get_option ('oa_social_login_settings');
334
 
335
  //Check format
336
- if ( ! is_array ($sanitzed_settings))
337
  {
338
- $sanitzed_settings = array();
339
  }
340
 
341
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -343,27 +355,28 @@ function oa_social_login_settings_validate ($settings)
343
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////
344
  if ($page == 'setup')
345
  {
 
346
  //Extract fields
347
- foreach (array ('api_connection_handler', 'api_subdomain', 'api_key', 'api_secret', 'providers') AS $key)
348
  {
349
  //Value is given
350
- if (isset ($settings [$key]))
351
  {
352
  //Provider tickboxes
353
  if ($key == 'providers')
354
  {
355
  //Resest providers
356
- $sanitzed_settings ['providers'] = array();
357
 
358
  //Loop through new values
359
- if (is_array ($settings ['providers']))
360
  {
361
  //Loop through valid values
362
  foreach ($oa_social_login_providers AS $key => $name)
363
  {
364
- if (isset ($settings ['providers'] [$key]) AND $settings ['providers'] [$key] == '1')
365
  {
366
- $sanitzed_settings ['providers'] [$key] = 1;
367
  }
368
  }
369
  }
@@ -371,34 +384,36 @@ function oa_social_login_settings_validate ($settings)
371
  //Other field
372
  else
373
  {
374
- $sanitzed_settings [$key] = trim ($settings [$key]);
375
  }
376
  }
377
  }
 
 
378
 
379
  //Sanitize API Connection handler
380
- if (isset ($sanitzed_settings ['api_connection_handler']) AND in_array (strtolower($sanitzed_settings ['api_connection_handler']), array ('curl', 'fsockopen')))
381
  {
382
- $sanitzed_settings ['api_connection_handler'] = strtolower($sanitzed_settings ['api_connection_handler']);
383
  }
384
  else
385
  {
386
- $sanitzed_settings ['api_connection_handler'] = 'curl';
387
  }
388
 
389
  //Sanitize API Subdomain
390
- if (isset ($sanitzed_settings ['api_subdomain']))
391
  {
392
  //Subdomain is always in lowercase
393
- $api_subdomain = strtolower ($sanitzed_settings ['api_subdomain']);
394
 
395
  //Full domain entered
396
  if (preg_match ("/([a-z0-9\-]+)\.api\.oneall\.com/i", $api_subdomain, $matches))
397
  {
398
- $api_subdomain = $matches [1];
399
  }
400
 
401
- $sanitzed_settings ['api_subdomain'] = $api_subdomain;
402
  }
403
 
404
  //Done
@@ -426,53 +441,87 @@ function oa_social_login_settings_validate ($settings)
426
  'plugin_registration_form_redirect_custom_url',
427
  'plugin_comment_show_if_members_only',
428
  'plugin_comment_auto_approve',
429
- 'plugin_comment_show'
 
 
 
 
 
430
  ) AS $key)
431
  {
432
- if (isset ($settings [$key]))
433
  {
434
- $sanitzed_settings [$key] = trim ($settings [$key]);
435
  }
436
  }
437
 
438
  //Flag settings
439
- $sanitzed_settings ['plugin_add_column_user_list'] == ((isset ($sanitzed_settings ['plugin_add_column_user_list']) AND $sanitzed_settings ['plugin_add_column_user_list'] == '1') ? 1 : 0);
440
- $sanitzed_settings ['plugin_require_email'] == ((isset ($sanitzed_settings ['plugin_require_email']) AND $sanitzed_settings ['plugin_require_email'] == '1') ? 1 : 0);
441
- $sanitzed_settings ['plugin_comment_show'] == ((isset ($sanitzed_settings ['plugin_comment_show']) AND $sanitzed_settings ['plugin_comment_show'] == '0') ? 0 : 1);
442
- $sanitzed_settings ['plugin_use_small_buttons'] == ((isset ($sanitzed_settings ['plugin_use_small_buttons']) AND $sanitzed_settings ['plugin_use_small_buttons'] == '1') ? 1 : 0);
443
- $sanitzed_settings ['plugin_show_avatars_in_comments'] == ((isset ($sanitzed_settings ['plugin_show_avatars_in_comments']) AND $sanitzed_settings ['plugin_show_avatars_in_comments'] == '1') ? 1 : 0);
444
- $sanitzed_settings ['plugin_link_verified_accounts'] == ((isset ($sanitzed_settings ['plugin_link_verified_accounts']) AND $sanitzed_settings ['plugin_link_verified_accounts'] == '0') ? 0 : 1);
445
- $sanitzed_settings ['plugin_login_form_redirect'] = ((isset ($sanitzed_settings ['plugin_login_form_redirect']) AND in_array ($sanitzed_settings ['plugin_login_form_redirect'], array ('dashboard','homepage', 'custom'))) ? $sanitzed_settings ['plugin_login_form_redirect'] : 'homepage');
446
- $sanitzed_settings ['plugin_registration_form_redirect'] = ((isset ($sanitzed_settings ['plugin_registration_form_redirect']) AND in_array ($sanitzed_settings ['plugin_registration_form_redirect'], array ('dashboard', 'homepage', 'custom'))) ? $sanitzed_settings ['plugin_registration_form_redirect'] : 'dashboard');
447
- $sanitzed_settings ['plugin_display_in_login_form'] == ((isset ($sanitzed_settings ['plugin_display_in_login_form']) AND $sanitzed_settings ['plugin_display_in_login_form'] == '0') ? 0 : 1);
448
- $sanitzed_settings ['plugin_comment_show_if_members_only'] == ((isset ($sanitzed_settings ['plugin_comment_show_if_members_only']) AND $sanitzed_settings ['plugin_comment_show_if_members_only'] == '1') ? 1 : 0);
449
- $sanitzed_settings ['plugin_comment_auto_approve'] == ((isset ($sanitzed_settings ['plugin_comment_auto_approve']) AND $sanitzed_settings ['plugin_comment_auto_approve'] == '1') ? 1 : 0);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
450
 
451
  //Check Login Redirection Settings
452
- if ($sanitzed_settings ['plugin_login_form_redirect'] == 'custom')
453
  {
454
- if (empty ($sanitzed_settings ['plugin_login_form_redirect_custom_url']))
455
  {
456
- $sanitzed_settings ['plugin_login_form_redirect'] = 'homepage';
457
  }
458
  }
459
  else
460
  {
461
- $sanitzed_settings ['plugin_login_form_redirect_custom_url'] = '';
462
  }
463
 
464
 
465
  //Check Registration Redirection Settings
466
- if ($sanitzed_settings ['plugin_registration_form_redirect'] == 'custom')
467
  {
468
- if (empty ($sanitzed_settings ['plugin_registration_form_redirect_custom_url']))
469
  {
470
- $sanitzed_settings ['plugin_registration_form_redirect'] = 'dashboard';
471
  }
472
  }
473
  else
474
  {
475
- $sanitzed_settings ['plugin_registration_form_redirect_custom_url'] = '';
476
  }
477
 
478
  //Done
@@ -480,11 +529,10 @@ function oa_social_login_settings_validate ($settings)
480
  }
481
 
482
  //Error
483
- return array();
484
  }
485
 
486
 
487
-
488
  /**
489
  * Display Settings Page
490
  **/
@@ -492,7 +540,6 @@ function oa_display_social_login_setup ()
492
  {
493
  //Import providers
494
  GLOBAL $oa_social_login_providers;
495
-
496
  ?>
497
  <div class="wrap">
498
  <div id="oa_social_login_page" class="oa_social_login_setup">
@@ -500,48 +547,48 @@ function oa_display_social_login_setup ()
500
  OneAll Social Login <?php _e ('Setup', 'oa_social_login'); ?>
501
  </h2>
502
  <?php
503
- if (get_option ('oa_social_login_api_settings_verified') !== '1')
504
- {
505
- ?>
506
- <p>
507
- <?php _e ('Allow your visitors to comment, login and register with social networks like Twitter, Facebook, LinkedIn, Hyves, VKontakte, Google or Yahoo.', 'oa_social_login'); ?>
508
- <strong><?php _e ('Draw a larger audience and increase user engagement in a few simple steps.', 'oa_social_login'); ?> </strong>
509
- </p>
510
- <div class="oa_social_login_box" id="oa_social_login_box_status">
511
- <div class="oa_social_login_box_title">
512
- <?php _e ('Get Started!', 'oa_social_login'); ?>
513
- </div>
514
- <p>
515
- <?php printf (__ ('To be able to use this plugin you first of all need to create a free account at %s and setup a Site.', 'oa_social_login'), '<a href="https://app.oneall.com/signup/" target="_blank">http://www.oneall.com</a>'); ?>
516
- <?php _e ('After having created your account and setup your Site, please enter the Site settings in the form below.', 'oa_social_login'); ?>
517
- <?php _e("Don't worry the setup only takes a couple of minutes! Let's get started!", 'oa_social_login'); ?>
518
- </p>
519
  <p>
520
- <a class="button-secondary" href="https://app.oneall.com/signup/" target="_blank"><strong><?php _e ('Click here to setup your free account', 'oa_social_login'); ?></strong></a>
 
521
  </p>
522
- <h3>
523
- <?php printf (__ ('You are in good company! This plugin is used on more than %s websites!', 'oa_social_login'), '50000'); ?>
524
- </h3>
525
- </div>
526
- <?php
527
- }
528
- else
529
- {
530
- ?>
531
- <div class="oa_social_login_box" id="oa_social_login_box_status">
532
- <div class="oa_social_login_box_title">
533
- <?php _e ('Your API Account is setup correctly', 'oa_social_login'); ?>
 
 
 
534
  </div>
535
- <p>
536
- <?php _e ('Login to your account to manage your providers and access your Social Insights.', 'oa_social_login'); ?>
537
- <?php _e ("Determine which social networks are popular amongst your users and tailor your registration experience to increase your users' engagement.", 'oa_social_login'); ?>
538
- </p>
539
- <p>
540
- <a class="button-secondary" href="https://app.oneall.com/signin/" target="_blank"><strong><?php _e ('Click here to login to your account', 'oa_social_login'); ?></strong> </a>
541
- </p>
542
- </div>
543
- <?php
544
- }
 
 
 
 
 
 
 
 
 
545
  ?>
546
  <div class="oa_social_login_box" id="oa_social_login_box_help">
547
  <div class="oa_social_login_box_title">
@@ -551,22 +598,20 @@ function oa_display_social_login_setup ()
551
  <li><?php printf (__ ('<a target="_blank" href="%s">Follow us on Twitter</a> to stay informed about updates', 'oa_social_login'), 'http://www.twitter.com/oneall'); ?>;</li>
552
  <li><?php printf (__ ('<a target="_blank" href="%s">Read the online documentation</a> for more information about this plugin', 'oa_social_login'), 'http://docs.oneall.com/plugins/guide/social-login-wordpress/'); ?>;</li>
553
  <li><?php printf (__ ('<a target="_blank" href="%s">Contact us</a> if you have feedback or need assistance', 'oa_social_login'), 'http://www.oneall.com/company/contact-us/'); ?>.
 
554
  </li>
555
  </ul>
556
  </div>
557
-
558
  <?php
559
- if ( ! empty ($_REQUEST['settings-updated']) AND strtolower($_REQUEST['settings-updated']) == 'true')
560
  {
561
  ?>
562
  <div class="oa_social_login_box" id="oa_social_login_box_updated">
563
- <?php _e('Your modifications have been saved successfully!'); ?>
564
  </div>
565
  <?php
566
-
567
  }
568
  ?>
569
-
570
  <form method="post" action="options.php">
571
  <?php
572
  settings_fields ('oa_social_login_settings_group');
@@ -578,7 +623,7 @@ function oa_display_social_login_setup ()
578
  </th>
579
  </tr>
580
  <?php
581
- $api_connection_handler = ((empty ($settings ['api_connection_handler']) OR $settings ['api_connection_handler'] <> 'fsockopen') ? 'curl' : 'fsockopen');
582
  ?>
583
  <tr class="row_even">
584
  <td rowspan="2" class="row_multi" style="width:180px">
@@ -597,6 +642,26 @@ function oa_display_social_login_setup ()
597
  <span class="description"><?php _e ('Try using FSOCKOPEN if you encounter any problems with CURL.', 'oa_social_login'); ?></span>
598
  </td>
599
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
600
  <tr class="row_foot">
601
  <td>
602
  <a class="button-secondary" id="oa_social_login_autodetect_api_connection_handler" href="#"><?php _e ('Autodetect API Connection', 'oa_social_login'); ?></a>
@@ -621,7 +686,7 @@ function oa_display_social_login_setup ()
621
  <label for="oa_social_login_settings_api_subdomain"><?php _e ('API Subdomain', 'oa_social_login'); ?>:</label>
622
  </td>
623
  <td>
624
- <input type="text" id="oa_social_login_settings_api_subdomain" name="oa_social_login_settings[api_subdomain]" size="65" value="<?php echo (isset ($settings ['api_subdomain']) ? htmlspecialchars ($settings ['api_subdomain']) : ''); ?>" />
625
  </td>
626
  </tr>
627
  <tr class="row_odd">
@@ -629,7 +694,7 @@ function oa_display_social_login_setup ()
629
  <label for="oa_social_login_settings_api_key"><?php _e ('API Public Key', 'oa_social_login'); ?>:</label>
630
  </td>
631
  <td>
632
- <input type="text" id="oa_social_login_settings_api_key" name="oa_social_login_settings[api_key]" size="65" value="<?php echo (isset ($settings ['api_key']) ? htmlspecialchars ($settings ['api_key']) : ''); ?>" />
633
  </td>
634
  </tr>
635
  <tr class="row_even">
@@ -637,7 +702,7 @@ function oa_display_social_login_setup ()
637
  <label for="oa_social_login_settings_api_secret"><?php _e ('API Private Key', 'oa_social_login'); ?>:</label>
638
  </td>
639
  <td>
640
- <input type="text" id="oa_social_login_settings_api_secret" name="oa_social_login_settings[api_secret]" size="65" value="<?php echo (isset ($settings ['api_secret']) ? htmlspecialchars ($settings ['api_secret']) : ''); ?>" />
641
  </td>
642
  </tr>
643
  <tr class="row_foot">
@@ -656,25 +721,25 @@ function oa_display_social_login_setup ()
656
  </th>
657
  </tr>
658
  <?php
659
- $i = 0;
660
- foreach ($oa_social_login_providers AS $key => $provider_data)
661
- {
662
- ?>
663
- <tr class="row_provider <?php echo ((($i++) % 2) == 0) ? 'row_even' : 'row_odd' ?>">
664
- <td>
665
- <label for="oneall_social_login_provider_<?php echo $key; ?>"><span class="oa_social_login_provider oa_social_login_provider_<?php echo $key; ?>" title="<?php echo htmlspecialchars ($provider_data ['name']); ?>"><?php echo htmlspecialchars ($provider_data ['name']); ?> </span></label>
666
- <input type="checkbox" id="oneall_social_login_provider_<?php echo $key; ?>" name="oa_social_login_settings[providers][<?php echo $key; ?>]" value="1" <?php checked ('1', $settings ['providers'] [$key]); ?> />
667
- <label for="oneall_social_login_provider_<?php echo $key; ?>"><?php echo htmlspecialchars ($provider_data ['name']); ?> </label>
668
- <?php
669
- if (in_array ($key, array ('vkontakte', 'mailru')))
670
- {
671
- echo ' - ' . sprintf (__ ('To enable cyrillic usernames, you might need <a target="_blank" href="%s">this plugin</a>', 'oa_social_login'), 'http://wordpress.org/extend/plugins/wordpress-special-characters-in-usernames/');
672
- }
673
- ?>
674
- </td>
675
- </tr>
676
- <?php
677
- }
678
  ?>
679
  </table>
680
  <p class="submit">
@@ -706,20 +771,21 @@ function oa_display_social_login_settings ()
706
  ?>
707
  <div class="oa_social_login_box" id="oa_social_login_box_help">
708
  <div class="oa_social_login_box_title">
709
- <?php _e ('Logout to see the plugin in action!', 'oa_social_login'); ?>
710
  </div>
711
  <p>
712
  <?php
713
- _e ('Social Login is a plugin that allows your users to comment, login and register with their existing Social Network accounts. If a user is already logged in, the plugin will not be displayed. There is no need to give the user the possibility to connect with a social network if he is already connected.', 'oa_social_login'); ?>
714
- <strong><?php _e ('You therefore have to logout to see the plugin in action.', 'oa_social_login');?> </strong>
 
715
  </p>
716
  </div>
717
  <?php
718
- if ( ! empty ($_REQUEST['settings-updated']) AND strtolower($_REQUEST['settings-updated']) == 'true')
719
  {
720
  ?>
721
  <div class="oa_social_login_box" id="oa_social_login_box_updated">
722
- <?php _e('Your modifications have been saved successfully!', 'oa_social_login'); ?>
723
  </div>
724
  <?php
725
  }
@@ -727,202 +793,249 @@ function oa_display_social_login_settings ()
727
  <table class="form-table oa_social_login_table">
728
  <tr class="row_head">
729
  <th>
730
- <?php _e ('Basic Settings', 'oa_social_login'); ?>
731
  </th>
732
  </tr>
733
  <tr class="row_odd">
734
  <td>
735
- <strong><?php _e ('Enter the description to be displayed above the social network login buttons (leave empty for none):', 'oa_social_login');?></strong>
736
  </td>
737
  </tr>
738
  <tr class="row_even">
739
  <td>
740
- <input type="text" name="oa_social_login_settings[plugin_caption]" size="90" value="<?php echo (isset ($settings ['plugin_caption']) ? htmlspecialchars ($settings ['plugin_caption']) : _e ('Connect with:', 'oa_social_login')); ?>" />
741
  </td>
742
  </tr>
743
  <tr class="row_odd">
744
  <td>
745
- <strong><?php _e ("If the user's social network profile has an avatar thumbnail, should we show it as default avatar for the user?", 'oa_social_login');?></strong>
746
  </td>
747
  </tr>
748
  <tr class="row_even">
749
  <td>
750
- <?php $plugin_show_avatars_in_comments = (isset ($settings ['plugin_show_avatars_in_comments']) AND $settings ['plugin_show_avatars_in_comments'] == '1'); ?>
751
- <input type="radio" name="oa_social_login_settings[plugin_show_avatars_in_comments]" value="1" <?php echo ($plugin_show_avatars_in_comments ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, show user avatars from social networks if available', 'oa_social_login'); ?><br />
752
- <input type="radio" name="oa_social_login_settings[plugin_show_avatars_in_comments]" value="0" <?php echo (!$plugin_show_avatars_in_comments ? 'checked="checked"' : ''); ?> /> <?php _e ('No, display the default avatars', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong>
753
  </td>
754
  </tr>
755
  <tr class="row_odd">
756
  <td>
757
- <strong><?php _e ("Do you want to use the default or the small social network buttons?", 'oa_social_login');?></strong>
758
  </td>
759
  </tr>
760
  <tr class="row_even">
761
  <td>
762
- <?php $plugin_use_small_buttons = (isset ($settings ['plugin_use_small_buttons']) AND $settings ['plugin_use_small_buttons'] == '1'); ?>
763
- <input type="radio" name="oa_social_login_settings[plugin_use_small_buttons]" value="0" <?php echo (!$plugin_use_small_buttons ? 'checked="checked"' : ''); ?> /> <?php printf (__ ('Use the default social network buttons (%s)', 'oa_social_login'), '32x32 px'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
764
- <input type="radio" name="oa_social_login_settings[plugin_use_small_buttons]" value="1" <?php echo ($plugin_use_small_buttons ? 'checked="checked"' : ''); ?> /> <?php printf (__ ('Use the small social network buttons (%s)', 'oa_social_login'), '16x16 px'); ?>
 
 
 
 
 
 
 
 
 
 
 
 
765
  </td>
766
  </tr>
767
  </table>
768
  <table class="form-table oa_social_login_table">
769
  <tr class="row_head">
770
  <th>
771
- <?php _e ('Comment Settings', 'oa_social_login');?>
772
  </th>
773
  </tr>
774
  <tr class="row_odd">
775
  <td>
776
- <strong><?php _e ("Show the Social Login buttons in the comment area?", 'oa_social_login');?></strong>
777
  </td>
778
  </tr>
779
  <tr class="row_even">
780
  <td>
781
- <?php $plugin_comment_show = ( ! isset ($settings ['plugin_comment_show']) OR ! empty ($settings ['plugin_comment_show'])); ?>
782
- <input type="radio" name="oa_social_login_settings[plugin_comment_show]" value="1" <?php echo ($plugin_comment_show ? 'checked="checked"' : ''); ?> /> <?php _e('Yes, show the Social Login buttons', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
783
- <input type="radio" name="oa_social_login_settings[plugin_comment_show]" value="0" <?php echo (!$plugin_comment_show ? 'checked="checked"' : ''); ?> /> <?php _e('No, do not show the Social Login buttons', 'oa_social_login'); ?><br />
 
 
784
  </td>
785
  </tr>
786
  <tr class="row_odd">
787
  <td>
788
- <strong><?php _e ("Show the Social Login buttons in the comment area if comments are disabled for guests?", 'oa_social_login');?></strong>
789
  </td>
790
  </tr>
791
  <tr class="row_even">
792
  <td>
793
- <?php $plugin_comment_show_if_members_only = ( ! isset ($settings ['plugin_comment_show_if_members_only']) OR ! empty ($settings ['plugin_comment_show_if_members_only'])); ?>
794
- <span class="description"><?php _e('The buttons will be displayed below the "You must be logged in to leave a comment" notice.');?> </span><br />
795
- <input type="radio" name="oa_social_login_settings[plugin_comment_show_if_members_only]" value="1" <?php echo ($plugin_comment_show_if_members_only ? 'checked="checked"' : ''); ?> /> <?php _e('Yes, show the Social Login buttons', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
796
- <input type="radio" name="oa_social_login_settings[plugin_comment_show_if_members_only]" value="0" <?php echo (!$plugin_comment_show_if_members_only ? 'checked="checked"' : ''); ?> /> <?php _e('No, do not show the Social Login buttons', 'oa_social_login'); ?>
797
  </td>
798
  </tr>
799
  <tr class="row_odd">
800
  <td>
801
- <strong><?php _e ("Automatically approve comments left by users that connected by using Social Login?", 'oa_social_login');?></strong>
802
  </td>
803
  </tr>
804
  <tr class="row_even">
805
  <td>
806
- <?php $plugin_comment_auto_approve = (isset ($settings ['plugin_comment_auto_approve']) AND $settings ['plugin_comment_auto_approve'] == '1'); ?>
807
- <input type="radio" name="oa_social_login_settings[plugin_comment_auto_approve]" value="1" <?php echo ($plugin_comment_auto_approve ? 'checked="checked"' : ''); ?> /> <?php _e('Yes, automatically approve comments made by users that connected with Social Login', 'oa_social_login'); ?><br />
808
- <input type="radio" name="oa_social_login_settings[plugin_comment_auto_approve]" value="0" <?php echo (!$plugin_comment_auto_approve ? 'checked="checked"' : ''); ?> /> <?php _e('No, do not automatically approve', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)
809
- </strong><br />
810
  </td>
811
  </tr>
812
  </table>
813
  <table class="form-table oa_social_login_table">
814
  <tr class="row_head">
815
  <th>
816
- <?php _e ('Login Settings', 'oa_social_login');?>
817
  </th>
818
  </tr>
819
  <tr class="row_odd">
820
  <td>
821
- <strong><?php _e ('Do you want to display the social network login buttons below the login form of your blog?', 'oa_social_login');?></strong>
822
  </td>
823
  </tr>
824
  <tr class="row_even">
825
  <td>
826
- <?php $plugin_display_in_login_form = (!isset ($settings ['plugin_display_in_login_form']) OR $settings ['plugin_display_in_login_form'] == '1'); ?>
827
- <input type="radio" name="oa_social_login_settings[plugin_display_in_login_form]" value="1" <?php echo ($plugin_display_in_login_form ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, display the social network buttons below the login form', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
828
- <input type="radio" name="oa_social_login_settings[plugin_display_in_login_form]" value="0" <?php echo (!$plugin_display_in_login_form ? 'checked="checked"' : ''); ?> /> <?php _e ('No, disable social network buttons in the login form', 'oa_social_login'); ?>
829
  </td>
830
  </tr>
831
  <tr class="row_odd">
832
  <td>
833
- <strong><?php _e ('Where should existing users be redirected to after having logged in with their social network account?', 'oa_social_login');?></strong>
834
  </td>
835
  </tr>
836
  <tr class="row_even">
837
  <td>
838
- <?php $plugin_login_form_redirect = ((!isset ($settings ['plugin_login_form_redirect']) OR !in_array ($settings ['plugin_login_form_redirect'], array ('dashboard', 'homepage', 'custom'))) ? 'homepage' : $settings ['plugin_login_form_redirect']); ?>
839
- <input type="radio" name="oa_social_login_settings[plugin_login_form_redirect]" value="homepage" <?php echo ($plugin_login_form_redirect == 'homepage' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to the homepage of my blog', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
840
- <input type="radio" name="oa_social_login_settings[plugin_login_form_redirect]" value="dashboard" <?php echo ($plugin_login_form_redirect == 'dashboard' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to their account dashboard', 'oa_social_login'); ?><br />
841
- <input type="radio" name="oa_social_login_settings[plugin_login_form_redirect]" value="custom" <?php echo ($plugin_login_form_redirect == 'custom' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to the following url', 'oa_social_login'); ?>:<br />
842
- <input type="text" name="oa_social_login_settings[plugin_login_form_redirect_custom_url]" size="90" value="<?php echo (isset ($settings ['plugin_login_form_redirect_custom_url']) ? htmlspecialchars ($settings ['plugin_login_form_redirect_custom_url']) : ''); ?>" />
 
 
 
 
 
 
 
 
 
 
 
 
843
  </td>
844
  </tr>
845
  </table>
846
  <table class="form-table oa_social_login_table">
847
  <tr class="row_head">
848
  <th>
849
- <?php _e ('Registration Settings', 'oa_social_login'); ?>
850
  </th>
851
  </tr>
852
  <tr class="row_odd">
853
  <td>
854
- <strong><?php _e ("Some social networks do not provide their user's email. Ask the user to enter it manually in this case?", 'oa_social_login');?></strong>
855
  </td>
856
  </tr>
857
  <tr class="row_even">
858
  <td>
859
- <?php $plugin_require_email = (isset ($settings ['plugin_require_email']) AND $settings ['plugin_require_email'] == '1'); ?>
860
- <input type="radio" name="oa_social_login_settings[plugin_require_email]" value="0" <?php echo (!$plugin_require_email ? 'checked="checked"' : ''); ?> /> <?php _e ('No, simplify the registration by automatically creating a placeholder email', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
861
- <input type="radio" name="oa_social_login_settings[plugin_require_email]" value="1" <?php echo ($plugin_require_email ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, require the user to enter this email address manually and display this message:', 'oa_social_login'); ?> <br />
862
- <textarea name="oa_social_login_settings[plugin_require_email_text]" cols="90" rows="3"><?php echo (isset ($settings ['plugin_require_email_text']) ? htmlspecialchars ($settings ['plugin_require_email_text']) : _e('<strong>We unfortunately could not retrieve your email address from %s.</strong> Please enter your email address in the form below in order to continue.', 'oa_social_login')); ?></textarea>
863
- <span class="description"><?php _e ('HTML is allowed, the placeholder %s is replaced by the name of the social network used to connect.', 'oa_social_login'); ?></span>
864
  </td>
865
  </tr>
866
  <tr class="row_odd">
867
  <td>
868
- <strong><?php _e ('If the email address of the social network profile is verified, should we try to link it to an existing account?', 'oa_social_login');?></strong>
869
  </td>
870
  </tr>
871
  <tr class="row_even">
872
  <td>
873
- <?php $plugin_link_verified_accounts = (!isset ($settings ['plugin_link_verified_accounts']) OR $settings ['plugin_link_verified_accounts'] == '1'); ?>
874
- <input type="radio" name="oa_social_login_settings[plugin_link_verified_accounts]" value="1" <?php echo ($plugin_link_verified_accounts ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, try to link verified social network profiles to existing blog accounts', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
875
- <input type="radio" name="oa_social_login_settings[plugin_link_verified_accounts]" value="0" <?php echo (!$plugin_link_verified_accounts ? 'checked="checked"' : ''); ?> /> <?php _e ('No, disable account linking', 'oa_social_login'); ?>
 
 
876
  </td>
877
  </tr>
 
 
 
 
 
 
 
878
  <tr class="row_odd">
879
  <td>
880
- <strong><?php _e ('Do you want to display the social network login buttons below the registration form of your blog?', 'oa_social_login');?></strong>
881
  </td>
882
  </tr>
883
  <tr class="row_even">
884
  <td>
885
- <?php $plugin_display_in_registration_form = (!isset ($settings ['plugin_display_in_registration_form']) OR $settings ['plugin_display_in_registration_form'] == '1'); ?>
886
  <input type="radio" name="oa_social_login_settings[plugin_display_in_registration_form]" value="1" <?php echo ($plugin_display_in_registration_form ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, display the social network buttons below the registration form', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
887
  <input type="radio" name="oa_social_login_settings[plugin_display_in_registration_form]" value="0" <?php echo (!$plugin_display_in_registration_form ? 'checked="checked"' : ''); ?> /> <?php _e ('No, disable social network buttons in the registration form', 'oa_social_login'); ?>
888
  </td>
889
  </tr>
890
  <tr class="row_odd">
891
  <td>
892
- <strong><?php _e ('Where should new users be redirected to after having registered with their social network account?', 'oa_social_login');?></strong>
893
  </td>
894
  </tr>
895
  <tr class="row_even">
896
  <td>
897
- <?php $plugin_registration_form_redirect = ((!isset ($settings ['plugin_registration_form_redirect']) OR !in_array ($settings ['plugin_registration_form_redirect'], array ('dashboard', 'homepage', 'custom'))) ? 'dashboard' : $settings ['plugin_registration_form_redirect']); ?>
898
  <input type="radio" name="oa_social_login_settings[plugin_registration_form_redirect]" value="homepage" <?php echo ($plugin_registration_form_redirect == 'homepage' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to the homepage of my blog', 'oa_social_login'); ?><br />
899
  <input type="radio" name="oa_social_login_settings[plugin_registration_form_redirect]" value="dashboard" <?php echo ($plugin_registration_form_redirect == 'dashboard' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to their account dashboard', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
900
  <input type="radio" name="oa_social_login_settings[plugin_registration_form_redirect]" value="custom" <?php echo ($plugin_registration_form_redirect == 'custom' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to the following url', 'oa_social_login'); ?>:<br />
901
- <input type="text" name="oa_social_login_settings[plugin_registration_form_redirect_custom_url]" size="90" value="<?php echo (isset ($settings ['plugin_registration_form_redirect_custom_url']) ? htmlspecialchars ($settings ['plugin_registration_form_redirect_custom_url']) : ''); ?>" />
902
  </td>
903
  </tr>
904
  </table>
905
-
906
  <table class="form-table oa_social_login_table">
907
  <tr class="row_head">
908
  <th>
909
- <?php _e ('Administration Settings', 'oa_social_login'); ?>
910
  </th>
911
  </tr>
912
  <tr class="row_odd">
913
  <td>
914
- <strong><?php _e ('Display the social networks used to connect in the user list of the administration area ?', 'oa_social_login');?></strong>
915
  </td>
916
  </tr>
917
  <tr class="row_even">
918
  <td>
919
- <?php $plugin_add_column_user_list = (isset ($settings ['plugin_add_column_user_list']) AND $settings ['plugin_add_column_user_list'] == '1');?>
920
- <input type="radio" name="oa_social_login_settings[plugin_add_column_user_list]" value="1" <?php echo ($plugin_add_column_user_list ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, add a new column to the user list and display the used social network', 'oa_social_login'); ?> <br />
921
- <input type="radio" name="oa_social_login_settings[plugin_add_column_user_list]" value="0" <?php echo (!$plugin_add_column_user_list ? 'checked="checked"' : ''); ?> /> <?php _e ('No, no not display the social network in the user list', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
922
  </td>
923
  </tr>
924
  </table>
925
-
926
  <p class="submit">
927
  <input type="hidden" name="page" value="settings" />
928
  <input type="submit" class="button-primary" value="<?php _e ('Save Changes', 'oa_social_login') ?>" />
1
  <?php
2
 
3
  /**
4
+ * Admin User List: Add header column
5
  **/
6
  function oa_social_login_admin_user_column_add ($columns)
7
  {
9
  $settings = get_option ('oa_social_login_settings');
10
 
11
  //Add column if enabled
12
+ if (!empty ($settings['plugin_add_column_user_list']))
13
  {
14
+ $columns['oa_social_login_registration'] = __ ('Registration', 'oa_social_login');
15
  }
16
  return $columns;
17
  }
18
+ add_filter ('manage_users_columns', 'oa_social_login_admin_user_column_add');
19
 
20
 
21
  /**
22
+ * Admin User List: Add column content
23
  **/
24
  function oa_social_login_admin_user_colum_display ($value, $column_name, $user_id)
25
  {
30
  }
31
 
32
  //Read Identity Provider
33
+ $identity_providers = get_user_meta ($user_id, 'oa_social_login_identity_provider');
34
 
35
  //Tradition Registration
36
+ if (!is_array ($identity_providers) OR count ($identity_providers) < 1)
37
  {
38
+ return __ ('Registration Form', 'oa_social_login');
39
  }
40
  else
41
  {
42
+ return '<strong>Social Login</strong>: ' . implode (", ", $identity_providers);
43
  }
44
  }
45
+ add_action ('manage_users_custom_column', 'oa_social_login_admin_user_colum_display', 10, 3);
46
 
47
 
48
  /**
51
  function oa_social_login_admin_menu ()
52
  {
53
  //Setup
54
+ $page = add_menu_page ('OneAll Social Login ' . __ ('Setup', 'oa_social_login'), 'Social Login', 'manage_options', 'oa_social_login_setup', 'oa_display_social_login_setup');
55
  add_action ('admin_print_styles-' . $page, 'oa_social_login_admin_css');
56
 
57
  //Settings
58
+ $page = add_submenu_page ('oa_social_login_setup', 'OneAll Social Login ' . __ ('Settings'), __ ('Settings'), 'manage_options', 'oa_social_login_settings', 'oa_display_social_login_settings');
59
  add_action ('admin_print_styles-' . $page, 'oa_social_login_admin_css');
60
 
61
  //Fix Setup title
62
  global $submenu;
63
+ if (is_array ($submenu) AND isset ($submenu['oa_social_login_setup']))
64
  {
65
+ $submenu['oa_social_login_setup'][0][0] = __ ('Setup', 'oa_social_login');
66
  }
67
 
68
  add_action ('admin_enqueue_scripts', 'oa_social_login_admin_js');
75
  /**
76
  * Automatically approve comments if option enabled
77
  **/
78
+ function oa_social_login_admin_pre_comment_approved ($approved)
79
  {
80
  // No need to do the check if the comment has already been approved
81
+ if (empty ($approved))
82
  {
83
  //Read settings
84
  $settings = get_option ('oa_social_login_settings');
85
 
86
  //Check if enabled
87
+ if (!empty ($settings['plugin_comment_auto_approve']))
88
  {
89
+ $user_id = get_current_user_id ();
90
+ if (is_numeric ($user_id))
91
  {
92
  if (get_user_meta ($user_id, 'oa_social_login_user_token', true) !== false)
93
  {
98
  }
99
  return $approved;
100
  }
101
+ add_action ('pre_comment_approved', 'oa_social_login_admin_pre_comment_approved');
102
 
103
 
104
  /**
122
  //Check AJAX Nonce
123
  check_ajax_referer ('oa_social_login_ajax_nonce');
124
 
125
+ //Check CURL HTTPS - Port 443
126
+ if (oa_social_login_check_curl (true) === true)
127
  {
128
+ echo 'success_autodetect_api_curl_https';
129
  die ();
130
  }
131
+ //Check CURL HTTP - Port 80
132
+ elseif (oa_social_login_check_curl (false) === true)
133
  {
134
+ echo 'success_autodetect_api_curl_http';
135
+ die ();
136
+ }
137
+ //Check FSOCKOPEN HTTPS - Port 443
138
+ elseif (oa_social_login_check_fsockopen (true) == true)
139
+ {
140
+ echo 'success_autodetect_api_fsockopen_https';
141
+ die ();
142
+ }
143
+ //Check FSOCKOPEN HTTP - Port 80
144
+ elseif (oa_social_login_check_fsockopen (false) == true)
145
+ {
146
+ echo 'success_autodetect_api_fsockopen_http';
147
+ die ();
148
  }
149
 
150
  //No working handler found
154
  add_action ('wp_ajax_autodetect_api_connection_handler', 'oa_social_login_admin_autodetect_api_connection_handler');
155
 
156
 
 
157
  /**
158
  * Check API Settings through an Ajax Call
159
  */
162
  check_ajax_referer ('oa_social_login_ajax_nonce');
163
 
164
  //Check if all fields have been filled out
165
+ if (empty ($_POST['api_subdomain']) OR empty ($_POST['api_key']) OR empty ($_POST['api_secret']))
166
  {
167
  echo 'error_not_all_fields_filled_out';
168
  delete_option ('oa_social_login_api_settings_verified');
170
  }
171
 
172
  //Check the handler
173
+ $api_connection_handler = ((!empty ($_POST['api_connection_handler']) AND $_POST['api_connection_handler'] == 'fsockopen') ? 'fsockopen' : 'curl');
174
+ $api_connection_use_https = ((!isset ($_POST['api_connection_use_https']) OR $_POST['api_connection_use_https'] == '1') ? true : false);
175
+
176
 
177
  //FSOCKOPEN
178
  if ($api_connection_handler == 'fsockopen')
179
  {
180
+ if (!oa_social_login_check_fsockopen ($api_connection_use_https))
181
  {
182
  echo 'error_selected_handler_faulty';
183
  delete_option ('oa_social_login_api_settings_verified');
184
+ die ();
185
  }
186
  }
187
  //CURL
188
  else
189
  {
190
+ if (!oa_social_login_check_curl ($api_connection_use_https))
191
  {
192
  echo 'error_selected_handler_faulty';
193
  delete_option ('oa_social_login_api_settings_verified');
194
+ die ();
195
  }
196
  }
197
 
198
+ $api_subdomain = trim (strtolower ($_POST['api_subdomain']));
199
+ $api_key = trim ($_POST['api_key']);
200
+ $api_secret = trim ($_POST['api_secret']);
201
 
202
  //Full domain entered
203
  if (preg_match ("/([a-z0-9\-]+)\.api\.oneall\.com/i", $api_subdomain, $matches))
204
  {
205
+ $api_subdomain = $matches[1];
206
  }
207
 
208
  //Check subdomain format
217
  $api_domain = $api_subdomain . '.api.oneall.com';
218
 
219
  //Connection to
220
+ $api_resource_url = ($api_connection_use_https ? 'https' : 'http').'://' . $api_domain . '/tools/ping.json';
221
 
222
  //Get connection details
223
  $result = oa_social_login_do_api_request ($api_connection_handler, $api_resource_url, array ('api_key' => $api_key, 'api_secret' => $api_secret), 15);
231
  case 200:
232
  echo 'success';
233
  update_option ('oa_social_login_api_settings_verified', '1');
234
+ break;
235
 
236
+ //Authentication Error
237
  case 401:
238
  echo 'error_authentication_credentials_wrong';
239
  delete_option ('oa_social_login_api_settings_verified');
240
+ break;
241
 
242
+ //Wrong Subdomain
243
  case 404:
244
  echo 'error_subdomain_wrong';
245
  delete_option ('oa_social_login_api_settings_verified');
246
+ break;
247
 
248
+ //Other error
249
  default:
250
  echo 'error_communication';
251
  delete_option ('oa_social_login_api_settings_verified');
252
+ break;
253
  }
254
  }
255
  else
257
  echo 'error_communication';
258
  delete_option ('oa_social_login_api_settings_verified');
259
  }
260
+ die ();
261
  }
262
  add_action ('wp_ajax_check_api_settings', 'oa_social_login_admin_check_api_settings');
263
 
267
  **/
268
  function oa_social_login_admin_js ($hook)
269
  {
270
+ if (stripos ($hook, 'oa_social_login') !== false)
271
  {
272
  if (!wp_script_is ('oa_social_login_admin_js', 'registered'))
273
  {
279
  wp_enqueue_script ('oa_social_login_admin_js');
280
  wp_enqueue_script ('jquery');
281
 
282
+ wp_localize_script ('oa_social_login_admin_js', 'objectL10n',
283
+ array (
284
+ 'oa_social_login_ajax_nonce' => $oa_social_login_ajax_nonce,
285
+ 'oa_admin_js_1' => __ ('Contacting API - please wait this may take a few minutes ...', 'oa_social_login'),
286
+ 'oa_admin_js_101' => __ ('The settings are correct - do not forget to save your changes!', 'oa_social_login'),
287
+ 'oa_admin_js_111' => __ ('Please fill out each of the fields above.', 'oa_social_login'),
288
+ 'oa_admin_js_112' => __ ('The subdomain does not exist. Have you filled it out correctly?', 'oa_social_login'),
289
+ 'oa_admin_js_113' => __ ('The subdomain has a wrong syntax!', 'oa_social_login'),
290
+ 'oa_admin_js_114' => __ ('Could not contact API. Are outbound requests on port 443 allowed?', 'oa_social_login'),
291
+ 'oa_admin_js_115' => __ ('The API subdomain is correct, but one or both keys are invalid', 'oa_social_login'),
292
+ 'oa_admin_js_116' => __ ('Connection handler does not work, try using the Autodetection', 'oa_social_login'),
293
+ 'oa_admin_js_201a' => __ ('Detected CURL on Port 443 - do not forget to save your changes!', 'oa_social_login'),
294
+ 'oa_admin_js_201b' => __ ('Detected CURL on Port 80 - do not forget to save your changes!', 'oa_social_login'),
295
+ 'oa_admin_js_202a' => __ ('Detected FSOCKOPEN on Port 443 - do not forget to save your changes!', 'oa_social_login'),
296
+ 'oa_admin_js_202b' => __ ('Detected FSOCKOPEN on Port 80 - do not forget to save your changes!', 'oa_social_login'),
297
+ 'oa_admin_js_211' => sprintf (__ ('Autodetection Error - our <a href="%s" target="_blank">documentation</a> helps you fix this issue.', 'oa_social_login'), 'http://docs.oneall.com/plugins/guide/social-login-wordpress/#help')
298
  ));
299
  }
300
  }
339
  GLOBAL $oa_social_login_providers;
340
 
341
  //Settings page?
342
+ $page = (!empty ($_POST['page']) ? strtolower ($_POST['page']) : '');
343
 
344
  //Store the sanitzed settings
345
  $sanitzed_settings = get_option ('oa_social_login_settings');
346
 
347
  //Check format
348
+ if (!is_array ($sanitzed_settings))
349
  {
350
+ $sanitzed_settings = array ();
351
  }
352
 
353
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////
355
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////
356
  if ($page == 'setup')
357
  {
358
+
359
  //Extract fields
360
+ foreach (array ('api_connection_handler', 'api_connection_use_https', 'api_subdomain', 'api_key', 'api_secret', 'providers') AS $key)
361
  {
362
  //Value is given
363
+ if (isset ($settings[$key]))
364
  {
365
  //Provider tickboxes
366
  if ($key == 'providers')
367
  {
368
  //Resest providers
369
+ $sanitzed_settings['providers'] = array ();
370
 
371
  //Loop through new values
372
+ if (is_array ($settings['providers']))
373
  {
374
  //Loop through valid values
375
  foreach ($oa_social_login_providers AS $key => $name)
376
  {
377
+ if (isset ($settings['providers'][$key]) AND $settings['providers'][$key] == '1')
378
  {
379
+ $sanitzed_settings['providers'][$key] = 1;
380
  }
381
  }
382
  }
384
  //Other field
385
  else
386
  {
387
+ $sanitzed_settings[$key] = trim ($settings[$key]);
388
  }
389
  }
390
  }
391
+ //Sanitize API Use HTTPS
392
+ $sanitzed_settings['api_connection_use_https'] = (empty ($sanitzed_settings['api_connection_use_https']) ? 0 : 1);
393
 
394
  //Sanitize API Connection handler
395
+ if (isset ($sanitzed_settings['api_connection_handler']) AND in_array (strtolower ($sanitzed_settings['api_connection_handler']), array ('curl', 'fsockopen')))
396
  {
397
+ $sanitzed_settings['api_connection_handler'] = strtolower ($sanitzed_settings['api_connection_handler']);
398
  }
399
  else
400
  {
401
+ $sanitzed_settings['api_connection_handler'] = 'curl';
402
  }
403
 
404
  //Sanitize API Subdomain
405
+ if (isset ($sanitzed_settings['api_subdomain']))
406
  {
407
  //Subdomain is always in lowercase
408
+ $api_subdomain = strtolower ($sanitzed_settings['api_subdomain']);
409
 
410
  //Full domain entered
411
  if (preg_match ("/([a-z0-9\-]+)\.api\.oneall\.com/i", $api_subdomain, $matches))
412
  {
413
+ $api_subdomain = $matches[1];
414
  }
415
 
416
+ $sanitzed_settings['api_subdomain'] = $api_subdomain;
417
  }
418
 
419
  //Done
441
  'plugin_registration_form_redirect_custom_url',
442
  'plugin_comment_show_if_members_only',
443
  'plugin_comment_auto_approve',
444
+ 'plugin_comment_show',
445
+ 'plugin_shortcode_login_redirect',
446
+ 'plugin_shortcode_login_redirect_url',
447
+ 'plugin_shortcode_register_redirect',
448
+ 'plugin_shortcode_register_redirect_url',
449
+ 'plugin_notify_admin'
450
  ) AS $key)
451
  {
452
+ if (isset ($settings[$key]))
453
  {
454
+ $sanitzed_settings[$key] = trim ($settings[$key]);
455
  }
456
  }
457
 
458
  //Flag settings
459
+ $sanitzed_settings['plugin_add_column_user_list'] == ((isset ($sanitzed_settings['plugin_add_column_user_list']) AND $sanitzed_settings['plugin_add_column_user_list'] == '1') ? 1 : 0);
460
+ $sanitzed_settings['plugin_notify_admin'] == ((isset ($sanitzed_settings['plugin_notify_admin']) AND $sanitzed_settings['plugin_notify_admin'] == '0') ? 0 : 1);
461
+ $sanitzed_settings['plugin_require_email'] == ((isset ($sanitzed_settings['plugin_require_email']) AND $sanitzed_settings['plugin_require_email'] == '1') ? 1 : 0);
462
+ $sanitzed_settings['plugin_comment_show'] == ((isset ($sanitzed_settings['plugin_comment_show']) AND $sanitzed_settings['plugin_comment_show'] == '0') ? 0 : 1);
463
+ $sanitzed_settings['plugin_use_small_buttons'] == ((isset ($sanitzed_settings['plugin_use_small_buttons']) AND $sanitzed_settings['plugin_use_small_buttons'] == '1') ? 1 : 0);
464
+ $sanitzed_settings['plugin_show_avatars_in_comments'] == ((isset ($sanitzed_settings['plugin_show_avatars_in_comments']) AND $sanitzed_settings['plugin_show_avatars_in_comments'] == '1') ? 1 : 0);
465
+ $sanitzed_settings['plugin_link_verified_accounts'] == ((isset ($sanitzed_settings['plugin_link_verified_accounts']) AND $sanitzed_settings['plugin_link_verified_accounts'] == '0') ? 0 : 1);
466
+ $sanitzed_settings['plugin_login_form_redirect'] = ((isset ($sanitzed_settings['plugin_login_form_redirect']) AND in_array ($sanitzed_settings['plugin_login_form_redirect'], array ('dashboard', 'homepage', 'custom'))) ? $sanitzed_settings['plugin_login_form_redirect'] : 'homepage');
467
+ $sanitzed_settings['plugin_registration_form_redirect'] = ((isset ($sanitzed_settings['plugin_registration_form_redirect']) AND in_array ($sanitzed_settings['plugin_registration_form_redirect'], array ('dashboard', 'homepage','custom'))) ? $sanitzed_settings['plugin_registration_form_redirect'] : 'dashboard');
468
+ $sanitzed_settings['plugin_display_in_login_form'] == ((isset ($sanitzed_settings['plugin_display_in_login_form']) AND $sanitzed_settings['plugin_display_in_login_form'] == '0') ? 0 : 1);
469
+ $sanitzed_settings['plugin_comment_show_if_members_only'] == ((isset ($sanitzed_settings['plugin_comment_show_if_members_only']) AND $sanitzed_settings['plugin_comment_show_if_members_only'] == '1') ? 1 : 0);
470
+ $sanitzed_settings['plugin_comment_auto_approve'] == ((isset ($sanitzed_settings['plugin_comment_auto_approve']) AND $sanitzed_settings['plugin_comment_auto_approve'] == '1') ? 1 : 0);
471
+ $sanitzed_settings['plugin_shortcode_login_redirect'] = ((isset ($sanitzed_settings['plugin_shortcode_login_redirect']) AND in_array ($sanitzed_settings['plugin_shortcode_login_redirect'], array ('current', 'dashboard', 'homepage', 'custom'))) ? $sanitzed_settings['plugin_shortcode_login_redirect'] : 'current');
472
+ $sanitzed_settings['plugin_shortcode_register_redirect'] = ((isset ($sanitzed_settings['plugin_shortcode_register_redirect']) AND in_array ($sanitzed_settings['plugin_shortcode_register_redirect'], array ('current', 'dashboard', 'homepage', 'custom'))) ? $sanitzed_settings['plugin_shortcode_register_redirect'] : 'current');
473
+
474
+ //Check Widget & Shortcode Login Redirection Settings
475
+ if ($sanitzed_settings['plugin_shortcode_login_redirect'] == 'custom')
476
+ {
477
+ if (empty ($sanitzed_settings['plugin_shortcode_login_redirect_url']))
478
+ {
479
+ $sanitzed_settings['plugin_shortcode_login_redirect'] = 'current';
480
+ }
481
+ }
482
+ else
483
+ {
484
+ $sanitzed_settings['plugin_shortcode_login_redirect_url'] = '';
485
+ }
486
+
487
+ //Check Widget & Shortcode Registration Redirection Settings
488
+ if ($sanitzed_settings['plugin_shortcode_register_redirect'] == 'custom')
489
+ {
490
+ if (empty ($sanitzed_settings['plugin_shortcode_register_redirect_url']))
491
+ {
492
+ $sanitzed_settings['plugin_shortcode_register_redirect'] = 'current';
493
+ }
494
+ }
495
+ else
496
+ {
497
+ $sanitzed_settings['plugin_shortcode_register_redirect_url'] = '';
498
+ }
499
 
500
  //Check Login Redirection Settings
501
+ if ($sanitzed_settings['plugin_login_form_redirect'] == 'custom')
502
  {
503
+ if (empty ($sanitzed_settings['plugin_login_form_redirect_custom_url']))
504
  {
505
+ $sanitzed_settings['plugin_login_form_redirect'] = 'homepage';
506
  }
507
  }
508
  else
509
  {
510
+ $sanitzed_settings['plugin_login_form_redirect_custom_url'] = '';
511
  }
512
 
513
 
514
  //Check Registration Redirection Settings
515
+ if ($sanitzed_settings['plugin_registration_form_redirect'] == 'custom')
516
  {
517
+ if (empty ($sanitzed_settings['plugin_registration_form_redirect_custom_url']))
518
  {
519
+ $sanitzed_settings['plugin_registration_form_redirect'] = 'dashboard';
520
  }
521
  }
522
  else
523
  {
524
+ $sanitzed_settings['plugin_registration_form_redirect_custom_url'] = '';
525
  }
526
 
527
  //Done
529
  }
530
 
531
  //Error
532
+ return array ();
533
  }
534
 
535
 
 
536
  /**
537
  * Display Settings Page
538
  **/
540
  {
541
  //Import providers
542
  GLOBAL $oa_social_login_providers;
 
543
  ?>
544
  <div class="wrap">
545
  <div id="oa_social_login_page" class="oa_social_login_setup">
547
  OneAll Social Login <?php _e ('Setup', 'oa_social_login'); ?>
548
  </h2>
549
  <?php
550
+ if (get_option ('oa_social_login_api_settings_verified') !== '1')
551
+ {
552
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
553
  <p>
554
+ <?php _e ('Allow your visitors to comment, login and register with social networks like Twitter, Facebook, LinkedIn, Hyves, VKontakte, Google or Yahoo.', 'oa_social_login'); ?>
555
+ <strong><?php _e ('Draw a larger audience and increase user engagement in a few simple steps.', 'oa_social_login'); ?> </strong>
556
  </p>
557
+ <div class="oa_social_login_box" id="oa_social_login_box_status">
558
+ <div class="oa_social_login_box_title">
559
+ <?php _e ('Get Started!', 'oa_social_login'); ?>
560
+ </div>
561
+ <p>
562
+ <?php printf (__ ('To be able to use this plugin you first of all need to create a free account at %s and setup a Site.', 'oa_social_login'), '<a href="https://app.oneall.com/signup/" target="_blank">http://www.oneall.com</a>'); ?>
563
+ <?php _e ('After having created your account and setup your Site, please enter the Site settings in the form below.', 'oa_social_login'); ?>
564
+ <?php _e ("Don't worry the setup only takes a couple of minutes! Let's get started!", 'oa_social_login'); ?>
565
+ </p>
566
+ <p>
567
+ <a class="button-secondary" href="https://app.oneall.com/signup/" target="_blank"><strong><?php _e ('Click here to setup your free account', 'oa_social_login'); ?></strong></a>
568
+ </p>
569
+ <h3>
570
+ <?php printf (__ ('You are in good company! This plugin is used on more than %s websites!', 'oa_social_login'), '50000'); ?>
571
+ </h3>
572
  </div>
573
+ <?php
574
+ }
575
+ else
576
+ {
577
+ ?>
578
+ <div class="oa_social_login_box" id="oa_social_login_box_status">
579
+ <div class="oa_social_login_box_title">
580
+ <?php _e ('Your API Account is setup correctly', 'oa_social_login'); ?>
581
+ </div>
582
+ <p>
583
+ <?php _e ('Login to your account to manage your providers and access your Social Insights.', 'oa_social_login'); ?>
584
+ <?php _e ("Determine which social networks are popular amongst your users and tailor your registration experience to increase your users' engagement.", 'oa_social_login'); ?>
585
+ </p>
586
+ <p>
587
+ <a class="button-secondary" href="https://app.oneall.com/signin/" target="_blank"><strong><?php _e ('Click here to login to your account', 'oa_social_login'); ?></strong> </a>
588
+ </p>
589
+ </div>
590
+ <?php
591
+ }
592
  ?>
593
  <div class="oa_social_login_box" id="oa_social_login_box_help">
594
  <div class="oa_social_login_box_title">
598
  <li><?php printf (__ ('<a target="_blank" href="%s">Follow us on Twitter</a> to stay informed about updates', 'oa_social_login'), 'http://www.twitter.com/oneall'); ?>;</li>
599
  <li><?php printf (__ ('<a target="_blank" href="%s">Read the online documentation</a> for more information about this plugin', 'oa_social_login'), 'http://docs.oneall.com/plugins/guide/social-login-wordpress/'); ?>;</li>
600
  <li><?php printf (__ ('<a target="_blank" href="%s">Contact us</a> if you have feedback or need assistance', 'oa_social_login'), 'http://www.oneall.com/company/contact-us/'); ?>.
601
+ <li><?php printf (__ ('We also have plugins for <a target="_blank" href="%s">Drupal and Joomla</a> amongst others', 'oa_social_login'), 'http://docs.oneall.com/plugins/'); ?>.
602
  </li>
603
  </ul>
604
  </div>
 
605
  <?php
606
+ if (!empty ($_REQUEST['settings-updated']) AND strtolower ($_REQUEST['settings-updated']) == 'true')
607
  {
608
  ?>
609
  <div class="oa_social_login_box" id="oa_social_login_box_updated">
610
+ <?php _e ('Your modifications have been saved successfully!'); ?>
611
  </div>
612
  <?php
 
613
  }
614
  ?>
 
615
  <form method="post" action="options.php">
616
  <?php
617
  settings_fields ('oa_social_login_settings_group');
623
  </th>
624
  </tr>
625
  <?php
626
+ $api_connection_handler = ((empty ($settings['api_connection_handler']) OR $settings['api_connection_handler'] <> 'fsockopen') ? 'curl' : 'fsockopen');
627
  ?>
628
  <tr class="row_even">
629
  <td rowspan="2" class="row_multi" style="width:180px">
642
  <span class="description"><?php _e ('Try using FSOCKOPEN if you encounter any problems with CURL.', 'oa_social_login'); ?></span>
643
  </td>
644
  </tr>
645
+ <?php
646
+ $api_connection_use_https = ((!isset ($settings['api_connection_use_https']) OR $settings['api_connection_use_https'] == '1') ? true : false);
647
+ ?>
648
+ <tr class="row_even">
649
+ <td rowspan="2" class="row_multi" style="width:180px">
650
+ <label><?php _e ('API Connection Port', 'oa_social_login'); ?>:</label>
651
+ </td>
652
+ <td>
653
+ <input type="radio" id="oa_social_login_api_connection_handler_use_https_1" name="oa_social_login_settings[api_connection_use_https]" value="1" <?php echo ($api_connection_use_https ? 'checked="checked"' : ''); ?> />
654
+ <label for="oa_social_login_api_connection_handler_use_https_1"><?php _e ('Communication via HTTPS on port 443', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong></label><br />
655
+ <span class="description"><?php _e ('Using port 443 is secure but you might need OpenSSL', 'oa_social_login'); ?></span>
656
+ </td>
657
+ </tr>
658
+ <tr class="row_even">
659
+ <td>
660
+ <input type="radio" id="oa_social_login_api_connection_handler_use_https_0" name="oa_social_login_settings[api_connection_use_https]" value="0" <?php echo (!$api_connection_use_https ? 'checked="checked"' : ''); ?> />
661
+ <label for="oa_social_login_api_connection_handler_use_https_0"><?php _e ('Communication via HTTP on port 80', 'oa_social_login'); ?> </label><br />
662
+ <span class="description"><?php _e ("Using port 80 is a bit faster, doesn't need OpenSSL but is less secure", 'oa_social_login'); ?></span>
663
+ </td>
664
+ </tr>
665
  <tr class="row_foot">
666
  <td>
667
  <a class="button-secondary" id="oa_social_login_autodetect_api_connection_handler" href="#"><?php _e ('Autodetect API Connection', 'oa_social_login'); ?></a>
686
  <label for="oa_social_login_settings_api_subdomain"><?php _e ('API Subdomain', 'oa_social_login'); ?>:</label>
687
  </td>
688
  <td>
689
+ <input type="text" id="oa_social_login_settings_api_subdomain" name="oa_social_login_settings[api_subdomain]" size="65" value="<?php echo (isset ($settings['api_subdomain']) ? htmlspecialchars ($settings['api_subdomain']) : ''); ?>" />
690
  </td>
691
  </tr>
692
  <tr class="row_odd">
694
  <label for="oa_social_login_settings_api_key"><?php _e ('API Public Key', 'oa_social_login'); ?>:</label>
695
  </td>
696
  <td>
697
+ <input type="text" id="oa_social_login_settings_api_key" name="oa_social_login_settings[api_key]" size="65" value="<?php echo (isset ($settings['api_key']) ? htmlspecialchars ($settings['api_key']) : ''); ?>" />
698
  </td>
699
  </tr>
700
  <tr class="row_even">
702
  <label for="oa_social_login_settings_api_secret"><?php _e ('API Private Key', 'oa_social_login'); ?>:</label>
703
  </td>
704
  <td>
705
+ <input type="text" id="oa_social_login_settings_api_secret" name="oa_social_login_settings[api_secret]" size="65" value="<?php echo (isset ($settings['api_secret']) ? htmlspecialchars ($settings['api_secret']) : ''); ?>" />
706
  </td>
707
  </tr>
708
  <tr class="row_foot">
721
  </th>
722
  </tr>
723
  <?php
724
+ $i = 0;
725
+ foreach ($oa_social_login_providers AS $key => $provider_data)
726
+ {
727
+ ?>
728
+ <tr class="row_provider <?php echo ((($i++) % 2) == 0) ? 'row_even' : 'row_odd' ?>">
729
+ <td>
730
+ <label for="oneall_social_login_provider_<?php echo $key; ?>"><span class="oa_social_login_provider oa_social_login_provider_<?php echo $key; ?>" title="<?php echo htmlspecialchars ($provider_data['name']); ?>"><?php echo htmlspecialchars ($provider_data['name']); ?> </span></label>
731
+ <input type="checkbox" id="oneall_social_login_provider_<?php echo $key; ?>" name="oa_social_login_settings[providers][<?php echo $key; ?>]" value="1" <?php checked ('1', $settings['providers'][$key]); ?> />
732
+ <label for="oneall_social_login_provider_<?php echo $key; ?>"><?php echo htmlspecialchars ($provider_data['name']); ?> </label>
733
+ <?php
734
+ if (in_array ($key, array ('vkontakte', 'mailru')))
735
+ {
736
+ echo ' - ' . sprintf (__ ('To enable cyrillic usernames, you might need <a target="_blank" href="%s">this plugin</a>', 'oa_social_login'), 'http://wordpress.org/extend/plugins/wordpress-special-characters-in-usernames/');
737
+ }
738
+ ?>
739
+ </td>
740
+ </tr>
741
+ <?php
742
+ }
743
  ?>
744
  </table>
745
  <p class="submit">
771
  ?>
772
  <div class="oa_social_login_box" id="oa_social_login_box_help">
773
  <div class="oa_social_login_box_title">
774
+ <?php _e ('Logout to see the plugin in action!', 'oa_social_login'); ?>
775
  </div>
776
  <p>
777
  <?php
778
+ _e ('Social Login is a plugin that allows your users to comment, login and register with their existing Social Network accounts. If a user is already logged in, the plugin will not be displayed. There is no need to give the user the possibility to connect with a social network if he is already connected.', 'oa_social_login');
779
+ ?>
780
+ <strong><?php _e ('You therefore have to logout to see the plugin in action.', 'oa_social_login'); ?> </strong>
781
  </p>
782
  </div>
783
  <?php
784
+ if (!empty ($_REQUEST['settings-updated']) AND strtolower ($_REQUEST['settings-updated']) == 'true')
785
  {
786
  ?>
787
  <div class="oa_social_login_box" id="oa_social_login_box_updated">
788
+ <?php _e ('Your modifications have been saved successfully!', 'oa_social_login'); ?>
789
  </div>
790
  <?php
791
  }
793
  <table class="form-table oa_social_login_table">
794
  <tr class="row_head">
795
  <th>
796
+ <?php _e ('General Settings', 'oa_social_login'); ?>
797
  </th>
798
  </tr>
799
  <tr class="row_odd">
800
  <td>
801
+ <strong><?php _e ('Enter the description to be displayed above the Social Login buttons (leave empty for none):', 'oa_social_login'); ?></strong>
802
  </td>
803
  </tr>
804
  <tr class="row_even">
805
  <td>
806
+ <input type="text" name="oa_social_login_settings[plugin_caption]" size="90" value="<?php echo (isset ($settings['plugin_caption']) ? htmlspecialchars ($settings['plugin_caption']) : _e ('Connect with:', 'oa_social_login')); ?>" />
807
  </td>
808
  </tr>
809
  <tr class="row_odd">
810
  <td>
811
+ <strong><?php _e ("Do you want to use the default or the small social network buttons?", 'oa_social_login'); ?></strong>
812
  </td>
813
  </tr>
814
  <tr class="row_even">
815
  <td>
816
+ <?php $plugin_use_small_buttons = (isset ($settings['plugin_use_small_buttons']) AND $settings['plugin_use_small_buttons'] == '1'); ?>
817
+ <input type="radio" name="oa_social_login_settings[plugin_use_small_buttons]" value="0" <?php echo (!$plugin_use_small_buttons ? 'checked="checked"' : ''); ?> /> <?php printf (__ ('Use the default social network buttons (%s)', 'oa_social_login'), '32x32 px'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
818
+ <input type="radio" name="oa_social_login_settings[plugin_use_small_buttons]" value="1" <?php echo ($plugin_use_small_buttons ? 'checked="checked"' : ''); ?> /> <?php printf (__ ('Use the small social network buttons (%s)', 'oa_social_login'), '16x16 px'); ?>
819
  </td>
820
  </tr>
821
  <tr class="row_odd">
822
  <td>
823
+ <strong><?php _e ('Do you want to display the social networks used to connect in the user list of the administration area ?', 'oa_social_login'); ?></strong>
824
  </td>
825
  </tr>
826
  <tr class="row_even">
827
  <td>
828
+ <?php $plugin_add_column_user_list = (isset ($settings['plugin_add_column_user_list']) AND $settings['plugin_add_column_user_list'] == '1'); ?>
829
+ <input type="radio" name="oa_social_login_settings[plugin_add_column_user_list]" value="1" <?php echo ($plugin_add_column_user_list ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, add a new column to the user list and display the social network that the user connected with', 'oa_social_login'); ?> <br />
830
+ <input type="radio" name="oa_social_login_settings[plugin_add_column_user_list]" value="0" <?php echo (!$plugin_add_column_user_list ? 'checked="checked"' : ''); ?> /> <?php _e ('No, no not display the social networks in the user list', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong>
831
+ </td>
832
+ </tr>
833
+ <tr class="row_odd">
834
+ <td>
835
+ <strong><?php _e ('Do you want to receive an email when a new user registers with Social Login ?', 'oa_social_login'); ?></strong>
836
+ </td>
837
+ </tr>
838
+ <tr class="row_even">
839
+ <td>
840
+ <?php $plugin_notify_admin = (!isset ($settings['plugin_notify_admin']) OR $settings['plugin_notify_admin'] == '1'); ?>
841
+ <input type="radio" name="oa_social_login_settings[plugin_notify_admin]" value="1" <?php echo ($plugin_notify_admin ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, send me an email when a new user registers with Social Login', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
842
+ <input type="radio" name="oa_social_login_settings[plugin_notify_admin]" value="0" <?php echo (!$plugin_notify_admin ? 'checked="checked"' : ''); ?> /> <?php _e ('No, do not send me an email', 'oa_social_login'); ?>
843
  </td>
844
  </tr>
845
  </table>
846
  <table class="form-table oa_social_login_table">
847
  <tr class="row_head">
848
  <th>
849
+ <?php _e ('User Settings', 'oa_social_login'); ?>
850
  </th>
851
  </tr>
852
  <tr class="row_odd">
853
  <td>
854
+ <strong><?php _e ("If the user's social network profile has no email address, should we ask the user to enter it manually?", 'oa_social_login'); ?></strong>
855
  </td>
856
  </tr>
857
  <tr class="row_even">
858
  <td>
859
+ <?php $plugin_require_email = (isset ($settings['plugin_require_email']) AND $settings['plugin_require_email'] == '1'); ?>
860
+ <input type="radio" name="oa_social_login_settings[plugin_require_email]" value="0" <?php echo (!$plugin_require_email ? 'checked="checked"' : ''); ?> /> <?php _e ('No, simplify the registration by automatically creating a placeholder email', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
861
+ <input type="radio" name="oa_social_login_settings[plugin_require_email]" value="1" <?php echo ($plugin_require_email ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, require the user to enter his email address manually and display this message:', 'oa_social_login'); ?> <br />
862
+ <textarea name="oa_social_login_settings[plugin_require_email_text]" cols="90" rows="3"><?php echo (isset ($settings['plugin_require_email_text']) ? htmlspecialchars ($settings['plugin_require_email_text']) : _e ('<strong>We unfortunately could not retrieve your email address from %s.</strong> Please enter your email address in the form below in order to continue.', 'oa_social_login')); ?></textarea>
863
+ <span class="description"><?php _e ('HTML is allowed, the placeholder %s is replaced by the name of the social network used to connect.', 'oa_social_login'); ?></span>
864
  </td>
865
  </tr>
866
  <tr class="row_odd">
867
  <td>
868
+ <strong><?php _e ("If the user's social network profile has a verified email, should we try to link it to an existing account?", 'oa_social_login'); ?></strong>
869
  </td>
870
  </tr>
871
  <tr class="row_even">
872
  <td>
873
+ <?php $plugin_link_verified_accounts = (!isset ($settings['plugin_link_verified_accounts']) OR $settings['plugin_link_verified_accounts'] == '1'); ?>
874
+ <input type="radio" name="oa_social_login_settings[plugin_link_verified_accounts]" value="1" <?php echo ($plugin_link_verified_accounts ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, try to link verified social network profiles to existing blog accounts', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
875
+ <input type="radio" name="oa_social_login_settings[plugin_link_verified_accounts]" value="0" <?php echo (!$plugin_link_verified_accounts ? 'checked="checked"' : ''); ?> /> <?php _e ('No, disable account linking', 'oa_social_login'); ?>
 
876
  </td>
877
  </tr>
878
  <tr class="row_odd">
879
  <td>
880
+ <strong><?php _e ("If the user's social network profile has an avatar, should we show it as the default avatar for the user?", 'oa_social_login'); ?></strong>
881
  </td>
882
  </tr>
883
  <tr class="row_even">
884
  <td>
885
+ <?php $plugin_show_avatars_in_comments = (isset ($settings['plugin_show_avatars_in_comments']) AND $settings['plugin_show_avatars_in_comments'] == '1'); ?>
886
+ <input type="radio" name="oa_social_login_settings[plugin_show_avatars_in_comments]" value="1" <?php echo ($plugin_show_avatars_in_comments ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, show user avatars from social networks if available', 'oa_social_login'); ?><br />
887
+ <input type="radio" name="oa_social_login_settings[plugin_show_avatars_in_comments]" value="0" <?php echo (!$plugin_show_avatars_in_comments ? 'checked="checked"' : ''); ?> /> <?php _e ('No, display the default avatars', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong>
 
888
  </td>
889
  </tr>
890
  </table>
891
  <table class="form-table oa_social_login_table">
892
  <tr class="row_head">
893
  <th>
894
+ <?php _e ('Comment Settings', 'oa_social_login'); ?>
895
  </th>
896
  </tr>
897
  <tr class="row_odd">
898
  <td>
899
+ <strong><?php _e ("Show the Social Login buttons in the comment area?", 'oa_social_login'); ?></strong>
900
  </td>
901
  </tr>
902
  <tr class="row_even">
903
  <td>
904
+ <?php $plugin_comment_show = (!isset ($settings['plugin_comment_show']) OR !empty ($settings['plugin_comment_show'])); ?>
905
+ <input type="radio" name="oa_social_login_settings[plugin_comment_show]" value="1" <?php echo ($plugin_comment_show ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, show the Social Login buttons', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
906
+ <input type="radio" name="oa_social_login_settings[plugin_comment_show]" value="0" <?php echo (!$plugin_comment_show ? 'checked="checked"' : ''); ?> /> <?php _e ('No, do not show the Social Login buttons', 'oa_social_login'); ?><br />
907
  </td>
908
  </tr>
909
  <tr class="row_odd">
910
  <td>
911
+ <strong><?php _e ("Show the Social Login buttons in the comment area if comments are disabled for guests?", 'oa_social_login'); ?></strong>
912
  </td>
913
  </tr>
914
  <tr class="row_even">
915
  <td>
916
+ <?php $plugin_comment_show_if_members_only = (!isset ($settings['plugin_comment_show_if_members_only']) OR !empty ($settings['plugin_comment_show_if_members_only'])); ?>
917
+ <span class="description"><?php _e ('The buttons will be displayed below the "You must be logged in to leave a comment" notice.'); ?> </span><br />
918
+ <input type="radio" name="oa_social_login_settings[plugin_comment_show_if_members_only]" value="1" <?php echo ($plugin_comment_show_if_members_only ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, show the Social Login buttons', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
919
+ <input type="radio" name="oa_social_login_settings[plugin_comment_show_if_members_only]" value="0" <?php echo (!$plugin_comment_show_if_members_only ? 'checked="checked"' : ''); ?> /> <?php _e ('No, do not show the Social Login buttons', 'oa_social_login'); ?>
920
+ </td>
921
+ </tr>
922
+ <tr class="row_odd">
923
+ <td>
924
+ <strong><?php _e ("Automatically approve comments left by users that connected by using Social Login?", 'oa_social_login'); ?></strong>
925
+ </td>
926
+ </tr>
927
+ <tr class="row_even">
928
+ <td>
929
+ <?php $plugin_comment_auto_approve = (isset ($settings['plugin_comment_auto_approve']) AND $settings['plugin_comment_auto_approve'] == '1'); ?>
930
+ <input type="radio" name="oa_social_login_settings[plugin_comment_auto_approve]" value="1" <?php echo ($plugin_comment_auto_approve ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, automatically approve comments made by users that connected with Social Login', 'oa_social_login'); ?><br />
931
+ <input type="radio" name="oa_social_login_settings[plugin_comment_auto_approve]" value="0" <?php echo (!$plugin_comment_auto_approve ? 'checked="checked"' : ''); ?> /> <?php _e ('No, do not automatically approve', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)
932
+ </strong><br />
933
  </td>
934
  </tr>
935
  </table>
936
  <table class="form-table oa_social_login_table">
937
  <tr class="row_head">
938
  <th>
939
+ <?php _e ('Login Page Settings', 'oa_social_login'); ?>
940
  </th>
941
  </tr>
942
  <tr class="row_odd">
943
  <td>
944
+ <strong><?php _e ('Do you want to display Social Login on the login form of your blog?', 'oa_social_login'); ?></strong>
945
  </td>
946
  </tr>
947
  <tr class="row_even">
948
  <td>
949
+ <?php $plugin_display_in_login_form = (!isset ($settings['plugin_display_in_login_form']) OR $settings['plugin_display_in_login_form'] == '1'); ?>
950
+ <input type="radio" name="oa_social_login_settings[plugin_display_in_login_form]" value="1" <?php echo ($plugin_display_in_login_form ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, display the social network buttons below the login form', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
951
+ <input type="radio" name="oa_social_login_settings[plugin_display_in_login_form]" value="0" <?php echo (!$plugin_display_in_login_form ? 'checked="checked"' : ''); ?> /> <?php _e ('No, disable social network buttons in the login form', 'oa_social_login'); ?>
 
 
952
  </td>
953
  </tr>
954
  <tr class="row_odd">
955
  <td>
956
+ <strong><?php _e ('Where should users be redirected to after having logged in with Social Login on the login page?', 'oa_social_login'); ?></strong>
957
  </td>
958
  </tr>
959
  <tr class="row_even">
960
  <td>
961
+ <?php $plugin_login_form_redirect = ((!isset ($settings['plugin_login_form_redirect']) OR !in_array ($settings['plugin_login_form_redirect'], array ('dashboard','homepage','custom'))) ? 'homepage' : $settings['plugin_login_form_redirect']); ?>
962
+ <input type="radio" name="oa_social_login_settings[plugin_login_form_redirect]" value="homepage" <?php echo ($plugin_login_form_redirect == 'homepage' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to the homepage of my blog', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
963
+ <input type="radio" name="oa_social_login_settings[plugin_login_form_redirect]" value="dashboard" <?php echo ($plugin_login_form_redirect == 'dashboard' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to their account dashboard', 'oa_social_login'); ?><br />
964
+ <input type="radio" name="oa_social_login_settings[plugin_login_form_redirect]" value="custom" <?php echo ($plugin_login_form_redirect == 'custom' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to the following url', 'oa_social_login'); ?>:<br />
965
+ <input type="text" name="oa_social_login_settings[plugin_login_form_redirect_custom_url]" size="90" value="<?php echo (isset ($settings['plugin_login_form_redirect_custom_url']) ? htmlspecialchars ($settings['plugin_login_form_redirect_custom_url']) : ''); ?>" />
966
  </td>
967
  </tr>
968
+ </table>
969
+ <table class="form-table oa_social_login_table">
970
+ <tr class="row_head">
971
+ <th>
972
+ <?php _e ('Registration Page Settings', 'oa_social_login'); ?>
973
+ </th>
974
+ </tr>
975
  <tr class="row_odd">
976
  <td>
977
+ <strong><?php _e ('Do you want to display Social Login on the registration form of your blog?', 'oa_social_login'); ?></strong>
978
  </td>
979
  </tr>
980
  <tr class="row_even">
981
  <td>
982
+ <?php $plugin_display_in_registration_form = (!isset ($settings['plugin_display_in_registration_form']) OR $settings['plugin_display_in_registration_form'] == '1'); ?>
983
  <input type="radio" name="oa_social_login_settings[plugin_display_in_registration_form]" value="1" <?php echo ($plugin_display_in_registration_form ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, display the social network buttons below the registration form', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
984
  <input type="radio" name="oa_social_login_settings[plugin_display_in_registration_form]" value="0" <?php echo (!$plugin_display_in_registration_form ? 'checked="checked"' : ''); ?> /> <?php _e ('No, disable social network buttons in the registration form', 'oa_social_login'); ?>
985
  </td>
986
  </tr>
987
  <tr class="row_odd">
988
  <td>
989
+ <strong><?php _e ('Where should users be redirected to after having registered with Social Login on the registration page?', 'oa_social_login'); ?></strong>
990
  </td>
991
  </tr>
992
  <tr class="row_even">
993
  <td>
994
+ <?php $plugin_registration_form_redirect = ((!isset ($settings['plugin_registration_form_redirect']) OR !in_array ($settings['plugin_registration_form_redirect'], array ('dashboard','homepage','custom'))) ? 'dashboard' : $settings['plugin_registration_form_redirect']); ?>
995
  <input type="radio" name="oa_social_login_settings[plugin_registration_form_redirect]" value="homepage" <?php echo ($plugin_registration_form_redirect == 'homepage' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to the homepage of my blog', 'oa_social_login'); ?><br />
996
  <input type="radio" name="oa_social_login_settings[plugin_registration_form_redirect]" value="dashboard" <?php echo ($plugin_registration_form_redirect == 'dashboard' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to their account dashboard', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
997
  <input type="radio" name="oa_social_login_settings[plugin_registration_form_redirect]" value="custom" <?php echo ($plugin_registration_form_redirect == 'custom' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to the following url', 'oa_social_login'); ?>:<br />
998
+ <input type="text" name="oa_social_login_settings[plugin_registration_form_redirect_custom_url]" size="90" value="<?php echo (isset ($settings['plugin_registration_form_redirect_custom_url']) ? htmlspecialchars ($settings['plugin_registration_form_redirect_custom_url']) : ''); ?>" />
999
  </td>
1000
  </tr>
1001
  </table>
 
1002
  <table class="form-table oa_social_login_table">
1003
  <tr class="row_head">
1004
  <th>
1005
+ <?php _e ('Widget &amp; Shortcode Settings', 'oa_social_login'); ?>
1006
  </th>
1007
  </tr>
1008
  <tr class="row_odd">
1009
  <td>
1010
+ <strong><?php _e ('Redirect users to this page after they have logged in with Social Login embedded by Widget/Shortcode:', 'oa_social_login'); ?></strong>
1011
  </td>
1012
  </tr>
1013
  <tr class="row_even">
1014
  <td>
1015
+ <?php $plugin_shortcode_login_redirect = ((!isset ($settings['plugin_shortcode_login_redirect']) OR !in_array ($settings['plugin_shortcode_login_redirect'], array ('current','dashboard','homepage','custom'))) ? 'current' : $settings['plugin_shortcode_login_redirect']); ?>
1016
+ <input type="radio" name="oa_social_login_settings[plugin_shortcode_login_redirect]" value="current" <?php echo ($plugin_shortcode_login_redirect == 'current' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users back to the current page', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
1017
+ <input type="radio" name="oa_social_login_settings[plugin_shortcode_login_redirect]" value="homepage" <?php echo ($plugin_shortcode_login_redirect == 'homepage' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to the homepage of my blog', 'oa_social_login'); ?> <br />
1018
+ <input type="radio" name="oa_social_login_settings[plugin_shortcode_login_redirect]" value="dashboard" <?php echo ($plugin_shortcode_login_redirect == 'dashboard' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to their account dashboard', 'oa_social_login'); ?><br />
1019
+ <input type="radio" name="oa_social_login_settings[plugin_shortcode_login_redirect]" value="custom" <?php echo ($plugin_shortcode_login_redirect == 'custom' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to the following url', 'oa_social_login'); ?>:<br />
1020
+ <input type="text" name="oa_social_login_settings[plugin_shortcode_login_redirect_url]" size="90" value="<?php echo (isset ($settings['plugin_shortcode_login_redirect_url']) ? htmlspecialchars ($settings['plugin_shortcode_login_redirect_url']) : ''); ?>" />
1021
+ </td>
1022
+ </tr>
1023
+ <tr class="row_odd">
1024
+ <td>
1025
+ <strong><?php _e ('Redirect users to this page after they have registered with Social Login embedded by Widget/Shortcode:', 'oa_social_login'); ?></strong>
1026
+ </td>
1027
+ </tr>
1028
+ <tr class="row_even">
1029
+ <td>
1030
+ <?php $plugin_shortcode_register_redirect = ((!isset ($settings['plugin_shortcode_register_redirect']) OR !in_array ($settings['plugin_shortcode_register_redirect'], array ('current','dashboard','homepage','custom'))) ? 'current' : $settings['plugin_shortcode_register_redirect']); ?>
1031
+ <input type="radio" name="oa_social_login_settings[plugin_shortcode_register_redirect]" value="current" <?php echo ($plugin_shortcode_register_redirect == 'current' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users back to the current page', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
1032
+ <input type="radio" name="oa_social_login_settings[plugin_shortcode_register_redirect]" value="homepage" <?php echo ($plugin_shortcode_register_redirect == 'homepage' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to the homepage of my blog', 'oa_social_login'); ?><br />
1033
+ <input type="radio" name="oa_social_login_settings[plugin_shortcode_register_redirect]" value="dashboard" <?php echo ($plugin_shortcode_register_redirect == 'dashboard' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to their account dashboard', 'oa_social_login'); ?><br />
1034
+ <input type="radio" name="oa_social_login_settings[plugin_shortcode_register_redirect]" value="custom" <?php echo ($plugin_shortcode_register_redirect == 'custom' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to the following url', 'oa_social_login'); ?>:<br />
1035
+ <input type="text" name="oa_social_login_settings[plugin_shortcode_register_redirect_url]" size="90" value="<?php echo (isset ($settings['plugin_shortcode_register_redirect_url']) ? htmlspecialchars ($settings['plugin_shortcode_register_redirect_url']) : ''); ?>" />
1036
  </td>
1037
  </tr>
1038
  </table>
 
1039
  <p class="submit">
1040
  <input type="hidden" name="page" value="settings" />
1041
  <input type="submit" class="button-primary" value="<?php _e ('Save Changes', 'oa_social_login') ?>" />
includes/communication.php CHANGED
@@ -13,10 +13,13 @@ function oa_social_login_callback ()
13
 
14
  //API Settings
15
  $api_connection_handler = ((!empty ($settings ['api_connection_handler']) AND $settings ['api_connection_handler'] == 'fsockopen') ? 'fsockopen' : 'curl');
 
 
16
  $api_subdomain = (!empty ($settings ['api_subdomain']) ? $settings ['api_subdomain'] : '');
17
  $api_key = (!empty ($settings ['api_key']) ? $settings ['api_key'] : '');
18
  $api_secret = (!empty ($settings ['api_secret']) ? $settings ['api_secret'] : '');
19
- $api_resource_url = 'https://' . $api_subdomain . '.api.oneall.com/connections/' . $_POST ['connection_token'] . '.json';
 
20
 
21
  //Get connection details
22
  $result = oa_social_login_do_api_request ($api_connection_handler, $api_resource_url, array ('api_key' => $api_key, 'api_secret' => $api_secret), 15);
@@ -125,6 +128,9 @@ function oa_social_login_callback ()
125
  $user_login = $user_full_name;
126
  }
127
 
 
 
 
128
  //Sanitize Login
129
  $user_login = sanitize_user ($user_login, true);
130
 
@@ -134,6 +140,9 @@ function oa_social_login_callback ()
134
  //Try to link to existing account
135
  if (!is_numeric ($user_id))
136
  {
 
 
 
137
  //Linked enabled?
138
  if (!isset ($settings ['plugin_link_verified_accounts']) OR $settings ['plugin_link_verified_accounts'] == '1')
139
  {
@@ -234,6 +243,12 @@ function oa_social_login_callback ()
234
  }
235
  }
236
 
 
 
 
 
 
 
237
  wp_cache_delete($user_id, 'users');
238
  wp_cache_delete($user_login, 'userlogins');
239
  do_action('user_register', $user_id);
@@ -271,7 +286,7 @@ function oa_social_login_callback ()
271
  {
272
  //Homepage
273
  case 'homepage':
274
- $redirect_to = site_url ();
275
  break;
276
 
277
  //Custom
@@ -295,7 +310,7 @@ function oa_social_login_callback ()
295
  //*************** Login ***************
296
  case 'login':
297
  //Default redirection
298
- $redirect_to = site_url ();
299
 
300
  //Redirection in URL
301
  if (!empty ($_GET ['redirect_to']))
@@ -313,7 +328,7 @@ function oa_social_login_callback ()
313
  //Dashboard
314
  case 'dashboard':
315
  $redirect_to = admin_url ();
316
- break;
317
 
318
  //Custom
319
  case 'custom':
@@ -321,55 +336,69 @@ function oa_social_login_callback ()
321
  {
322
  $redirect_to = trim ($settings ['plugin_login_form_redirect_custom_url']);
323
  }
324
- break;
325
 
326
  //Default/Homepage
327
  default:
328
  case 'homepage':
329
- $redirect_to = site_url ();
330
- break;
331
  }
332
  }
333
  }
334
  break;
335
 
336
- // *************** Other ***************
 
 
 
 
 
337
  default:
338
- //Get request URI - Should work on Apache + IIS
339
- $request_uri = ((!isset ($_SERVER ['REQUEST_URI'])) ? $_SERVER ['PHP_SELF'] : $_SERVER ['REQUEST_URI']);
340
- $request_port = ((!empty ($_SERVER ['SERVER_PORT']) AND $_SERVER ['SERVER_PORT'] <> '80') ? (":" . $_SERVER ['SERVER_PORT']) : '');
341
- $request_protocol = (oa_social_login_https_on () ? 'https' : 'http') . "://";
342
- $redirect_to = $request_protocol . $_SERVER ['SERVER_NAME'] . $request_port . $request_uri;
343
-
344
- //Remove the oa_social_login_source argument
345
- if (strpos ($redirect_to, 'oa_social_login_source') !== false)
346
- {
347
- //Break up url
348
- list($url_part, $query_part) = array_pad (explode ('?', $redirect_to), 2, '');
349
- parse_str ($query_part, $query_vars);
350
 
351
- //Remove oa_social_login_source argument
352
- if (is_array ($query_vars) AND isset ($query_vars ['oa_social_login_source']))
 
 
353
  {
354
- unset ($query_vars ['oa_social_login_source']);
355
- }
 
 
356
 
357
- //Build new url
358
- $redirect_to = $url_part . ((is_array ($query_vars) AND count ($query_vars) > 0) ? ('?' . http_build_query ($query_vars)) : '');
359
- }
 
360
 
361
- //Anchor to #comments
362
- if ($oa_social_login_source == 'comments')
363
- {
364
- $redirect_to .= '#comments';
 
 
 
 
 
 
 
 
 
365
  }
366
- break;
367
  }
368
 
369
  //Check if url set
370
- if (!isset ($redirect_to_safe) OR strlen (trim ($redirect_to_safe)) == 0)
371
  {
372
- $redirect_to_safe = site_url ();
373
  }
374
 
375
  //Use safe redirection
@@ -389,7 +418,6 @@ function oa_social_login_callback ()
389
  }
390
  }
391
 
392
-
393
  /**
394
  * Send an API request by using the given handler
395
  */
@@ -411,9 +439,9 @@ function oa_social_login_do_api_request ($handler, $url, $options = array (), $t
411
  /**
412
  * Check if fsockopen can be used
413
  */
414
- function oa_social_login_check_fsockopen ()
415
  {
416
- $result = oa_social_login_fsockopen_request ('https://www.oneall.com/ping.html');
417
  if (is_object ($result) AND property_exists ($result, 'http_code') AND $result->http_code == 200)
418
  {
419
  if (property_exists ($result, 'http_data'))
@@ -431,11 +459,11 @@ function oa_social_login_check_fsockopen ()
431
  /**
432
  * Check if CURL can be used
433
  */
434
- function oa_social_login_check_curl ()
435
  {
436
  if (in_array ('curl', get_loaded_extensions ()) AND function_exists('curl_exec'))
437
  {
438
- $result = oa_social_login_curl_request ('https://www.oneall.com/ping.html');
439
  if (is_object ($result) AND property_exists ($result, 'http_code') AND $result->http_code == 200)
440
  {
441
  if (property_exists ($result, 'http_data'))
@@ -454,7 +482,7 @@ function oa_social_login_check_curl ()
454
  /**
455
  * Sends a CURL request
456
  */
457
- function oa_social_login_curl_request ($url, $options = array (), $timeout = 15)
458
  {
459
  //Store the result
460
  $result = new stdClass ();
@@ -468,6 +496,7 @@ function oa_social_login_curl_request ($url, $options = array (), $timeout = 15)
468
  curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1);
469
  curl_setopt ($curl, CURLOPT_SSL_VERIFYPEER, 0);
470
  curl_setopt ($curl, CURLOPT_SSL_VERIFYHOST, 0);
 
471
 
472
  // BASIC AUTH?
473
  if (isset ($options ['api_key']) AND isset ($options ['api_secret']))
@@ -553,7 +582,7 @@ function oa_social_login_fsockopen_request ($url, $options = array (), $timeout
553
  //Create HTTP request
554
  $defaults = array (
555
  'Host' => "Host: $host",
556
- 'User-Agent' => 'User-Agent: OneAllSocialLogin (+http://www.oneall.com/)',
557
  );
558
 
559
  // BASIC AUTH?
@@ -593,4 +622,3 @@ function oa_social_login_fsockopen_request ($url, $options = array (), $timeout
593
  return $result;
594
  }
595
 
596
-
13
 
14
  //API Settings
15
  $api_connection_handler = ((!empty ($settings ['api_connection_handler']) AND $settings ['api_connection_handler'] == 'fsockopen') ? 'fsockopen' : 'curl');
16
+ $api_connection_use_https = ((!isset ($settings['api_connection_use_https']) OR $settings['api_connection_use_https'] == '1') ? true : false);
17
+
18
  $api_subdomain = (!empty ($settings ['api_subdomain']) ? $settings ['api_subdomain'] : '');
19
  $api_key = (!empty ($settings ['api_key']) ? $settings ['api_key'] : '');
20
  $api_secret = (!empty ($settings ['api_secret']) ? $settings ['api_secret'] : '');
21
+
22
+ $api_resource_url = ($api_connection_use_https ? 'https' : 'http').'://' . $api_subdomain . '.api.oneall.com/connections/' . $_POST ['connection_token'] . '.json';
23
 
24
  //Get connection details
25
  $result = oa_social_login_do_api_request ($api_connection_handler, $api_resource_url, array ('api_key' => $api_key, 'api_secret' => $api_secret), 15);
128
  $user_login = $user_full_name;
129
  }
130
 
131
+ //New user created?
132
+ $new_registration = false;
133
+
134
  //Sanitize Login
135
  $user_login = sanitize_user ($user_login, true);
136
 
140
  //Try to link to existing account
141
  if (!is_numeric ($user_id))
142
  {
143
+ //This is a new user
144
+ $new_registration = true;
145
+
146
  //Linked enabled?
147
  if (!isset ($settings ['plugin_link_verified_accounts']) OR $settings ['plugin_link_verified_accounts'] == '1')
148
  {
243
  }
244
  }
245
 
246
+ //Notify Administrator
247
+ if ( ! empty ($settings ['plugin_notify_admin']))
248
+ {
249
+ oa_social_login_user_notification($user_id, $user_identity_provider);
250
+ }
251
+
252
  wp_cache_delete($user_id, 'users');
253
  wp_cache_delete($user_login, 'userlogins');
254
  do_action('user_register', $user_id);
286
  {
287
  //Homepage
288
  case 'homepage':
289
+ $redirect_to = home_url ();
290
  break;
291
 
292
  //Custom
310
  //*************** Login ***************
311
  case 'login':
312
  //Default redirection
313
+ $redirect_to = home_url ();
314
 
315
  //Redirection in URL
316
  if (!empty ($_GET ['redirect_to']))
328
  //Dashboard
329
  case 'dashboard':
330
  $redirect_to = admin_url ();
331
+ break;
332
 
333
  //Custom
334
  case 'custom':
336
  {
337
  $redirect_to = trim ($settings ['plugin_login_form_redirect_custom_url']);
338
  }
339
+ break;
340
 
341
  //Default/Homepage
342
  default:
343
  case 'homepage':
344
+ $redirect_to = home_url ();
345
+ break;
346
  }
347
  }
348
  }
349
  break;
350
 
351
+ // *************** Comments ***************
352
+ case 'comments':
353
+ $redirect_to = oa_social_login_get_current_url () . '#comments';
354
+ break;
355
+
356
+ //*************** Widget/Shortcode ***************
357
  default:
358
+ case 'widget':
359
+ case 'shortcode':
360
+ // This is a new user
361
+ $opt_key = ($new_registration === true ? 'register' : 'login');
362
+
363
+ //Default value
364
+ $redirect_to = oa_social_login_get_current_url ();
 
 
 
 
 
365
 
366
+ //Redirection customized
367
+ if (isset ($settings['plugin_shortcode_' . $opt_key . '_redirect']))
368
+ {
369
+ switch (strtolower ($settings['plugin_shortcode_' . $opt_key . '_redirect']))
370
  {
371
+ //Current
372
+ case 'current':
373
+ $redirect_to = oa_social_login_get_current_url ();
374
+ break;
375
 
376
+ //Homepage
377
+ case 'homepage':
378
+ $redirect_to = home_url ();
379
+ break;
380
 
381
+ //Dashboard
382
+ case 'dashboard':
383
+ $redirect_to = admin_url ();
384
+ break;
385
+
386
+ //Custom
387
+ case 'custom':
388
+ if (isset ($settings['plugin_shortcode_' . $opt_key . '_redirect_url']) AND strlen (trim ($settings['plugin_shortcode_' . $opt_key . '_redirect_url'])) > 0)
389
+ {
390
+ $redirect_to = trim ($settings['plugin_shortcode_' . $opt_key . '_redirect_url']);
391
+ }
392
+ break;
393
+ }
394
  }
395
+ break;
396
  }
397
 
398
  //Check if url set
399
+ if (!isset ($redirect_to) OR strlen (trim ($redirect_to)) == 0)
400
  {
401
+ $redirect_to = home_url ();
402
  }
403
 
404
  //Use safe redirection
418
  }
419
  }
420
 
 
421
  /**
422
  * Send an API request by using the given handler
423
  */
439
  /**
440
  * Check if fsockopen can be used
441
  */
442
+ function oa_social_login_check_fsockopen ($secure = true)
443
  {
444
+ $result = oa_social_login_fsockopen_request (($secure ? 'https' : 'http') .'://www.oneall.com/ping.html');
445
  if (is_object ($result) AND property_exists ($result, 'http_code') AND $result->http_code == 200)
446
  {
447
  if (property_exists ($result, 'http_data'))
459
  /**
460
  * Check if CURL can be used
461
  */
462
+ function oa_social_login_check_curl ($secure = true)
463
  {
464
  if (in_array ('curl', get_loaded_extensions ()) AND function_exists('curl_exec'))
465
  {
466
+ $result = oa_social_login_curl_request (($secure ? 'https' : 'http') .'://www.oneall.com/ping.html');
467
  if (is_object ($result) AND property_exists ($result, 'http_code') AND $result->http_code == 200)
468
  {
469
  if (property_exists ($result, 'http_data'))
482
  /**
483
  * Sends a CURL request
484
  */
485
+ function oa_social_login_curl_request ($url, $options = array (), $timeout = 10)
486
  {
487
  //Store the result
488
  $result = new stdClass ();
496
  curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1);
497
  curl_setopt ($curl, CURLOPT_SSL_VERIFYPEER, 0);
498
  curl_setopt ($curl, CURLOPT_SSL_VERIFYHOST, 0);
499
+ curl_setopt ($curl, CURLOPT_USERAGENT, 'SocialLogin '.OA_SOCIAL_LOGIN_VERSION.'WP (+http://www.oneall.com/)');
500
 
501
  // BASIC AUTH?
502
  if (isset ($options ['api_key']) AND isset ($options ['api_secret']))
582
  //Create HTTP request
583
  $defaults = array (
584
  'Host' => "Host: $host",
585
+ 'User-Agent' => 'User-Agent: SocialLogin '.OA_SOCIAL_LOGIN_VERSION.'WP (+http://www.oneall.com/)'
586
  );
587
 
588
  // BASIC AUTH?
622
  return $result;
623
  }
624
 
 
includes/settings.php CHANGED
@@ -37,6 +37,9 @@ $oa_social_login_providers = array (
37
  'paypal' => array (
38
  'name' => 'PayPal'
39
  ),
 
 
 
40
  'livejournal' => array (
41
  'name' => 'LiveJournal'
42
  ),
37
  'paypal' => array (
38
  'name' => 'PayPal'
39
  ),
40
+ 'foursquare' => array (
41
+ 'name' => 'Foursquare'
42
+ ),
43
  'livejournal' => array (
44
  'name' => 'LiveJournal'
45
  ),
includes/toolbox.php CHANGED
@@ -68,6 +68,57 @@ function oa_social_login_https_on()
68
  return false;
69
  }
70
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
 
72
  /**
73
  * Escape an attribute
68
  return false;
69
  }
70
 
71
+ /**
72
+ * Send a notification to the administrator
73
+ */
74
+ function oa_social_login_user_notification ($user_id, $user_identity_provider)
75
+ {
76
+ //Get the user details
77
+ $user = new WP_User($user_id);
78
+ $user_login = stripslashes($user->user_login);
79
+
80
+ // The blogname option is escaped with esc_html on the way into the database
81
+ // in sanitize_option we want to reverse this for the plain text arena of emails.
82
+ $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
83
+
84
+ $message = sprintf(__('New user registration on your site %s:'), $blogname) . "\r\n\r\n";
85
+ $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n";
86
+ $message .= sprintf(__('Social Network: %s'), $user_identity_provider) . "\r\n";
87
+
88
+ @wp_mail(get_option('admin_email'), '[Social Login] '.sprintf(__('[%s] New User Registration'), $blogname), $message);
89
+ }
90
+
91
+
92
+ /**
93
+ * Return the current url
94
+ */
95
+ function oa_social_login_get_current_url ()
96
+ {
97
+ //Get request URI - Should work on Apache + IIS
98
+ $request_uri = ((!isset ($_SERVER['REQUEST_URI'])) ? $_SERVER['PHP_SELF'] : $_SERVER['REQUEST_URI']);
99
+ $request_port = ((!empty ($_SERVER['SERVER_PORT']) AND $_SERVER['SERVER_PORT'] <> '80') ? (":" . $_SERVER['SERVER_PORT']) : '');
100
+ $request_protocol = (oa_social_login_https_on () ? 'https' : 'http') . "://";
101
+ $redirect_to = $request_protocol . $_SERVER['SERVER_NAME'] . $request_port . $request_uri;
102
+
103
+ //Remove the oa_social_login_source argument
104
+ if (strpos ($redirect_to, 'oa_social_login_source') !== false)
105
+ {
106
+ //Break up url
107
+ list($url_part, $query_part) = array_pad (explode ('?', $redirect_to), 2, '');
108
+ parse_str ($query_part, $query_vars);
109
+
110
+ //Remove oa_social_login_source argument
111
+ if (is_array ($query_vars) AND isset ($query_vars['oa_social_login_source']))
112
+ {
113
+ unset ($query_vars['oa_social_login_source']);
114
+ }
115
+
116
+ //Build new url
117
+ $redirect_to = $url_part . ((is_array ($query_vars) AND count ($query_vars) > 0) ? ('?' . http_build_query ($query_vars)) : '');
118
+ }
119
+
120
+ return $redirect_to;
121
+ }
122
 
123
  /**
124
  * Escape an attribute
includes/user_interface.php CHANGED
@@ -180,7 +180,6 @@ function oa_social_login_filter_comment_form_defaults($default_fields)
180
  add_filter('comment_form_defaults', 'oa_social_login_filter_comment_form_defaults');
181
 
182
 
183
-
184
  /**
185
  * Display the provider grid for comments
186
  */
@@ -201,6 +200,9 @@ function oa_social_login_render_login_form_comments ()
201
  }
202
  add_action ('comment_form_top', 'oa_social_login_render_login_form_comments');
203
 
 
 
 
204
 
205
  /**
206
  * Display the provider grid for registration
@@ -239,6 +241,10 @@ function oa_social_login_render_login_form_login ()
239
  }
240
  add_action ('login_form', 'oa_social_login_render_login_form_login');
241
 
 
 
 
 
242
 
243
  /**
244
  * Display a custom grid for login
@@ -264,6 +270,22 @@ function oa_social_login_filter_login_form_custom ($value = 'custom')
264
  add_filter ('oa_social_login_custom', 'oa_social_login_filter_login_form_custom');
265
 
266
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
267
  /**
268
  * Display the provider grid
269
  */
@@ -315,6 +337,9 @@ function oa_social_login_render_login_form ($source, $args = array())
315
 
316
  //Buttons size
317
  $css_theme_uri = ((array_key_exists ('widget_use_small_buttons', $widget_settings) AND !empty ($widget_settings ['widget_use_small_buttons'])) ? $css_theme_uri_small : $css_theme_uri_default);
 
 
 
318
  }
319
  //Other places
320
  else
@@ -324,8 +349,12 @@ function oa_social_login_render_login_form ($source, $args = array())
324
 
325
  //Buttons size
326
  $css_theme_uri = (!empty ($settings ['plugin_use_small_buttons']) ? $css_theme_uri_small : $css_theme_uri_default);
 
 
 
327
  }
328
 
 
329
  //No providers selected
330
  if (count ($providers) == 0)
331
  {
180
  add_filter('comment_form_defaults', 'oa_social_login_filter_comment_form_defaults');
181
 
182
 
 
183
  /**
184
  * Display the provider grid for comments
185
  */
200
  }
201
  add_action ('comment_form_top', 'oa_social_login_render_login_form_comments');
202
 
203
+ //Hook for the Thesis Theme
204
+ add_action ('thesis_hook_comment_form_top', 'oa_social_login_render_login_form_comments');
205
+
206
 
207
  /**
208
  * Display the provider grid for registration
241
  }
242
  add_action ('login_form', 'oa_social_login_render_login_form_login');
243
 
244
+ //WordPress Profile Builder
245
+ add_action ('wppb_before_login', 'oa_social_login_render_login_form_login');
246
+ //add_action ('wppb_after_login', 'oa_social_login_render_login_form_comments');
247
+
248
 
249
  /**
250
  * Display a custom grid for login
270
  add_filter ('oa_social_login_custom', 'oa_social_login_filter_login_form_custom');
271
 
272
 
273
+ /**
274
+ * Example for using your own CSS
275
+ */
276
+
277
+ /*
278
+
279
+ function oa_social_login_set_custom_css() {
280
+ return 'http://public.oneallcdn.com/css/api/socialize/themes/buildin/connect/large-v1.css';
281
+ }
282
+
283
+ add_filter('oa_social_login_default_css', 'oa_social_login_set_custom_css');
284
+ add_filter('oa_social_login_widget_css', 'oa_social_login_set_custom_css');
285
+
286
+ */
287
+
288
+
289
  /**
290
  * Display the provider grid
291
  */
337
 
338
  //Buttons size
339
  $css_theme_uri = ((array_key_exists ('widget_use_small_buttons', $widget_settings) AND !empty ($widget_settings ['widget_use_small_buttons'])) ? $css_theme_uri_small : $css_theme_uri_default);
340
+
341
+ //Custom CSS
342
+ $css_theme_uri = apply_filters('oa_social_login_widget_css', $css_theme_uri);
343
  }
344
  //Other places
345
  else
349
 
350
  //Buttons size
351
  $css_theme_uri = (!empty ($settings ['plugin_use_small_buttons']) ? $css_theme_uri_small : $css_theme_uri_default);
352
+
353
+ //Custom CSS
354
+ $css_theme_uri = apply_filters('oa_social_login_default_css', $css_theme_uri);
355
  }
356
 
357
+
358
  //No providers selected
359
  if (count ($providers) == 0)
360
  {
languages/oa_social_login-de_DE.mo CHANGED
Binary file
languages/oa_social_login-de_DE.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Social Login\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-05-24 16:02+0100\n"
6
- "PO-Revision-Date: 2012-05-24 16:04+0100\n"
7
  "Last-Translator: Claude Schlesser <cschlesser@oneall.com>\n"
8
  "Language-Team: \n"
9
  "Language: \n"
@@ -23,73 +23,10 @@ msgstr "Dieses Plugin benötigt Wordpress %s oder höher. Bitte aktualisieren Si
23
 
24
  #: oa-social-login.php:46
25
  #: includes/admin.php:58
26
- #: includes/admin.php:700
27
  msgid "Settings"
28
  msgstr "Einstellungen"
29
 
30
- #: includes/user_interface.php:332
31
- msgid "Please enable at least one social network!"
32
- msgstr "Bitte aktivieren Sie mindestens ein soziales Netzwerk!"
33
-
34
- #: includes/user_interface.php:403
35
- msgid "Please enter your email address"
36
- msgstr "Bitte geben Sie Ihre E-Mail-Adresse ein"
37
-
38
- #: includes/user_interface.php:409
39
- msgid "This email is not valid"
40
- msgstr "Diese E-Mail-Adresse ist ungültig"
41
-
42
- #: includes/user_interface.php:414
43
- msgid "This email is already used by another account"
44
- msgstr "Diese E-Mail-Adresse wird bereits verwendet"
45
-
46
- #: includes/user_interface.php:435
47
- #: includes/admin.php:862
48
- #, php-format
49
- msgid "<strong>We unfortunately could not retrieve your email address from %s.</strong> Please enter your email address in the form below in order to continue."
50
- msgstr "<strong>Wir konnten Ihre E-Mail-Adresse leider nicht über Ihr %s Konto ermitteln.</strong> Bitte geben Sie Ihre Email-Adresse nachfolgend an."
51
-
52
- #: includes/user_interface.php:447
53
- #, php-format
54
- msgid "You have successfully connected with %s!"
55
- msgstr "Sie haben Sich erfolgreicht mit %s angemeldet!"
56
-
57
- #: includes/user_interface.php:459
58
- msgid "Your email address"
59
- msgstr "Ihre E-Mail-Adresse"
60
-
61
- #: includes/user_interface.php:471
62
- msgid "Confirm my email address"
63
- msgstr "Bitte bestätigen Sie Ihre E-Mail-Adresse"
64
-
65
- #: includes/widget.php:14
66
- msgid "Allow your visitors to login and register with social networks like Twitter, Facebook, LinkedIn, Hyves, Google and Yahoo."
67
- msgstr "Erlauben Sie Ihren Nutzern, sich mit sozialen Netwerken wie z.B. Twitter, Facebook, LinkedIn, Hyves, Google und Yahoo anzumelden, und Kommentare zu schreiben"
68
-
69
- #: includes/widget.php:62
70
- msgid "Connect with"
71
- msgstr "Einloggen mit"
72
-
73
- #: includes/widget.php:77
74
- msgid "Title"
75
- msgstr "Titel"
76
-
77
- #: includes/widget.php:81
78
- msgid "Insert text/html to add before the widget"
79
- msgstr "Text/Html vor dem Widget einfügen"
80
-
81
- #: includes/widget.php:85
82
- msgid "Insert text/html to add after the widget"
83
- msgstr "Text/Html nach dem Widget einfügen"
84
-
85
- #: includes/widget.php:90
86
- msgid "Tick to hide widget for logged-in users"
87
- msgstr "Widget verstecken bei eingeloggten Nutzern"
88
-
89
- #: includes/widget.php:94
90
- msgid "Tick to use small buttons"
91
- msgstr "Kleine Icons verwenden"
92
-
93
  #: includes/admin.php:14
94
  msgid "Registration"
95
  msgstr "Registriert mit"
@@ -100,7 +37,7 @@ msgstr "Anmeldeformular"
100
 
101
  #: includes/admin.php:54
102
  #: includes/admin.php:65
103
- #: includes/admin.php:500
104
  msgid "Setup"
105
  msgstr "Einrichten"
106
 
@@ -113,391 +50,559 @@ msgstr "Danke, dass Sie Social Login installiert haben!"
113
  msgid "Please go to the <strong><a href=\"%s\">Social Login\\Setup</a></strong> page to setup the plugin."
114
  msgstr "Bitte rufen Sie die Seite <strong><a href=\"%s\">Einstellungen\\Social Login</a></strong> auf, um das Plugin zu konfigurieren."
115
 
116
- #: includes/admin.php:275
117
- msgid "Contacting API - please wait ..."
118
- msgstr "Teste Einstellungen - bitte warten ..."
119
 
120
- #: includes/admin.php:276
121
  msgid "The settings are correct - do not forget to save your changes!"
122
  msgstr "Die Einstellungen sind korrekt! Vergessen Sie nicht abzuspeichern!"
123
 
124
- #: includes/admin.php:277
125
  msgid "Please fill out each of the fields above."
126
  msgstr "Bitte füllen Sie alle Felder aus"
127
 
128
- #: includes/admin.php:278
129
  msgid "The subdomain does not exist. Have you filled it out correctly?"
130
  msgstr "Subdomain wurde nicht gefunden. Haben Sie sie richtig ausgefüllt?"
131
 
132
- #: includes/admin.php:279
133
  msgid "The subdomain has a wrong syntax!"
134
  msgstr "Die Subdomain ist ungültig"
135
 
136
- #: includes/admin.php:280
137
  msgid "Could not contact API. Are outbound requests on port 443 allowed?"
138
  msgstr "Keine Verbindung zur API. Eventuell blockiert Ihre Firewall Anfragen auf Port 443."
139
 
140
- #: includes/admin.php:281
141
  msgid "The API subdomain is correct, but one or both keys are invalid"
142
  msgstr "Die API-Subdomain ist korrekt, aber die Schlüssel stimmen nicht."
143
 
144
- #: includes/admin.php:282
145
  msgid "Connection handler does not work, try using the Autodetection"
146
  msgstr "Verbindungsfehler! Bitte nutzen Sie die automatische Erkennung"
147
 
148
- #: includes/admin.php:283
149
- msgid "Autodetected PHP CURL - do not forget to save your changes!"
150
- msgstr "PHP CURL gefunden! Vergessen Sie nicht abzuspeichern!"
151
 
152
- #: includes/admin.php:284
153
- msgid "Autodetected PHP FSOCKOPEN - do not forget to save your changes!"
154
- msgstr "PHP FSOCKOPEN gefunden! Vergessen Sie nicht abzuspeichern!"
155
 
156
- #: includes/admin.php:285
 
 
 
 
 
 
 
 
157
  #, php-format
158
  msgid "Autodetection Error - our <a href=\"%s\" target=\"_blank\">documentation</a> helps you fix this issue."
159
  msgstr "Verbindungsfehler - in unserer <a href=\"%s\" target=\"_blank\">Dokumentation</a> finden Sie die Lösung."
160
 
161
- #: includes/admin.php:507
162
  msgid "Allow your visitors to comment, login and register with social networks like Twitter, Facebook, LinkedIn, Hyves, VKontakte, Google or Yahoo."
163
  msgstr "Erlauben Sie Ihren Besuchern, sich mit sozialen Netzwerk wie z.B. Twitter, Facebook, LinkedIn, Hyves, VKontakte, Google oder Yahoo anzumelden, und Kommentare zu hinterlassen."
164
 
165
- #: includes/admin.php:508
166
  msgid "Draw a larger audience and increase user engagement in a few simple steps."
167
  msgstr "Steigern Sie die Beteilung Ihrer Nutzer auf einfachste Art und Weise."
168
 
169
- #: includes/admin.php:512
170
  msgid "Get Started!"
171
  msgstr "Los gehts!"
172
 
173
- #: includes/admin.php:515
174
  #, php-format
175
  msgid "To be able to use this plugin you first of all need to create a free account at %s and setup a Site."
176
  msgstr "Um dieses Plugin nutzen zu können, müssen Sie sich zunächst kostenlos ein Konto bei %s anmelden."
177
 
178
- #: includes/admin.php:516
179
  msgid "After having created your account and setup your Site, please enter the Site settings in the form below."
180
  msgstr "Nachdem Sie Ihr Konto angemeldet haben, müssen Sie die API-Daten in nachfolgendes Formular eintragen."
181
 
182
- #: includes/admin.php:517
183
  msgid "Don't worry the setup only takes a couple of minutes! Let's get started!"
184
  msgstr "Keine Sorge! Die Einrichtung dauert nur wenige Minuten."
185
 
186
- #: includes/admin.php:520
187
  msgid "Click here to setup your free account"
188
  msgstr "Kostenloses Konto anmelden"
189
 
190
- #: includes/admin.php:523
191
  #, php-format
192
  msgid "You are in good company! This plugin is used on more than %s websites!"
193
  msgstr "Mehr als %s Webseiten nutzen dieses Plugin. Seien Sie dabei!"
194
 
195
- #: includes/admin.php:533
196
  msgid "Your API Account is setup correctly"
197
  msgstr "Die API-Daten sind korrekt"
198
 
199
- #: includes/admin.php:536
200
  msgid "Login to your account to manage your providers and access your Social Insights."
201
  msgstr "Loggen Sie sich in Ihr Konto ein, um Einstellungen vorzunehmen und Statistiken einzusehen."
202
 
203
- #: includes/admin.php:537
204
  msgid "Determine which social networks are popular amongst your users and tailor your registration experience to increase your users' engagement."
205
  msgstr "Finden Sie heraus, welche sozialen Netzwerke unter Ihren Besuchern beliebt sind, und steigern Sie die Beteilung Ihrer Besucher."
206
 
207
- #: includes/admin.php:540
208
  msgid "Click here to login to your account"
209
  msgstr "Klicken Sie hier, um sich in Ihr Konto einloggen"
210
 
211
- #: includes/admin.php:548
212
  msgid "Help, Updates &amp; Documentation"
213
  msgstr "Hilfe, Updates &amp; Dokumentation"
214
 
215
- #: includes/admin.php:551
216
  #, php-format
217
  msgid "<a target=\"_blank\" href=\"%s\">Follow us on Twitter</a> to stay informed about updates"
218
  msgstr "<a target=\"_blank\" href=\"%s\">Folgen Sie uns auf Twitter</a>, um auf dem Laufenden zu bleiben"
219
 
220
- #: includes/admin.php:552
221
  #, php-format
222
  msgid "<a target=\"_blank\" href=\"%s\">Read the online documentation</a> for more information about this plugin"
223
  msgstr "<a target=\"_blank\" href=\"%s\">Lesen Sie unsere Dokumentation</a> für zusätzliche Information"
224
 
225
- #: includes/admin.php:553
226
  #, php-format
227
  msgid "<a target=\"_blank\" href=\"%s\">Contact us</a> if you have feedback or need assistance"
228
  msgstr "<a target=\"_blank\" href=\"%s\">Schreiben Sie uns</a>, falls Sie Hilfe benötigen"
229
 
230
- #: includes/admin.php:563
231
- #: includes/admin.php:722
 
 
 
 
 
232
  msgid "Your modifications have been saved successfully!"
233
  msgstr "Ihre Einstellungen wurden erfolgreich gespeichert!"
234
 
235
- #: includes/admin.php:577
236
- #: includes/admin.php:585
237
  msgid "API Connection Handler"
238
  msgstr "API Kommunikation"
239
 
240
- #: includes/admin.php:589
241
  msgid "Use PHP CURL to communicate with the API"
242
  msgstr "PHP CURL verwenden"
243
 
244
- #: includes/admin.php:589
245
- #: includes/admin.php:752
246
- #: includes/admin.php:763
247
- #: includes/admin.php:782
248
- #: includes/admin.php:795
249
- #: includes/admin.php:808
250
- #: includes/admin.php:827
251
- #: includes/admin.php:839
252
  #: includes/admin.php:860
253
  #: includes/admin.php:874
254
- #: includes/admin.php:886
255
- #: includes/admin.php:899
256
- #: includes/admin.php:921
 
 
 
 
 
 
 
257
  msgid "Default"
258
  msgstr "Standard"
259
 
260
- #: includes/admin.php:590
261
  msgid "Using CURL is recommended but it might be disabled on some servers."
262
  msgstr "Empfohlene Einstellung, auf manchen Serven aber deaktiviert."
263
 
264
- #: includes/admin.php:596
265
  msgid "Use PHP FSOCKOPEN to communicate with the API"
266
  msgstr "PHP FSOCKOPEN verwenden"
267
 
268
- #: includes/admin.php:597
269
  msgid "Try using FSOCKOPEN if you encounter any problems with CURL."
270
  msgstr "Verwenden Sie FSOCKEN wenn Probleme mit CURL auftreten sollten."
271
 
272
- #: includes/admin.php:602
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
273
  msgid "Autodetect API Connection"
274
  msgstr "Automatisch erkennen"
275
 
276
- #: includes/admin.php:612
277
  msgid "API Settings"
278
  msgstr "API Einstellungen"
279
 
280
- #: includes/admin.php:615
281
  msgid "Click here to create and view your API Credentials"
282
  msgstr "Klicken Sie hier, um Ihre API-Daten einzusehen"
283
 
284
- #: includes/admin.php:621
285
  msgid "API Subdomain"
286
  msgstr "API Subdomain"
287
 
288
- #: includes/admin.php:629
289
  msgid "API Public Key"
290
  msgstr "API Public Key"
291
 
292
- #: includes/admin.php:637
293
  msgid "API Private Key"
294
  msgstr "API Private Key"
295
 
296
- #: includes/admin.php:645
297
  msgid "Verify API Settings"
298
  msgstr "API-Einstellungen überprüfen"
299
 
300
- #: includes/admin.php:655
301
  msgid "Enable the social networks/identity providers of your choice"
302
  msgstr "Wählen Sie die sozialen Netzwerke aus:"
303
 
304
- #: includes/admin.php:671
305
  #, php-format
306
  msgid "To enable cyrillic usernames, you might need <a target=\"_blank\" href=\"%s\">this plugin</a>"
307
  msgstr "Um kyrillische Zeichen zu verwenden, brauchen Sie <a target=\"_blank\" href=\"%s\">dieses Plugin</a>"
308
 
309
- #: includes/admin.php:682
310
- #: includes/admin.php:928
311
  msgid "Save Changes"
312
  msgstr "Einstellungen speichern"
313
 
314
- #: includes/admin.php:709
315
  msgid "Logout to see the plugin in action!"
316
  msgstr "Sie müssen ausloggen, um das Plugin testen zu können."
317
 
318
- #: includes/admin.php:713
319
  msgid "Social Login is a plugin that allows your users to comment, login and register with their existing Social Network accounts. If a user is already logged in, the plugin will not be displayed. There is no need to give the user the possibility to connect with a social network if he is already connected."
320
  msgstr "Social Login erlaubt es Ihren Benutzern, sich mit dem Konto eines sozialen Netzwerks anzumelden. Bei Benutzern die bereits eingeloggt sind wird das Plugin nicht angezeigt, da der Benutzer bereits angemeldet ist, und keine weitere Anmeldenmöglichkeit benötigt. "
321
 
322
- #: includes/admin.php:714
323
  msgid "You therefore have to logout to see the plugin in action."
324
  msgstr "Sie müssen Sich aus diesem Grund ausloggen, um das Plugin testen zu können."
325
 
326
- #: includes/admin.php:730
327
- msgid "Basic Settings"
328
- msgstr "Grundeinstellungen"
329
 
330
- #: includes/admin.php:735
331
- msgid "Enter the description to be displayed above the social network login buttons (leave empty for none):"
332
- msgstr "Welcher Text soll über den Icons der sozialen Netzwerk angezeigt werden (ggf. leer lassen) ?"
333
 
334
- #: includes/admin.php:740
335
  msgid "Connect with:"
336
  msgstr "Einloggen mit:"
337
 
338
- #: includes/admin.php:745
339
- msgid "If the user's social network profile has an avatar thumbnail, should we show it as default avatar for the user?"
340
- msgstr "Wollen Sie die Nutzer-Avatare der sozialen Netwerke gegebenenfalls verwenden?"
341
-
342
- #: includes/admin.php:751
343
- msgid "Yes, show user avatars from social networks if available"
344
- msgstr "Ja, zeige den sozialen Avatar des Benutzer in den Kommentaren dieses Benutzers an"
345
-
346
- #: includes/admin.php:752
347
- msgid "No, display the default avatars"
348
- msgstr "Nein, zeige die Standard-Avatare"
349
-
350
- #: includes/admin.php:757
351
  msgid "Do you want to use the default or the small social network buttons?"
352
  msgstr "Wollen Sie die standard -oder kleinere Icons für soziale Netzwerke verwenden?"
353
 
354
- #: includes/admin.php:763
355
  #, php-format
356
  msgid "Use the default social network buttons (%s)"
357
  msgstr "Standard-Icons verwenden (%s)"
358
 
359
- #: includes/admin.php:764
360
  #, php-format
361
  msgid "Use the small social network buttons (%s)"
362
  msgstr "Kleine Icons verwenden (%s)"
363
 
364
- #: includes/admin.php:771
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
365
  msgid "Comment Settings"
366
  msgstr "Einstellungen: Kommentare"
367
 
368
- #: includes/admin.php:776
369
  msgid "Show the Social Login buttons in the comment area?"
370
  msgstr "Das Plugin über dem Kommentare-Formular anzeigen?"
371
 
372
- #: includes/admin.php:782
373
- #: includes/admin.php:795
374
  msgid "Yes, show the Social Login buttons"
375
  msgstr "Ja, zeige das Plugin an"
376
 
377
- #: includes/admin.php:783
378
- #: includes/admin.php:796
379
  msgid "No, do not show the Social Login buttons"
380
  msgstr "Nein, Plugin nicht anzeigen"
381
 
382
- #: includes/admin.php:788
383
  msgid "Show the Social Login buttons in the comment area if comments are disabled for guests?"
384
  msgstr "Login mit einem sozialen Netzwerk anbieten falls Kommentare für Gäste deaktiviert sind?"
385
 
386
- #: includes/admin.php:794
387
  msgid "The buttons will be displayed below the \"You must be logged in to leave a comment\" notice."
388
  msgstr "Die Icons werden unter \"Du musst angemeldet sein, um einen Kommentar abzugeben\" angezeigt."
389
 
390
- #: includes/admin.php:801
391
  msgid "Automatically approve comments left by users that connected by using Social Login?"
392
  msgstr "Kommentare automatisch freischalten, falls dessen Autor sich mit SocialLogin eingeloggt hat?"
393
 
394
- #: includes/admin.php:807
395
  msgid "Yes, automatically approve comments made by users that connected with Social Login"
396
  msgstr "Ja, Kommentare automatisch freischalten"
397
 
398
- #: includes/admin.php:808
399
  msgid "No, do not automatically approve"
400
  msgstr "Nein, Kommentare nicht automatisch freischalten"
401
 
402
- #: includes/admin.php:816
403
- msgid "Login Settings"
404
- msgstr "Einstellungen: Einloggen"
405
 
406
- #: includes/admin.php:821
407
- msgid "Do you want to display the social network login buttons below the login form of your blog?"
408
  msgstr "Das Plugin auf der Login-Seite Ihres Blogs anzeigen?"
409
 
410
- #: includes/admin.php:827
411
  msgid "Yes, display the social network buttons below the login form"
412
  msgstr "Ja, die Icons der sozialen Netzwerke auf der Login-Seite anzeigen"
413
 
414
- #: includes/admin.php:828
415
  msgid "No, disable social network buttons in the login form"
416
  msgstr "Nein, keine Icons auf der Login-Seite anzeigen"
417
 
418
- #: includes/admin.php:833
419
- msgid "Where should existing users be redirected to after having logged in with their social network account?"
420
- msgstr "Wohin sollen Nutzer weitergeleitet werden, nachdem Sie sich mit einem sozialen Netzwerk eingeloggt haben?"
421
 
422
- #: includes/admin.php:839
423
- #: includes/admin.php:898
 
 
424
  msgid "Redirect users to the homepage of my blog"
425
  msgstr "Weiterleitung zur Hauptseite meines Blogs"
426
 
427
- #: includes/admin.php:840
428
- #: includes/admin.php:899
 
 
429
  msgid "Redirect users to their account dashboard"
430
  msgstr "Weiterleitung zur Profilseite des Nutzers"
431
 
432
- #: includes/admin.php:841
433
- #: includes/admin.php:900
 
 
434
  msgid "Redirect users to the following url"
435
  msgstr "Weiterleitung zu dieser URL"
436
 
437
- #: includes/admin.php:849
438
- msgid "Registration Settings"
439
- msgstr "Einstellungen: Anmeldung"
440
 
441
- #: includes/admin.php:854
442
- msgid "Some social networks do not provide their user's email. Ask the user to enter it manually in this case?"
443
- msgstr "Müssen Benutzer Ihre Email-Adresse angeben, falls diese nicht über das soziale Netzwerk ermittelt werden kann?"
444
 
445
- #: includes/admin.php:860
446
- msgid "No, simplify the registration by automatically creating a placeholder email"
447
- msgstr "Nein, in diesem Fall eine Platzhalter-Email anlegen (vereinfach die Registrierung)"
448
 
449
- #: includes/admin.php:861
450
- msgid "Yes, require the user to enter this email address manually and display this message:"
451
- msgstr "Ja, Benutzer mit folgendem Text auffordern, seine Email-Adresse einzugeben:"
452
 
453
- #: includes/admin.php:863
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
454
  #, php-format
455
- msgid "HTML is allowed, the placeholder %s is replaced by the name of the social network used to connect."
456
- msgstr "HTML ist erlaubt, der Platzhalter %s wird durch den Namen des sozialen Netzwerks ersetzt."
457
 
458
- #: includes/admin.php:868
459
- msgid "If the email address of the social network profile is verified, should we try to link it to an existing account?"
460
- msgstr "Sollen soziale Profile mit überprüfter Email mit vorhandenen Blog-Nutzern verknüpft werden?"
461
 
462
- #: includes/admin.php:874
463
- msgid "Yes, try to link verified social network profiles to existing blog accounts"
464
- msgstr "Ja, verknüpfe soziale Profile gegebenenfalls mit vorhanden Nutzern"
465
 
466
- #: includes/admin.php:875
467
- msgid "No, disable account linking"
468
- msgstr "Nein, keine Verknüpfung"
469
 
470
- #: includes/admin.php:880
471
- msgid "Do you want to display the social network login buttons below the registration form of your blog?"
472
- msgstr "Das Plugin auf der Anmelden-Seite Ihres Blogs anzeigen?"
473
 
474
- #: includes/admin.php:886
475
- msgid "Yes, display the social network buttons below the registration form"
476
- msgstr "Ja, die Icons der sozialen Netzwerke auf der Anmelden-Seite anzeigen"
477
 
478
- #: includes/admin.php:887
479
- msgid "No, disable social network buttons in the registration form"
480
- msgstr "Nein, keine Icons auf der Anmelden-Seite anzeigen"
481
 
482
- #: includes/admin.php:892
483
- msgid "Where should new users be redirected to after having registered with their social network account?"
484
- msgstr "Wohin sollen Nutzer weitergeleitet werden, nachdem sie ein Konto mit einem sozialen Netzwerk angelegt haben?"
485
 
486
- #: includes/admin.php:909
487
- msgid "Administration Settings"
488
- msgstr "Einstellungen: Administrationsmenü"
489
 
490
- #: includes/admin.php:914
491
- msgid "Display the social networks used to connect in the user list of the administration area ?"
492
- msgstr "Sollen die verwendeten sozialen Netzwerke in der Benutzerliste angezeigt werden?"
493
 
494
- #: includes/admin.php:920
495
- msgid "Yes, add a new column to the user list and display the used social network"
496
- msgstr "Ja, eine weitere Spalte in der Benutzerliste anzeigen"
 
497
 
498
- #: includes/admin.php:921
499
- msgid "No, no not display the social network in the user list"
500
- msgstr "Nein, soziale Netzwerke nicht anzeigen"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
501
 
502
  #~ msgid "The API credentials are wrong"
503
  #~ msgstr "Die API-Nutzerdaten sind ungültig"
2
  msgstr ""
3
  "Project-Id-Version: Social Login\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-09-03 11:00+0100\n"
6
+ "PO-Revision-Date: 2012-09-03 11:00+0100\n"
7
  "Last-Translator: Claude Schlesser <cschlesser@oneall.com>\n"
8
  "Language-Team: \n"
9
  "Language: \n"
23
 
24
  #: oa-social-login.php:46
25
  #: includes/admin.php:58
26
+ #: includes/admin.php:765
27
  msgid "Settings"
28
  msgstr "Einstellungen"
29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  #: includes/admin.php:14
31
  msgid "Registration"
32
  msgstr "Registriert mit"
37
 
38
  #: includes/admin.php:54
39
  #: includes/admin.php:65
40
+ #: includes/admin.php:547
41
  msgid "Setup"
42
  msgstr "Einrichten"
43
 
50
  msgid "Please go to the <strong><a href=\"%s\">Social Login\\Setup</a></strong> page to setup the plugin."
51
  msgstr "Bitte rufen Sie die Seite <strong><a href=\"%s\">Einstellungen\\Social Login</a></strong> auf, um das Plugin zu konfigurieren."
52
 
53
+ #: includes/admin.php:285
54
+ msgid "Contacting API - please wait this may take a few minutes ..."
55
+ msgstr "Teste Einstellungen - Dies kann einige Minutern dauern ..."
56
 
57
+ #: includes/admin.php:286
58
  msgid "The settings are correct - do not forget to save your changes!"
59
  msgstr "Die Einstellungen sind korrekt! Vergessen Sie nicht abzuspeichern!"
60
 
61
+ #: includes/admin.php:287
62
  msgid "Please fill out each of the fields above."
63
  msgstr "Bitte füllen Sie alle Felder aus"
64
 
65
+ #: includes/admin.php:288
66
  msgid "The subdomain does not exist. Have you filled it out correctly?"
67
  msgstr "Subdomain wurde nicht gefunden. Haben Sie sie richtig ausgefüllt?"
68
 
69
+ #: includes/admin.php:289
70
  msgid "The subdomain has a wrong syntax!"
71
  msgstr "Die Subdomain ist ungültig"
72
 
73
+ #: includes/admin.php:290
74
  msgid "Could not contact API. Are outbound requests on port 443 allowed?"
75
  msgstr "Keine Verbindung zur API. Eventuell blockiert Ihre Firewall Anfragen auf Port 443."
76
 
77
+ #: includes/admin.php:291
78
  msgid "The API subdomain is correct, but one or both keys are invalid"
79
  msgstr "Die API-Subdomain ist korrekt, aber die Schlüssel stimmen nicht."
80
 
81
+ #: includes/admin.php:292
82
  msgid "Connection handler does not work, try using the Autodetection"
83
  msgstr "Verbindungsfehler! Bitte nutzen Sie die automatische Erkennung"
84
 
85
+ #: includes/admin.php:293
86
+ msgid "Detected CURL on Port 443 - do not forget to save your changes!"
87
+ msgstr "PHP CURL auf Port 443 gefunden! Vergessen Sie nicht abzuspeichern!"
88
 
89
+ #: includes/admin.php:294
90
+ msgid "Detected CURL on Port 80 - do not forget to save your changes!"
91
+ msgstr "PHP CURL auf Port 80 gefunden! Vergessen Sie nicht abzuspeichern!"
92
 
93
+ #: includes/admin.php:295
94
+ msgid "Detected FSOCKOPEN on Port 443 - do not forget to save your changes!"
95
+ msgstr "PHP FSOCKOPEN auf Port 443 gefunden! Vergessen Sie nicht abzuspeichern!"
96
+
97
+ #: includes/admin.php:296
98
+ msgid "Detected FSOCKOPEN on Port 80 - do not forget to save your changes!"
99
+ msgstr "PHP FSOCKOPEN auf Port 80 gefunden! Vergessen Sie nicht abzuspeichern!"
100
+
101
+ #: includes/admin.php:297
102
  #, php-format
103
  msgid "Autodetection Error - our <a href=\"%s\" target=\"_blank\">documentation</a> helps you fix this issue."
104
  msgstr "Verbindungsfehler - in unserer <a href=\"%s\" target=\"_blank\">Dokumentation</a> finden Sie die Lösung."
105
 
106
+ #: includes/admin.php:554
107
  msgid "Allow your visitors to comment, login and register with social networks like Twitter, Facebook, LinkedIn, Hyves, VKontakte, Google or Yahoo."
108
  msgstr "Erlauben Sie Ihren Besuchern, sich mit sozialen Netzwerk wie z.B. Twitter, Facebook, LinkedIn, Hyves, VKontakte, Google oder Yahoo anzumelden, und Kommentare zu hinterlassen."
109
 
110
+ #: includes/admin.php:555
111
  msgid "Draw a larger audience and increase user engagement in a few simple steps."
112
  msgstr "Steigern Sie die Beteilung Ihrer Nutzer auf einfachste Art und Weise."
113
 
114
+ #: includes/admin.php:559
115
  msgid "Get Started!"
116
  msgstr "Los gehts!"
117
 
118
+ #: includes/admin.php:562
119
  #, php-format
120
  msgid "To be able to use this plugin you first of all need to create a free account at %s and setup a Site."
121
  msgstr "Um dieses Plugin nutzen zu können, müssen Sie sich zunächst kostenlos ein Konto bei %s anmelden."
122
 
123
+ #: includes/admin.php:563
124
  msgid "After having created your account and setup your Site, please enter the Site settings in the form below."
125
  msgstr "Nachdem Sie Ihr Konto angemeldet haben, müssen Sie die API-Daten in nachfolgendes Formular eintragen."
126
 
127
+ #: includes/admin.php:564
128
  msgid "Don't worry the setup only takes a couple of minutes! Let's get started!"
129
  msgstr "Keine Sorge! Die Einrichtung dauert nur wenige Minuten."
130
 
131
+ #: includes/admin.php:567
132
  msgid "Click here to setup your free account"
133
  msgstr "Kostenloses Konto anmelden"
134
 
135
+ #: includes/admin.php:570
136
  #, php-format
137
  msgid "You are in good company! This plugin is used on more than %s websites!"
138
  msgstr "Mehr als %s Webseiten nutzen dieses Plugin. Seien Sie dabei!"
139
 
140
+ #: includes/admin.php:580
141
  msgid "Your API Account is setup correctly"
142
  msgstr "Die API-Daten sind korrekt"
143
 
144
+ #: includes/admin.php:583
145
  msgid "Login to your account to manage your providers and access your Social Insights."
146
  msgstr "Loggen Sie sich in Ihr Konto ein, um Einstellungen vorzunehmen und Statistiken einzusehen."
147
 
148
+ #: includes/admin.php:584
149
  msgid "Determine which social networks are popular amongst your users and tailor your registration experience to increase your users' engagement."
150
  msgstr "Finden Sie heraus, welche sozialen Netzwerke unter Ihren Besuchern beliebt sind, und steigern Sie die Beteilung Ihrer Besucher."
151
 
152
+ #: includes/admin.php:587
153
  msgid "Click here to login to your account"
154
  msgstr "Klicken Sie hier, um sich in Ihr Konto einloggen"
155
 
156
+ #: includes/admin.php:595
157
  msgid "Help, Updates &amp; Documentation"
158
  msgstr "Hilfe, Updates &amp; Dokumentation"
159
 
160
+ #: includes/admin.php:598
161
  #, php-format
162
  msgid "<a target=\"_blank\" href=\"%s\">Follow us on Twitter</a> to stay informed about updates"
163
  msgstr "<a target=\"_blank\" href=\"%s\">Folgen Sie uns auf Twitter</a>, um auf dem Laufenden zu bleiben"
164
 
165
+ #: includes/admin.php:599
166
  #, php-format
167
  msgid "<a target=\"_blank\" href=\"%s\">Read the online documentation</a> for more information about this plugin"
168
  msgstr "<a target=\"_blank\" href=\"%s\">Lesen Sie unsere Dokumentation</a> für zusätzliche Information"
169
 
170
+ #: includes/admin.php:600
171
  #, php-format
172
  msgid "<a target=\"_blank\" href=\"%s\">Contact us</a> if you have feedback or need assistance"
173
  msgstr "<a target=\"_blank\" href=\"%s\">Schreiben Sie uns</a>, falls Sie Hilfe benötigen"
174
 
175
+ #: includes/admin.php:601
176
+ #, php-format
177
+ msgid "We also have plugins for <a target=\"_blank\" href=\"%s\">Drupal and Joomla</a> amongst others"
178
+ msgstr "Wir bieten auch Module für <a target=\"_blank\" href=\"%s\">Drupal und Joomla</a> an"
179
+
180
+ #: includes/admin.php:610
181
+ #: includes/admin.php:788
182
  msgid "Your modifications have been saved successfully!"
183
  msgstr "Ihre Einstellungen wurden erfolgreich gespeichert!"
184
 
185
+ #: includes/admin.php:622
186
+ #: includes/admin.php:630
187
  msgid "API Connection Handler"
188
  msgstr "API Kommunikation"
189
 
190
+ #: includes/admin.php:634
191
  msgid "Use PHP CURL to communicate with the API"
192
  msgstr "PHP CURL verwenden"
193
 
194
+ #: includes/admin.php:634
195
+ #: includes/admin.php:654
196
+ #: includes/admin.php:817
197
+ #: includes/admin.php:830
198
+ #: includes/admin.php:841
 
 
 
199
  #: includes/admin.php:860
200
  #: includes/admin.php:874
201
+ #: includes/admin.php:887
202
+ #: includes/admin.php:905
203
+ #: includes/admin.php:918
204
+ #: includes/admin.php:931
205
+ #: includes/admin.php:950
206
+ #: includes/admin.php:962
207
+ #: includes/admin.php:983
208
+ #: includes/admin.php:996
209
+ #: includes/admin.php:1016
210
+ #: includes/admin.php:1031
211
  msgid "Default"
212
  msgstr "Standard"
213
 
214
+ #: includes/admin.php:635
215
  msgid "Using CURL is recommended but it might be disabled on some servers."
216
  msgstr "Empfohlene Einstellung, auf manchen Serven aber deaktiviert."
217
 
218
+ #: includes/admin.php:641
219
  msgid "Use PHP FSOCKOPEN to communicate with the API"
220
  msgstr "PHP FSOCKOPEN verwenden"
221
 
222
+ #: includes/admin.php:642
223
  msgid "Try using FSOCKOPEN if you encounter any problems with CURL."
224
  msgstr "Verwenden Sie FSOCKEN wenn Probleme mit CURL auftreten sollten."
225
 
226
+ #: includes/admin.php:650
227
+ msgid "API Connection Port"
228
+ msgstr "API Verbindungs Port"
229
+
230
+ #: includes/admin.php:654
231
+ msgid "Communication via HTTPS on port 443"
232
+ msgstr "Verbindung auf HTTPS Port 443"
233
+
234
+ #: includes/admin.php:655
235
+ msgid "Using port 443 is secure but you might need OpenSSL"
236
+ msgstr "Die Verbindung auf Port 443 ist sicherer benötigt aber ggfs. OpenSSL"
237
+
238
+ #: includes/admin.php:661
239
+ msgid "Communication via HTTP on port 80"
240
+ msgstr "Verbindung auf HTTP Port 80"
241
+
242
+ #: includes/admin.php:662
243
+ msgid "Using port 80 is a bit faster, doesn't need OpenSSL but is less secure"
244
+ msgstr "Die Verbindung auf Port 80 ist etwas schneller aber nicht ganz so sicher"
245
+
246
+ #: includes/admin.php:667
247
  msgid "Autodetect API Connection"
248
  msgstr "Automatisch erkennen"
249
 
250
+ #: includes/admin.php:677
251
  msgid "API Settings"
252
  msgstr "API Einstellungen"
253
 
254
+ #: includes/admin.php:680
255
  msgid "Click here to create and view your API Credentials"
256
  msgstr "Klicken Sie hier, um Ihre API-Daten einzusehen"
257
 
258
+ #: includes/admin.php:686
259
  msgid "API Subdomain"
260
  msgstr "API Subdomain"
261
 
262
+ #: includes/admin.php:694
263
  msgid "API Public Key"
264
  msgstr "API Public Key"
265
 
266
+ #: includes/admin.php:702
267
  msgid "API Private Key"
268
  msgstr "API Private Key"
269
 
270
+ #: includes/admin.php:710
271
  msgid "Verify API Settings"
272
  msgstr "API-Einstellungen überprüfen"
273
 
274
+ #: includes/admin.php:720
275
  msgid "Enable the social networks/identity providers of your choice"
276
  msgstr "Wählen Sie die sozialen Netzwerke aus:"
277
 
278
+ #: includes/admin.php:736
279
  #, php-format
280
  msgid "To enable cyrillic usernames, you might need <a target=\"_blank\" href=\"%s\">this plugin</a>"
281
  msgstr "Um kyrillische Zeichen zu verwenden, brauchen Sie <a target=\"_blank\" href=\"%s\">dieses Plugin</a>"
282
 
283
+ #: includes/admin.php:747
284
+ #: includes/admin.php:1041
285
  msgid "Save Changes"
286
  msgstr "Einstellungen speichern"
287
 
288
+ #: includes/admin.php:774
289
  msgid "Logout to see the plugin in action!"
290
  msgstr "Sie müssen ausloggen, um das Plugin testen zu können."
291
 
292
+ #: includes/admin.php:778
293
  msgid "Social Login is a plugin that allows your users to comment, login and register with their existing Social Network accounts. If a user is already logged in, the plugin will not be displayed. There is no need to give the user the possibility to connect with a social network if he is already connected."
294
  msgstr "Social Login erlaubt es Ihren Benutzern, sich mit dem Konto eines sozialen Netzwerks anzumelden. Bei Benutzern die bereits eingeloggt sind wird das Plugin nicht angezeigt, da der Benutzer bereits angemeldet ist, und keine weitere Anmeldenmöglichkeit benötigt. "
295
 
296
+ #: includes/admin.php:780
297
  msgid "You therefore have to logout to see the plugin in action."
298
  msgstr "Sie müssen Sich aus diesem Grund ausloggen, um das Plugin testen zu können."
299
 
300
+ #: includes/admin.php:796
301
+ msgid "General Settings"
302
+ msgstr "Allgemeine Einstellungen"
303
 
304
+ #: includes/admin.php:801
305
+ msgid "Enter the description to be displayed above the Social Login buttons (leave empty for none):"
306
+ msgstr "Welcher Text soll über den Icons der sozialen Netzwerke angezeigt werden (ggf. leer lassen) ?"
307
 
308
+ #: includes/admin.php:806
309
  msgid "Connect with:"
310
  msgstr "Einloggen mit:"
311
 
312
+ #: includes/admin.php:811
 
 
 
 
 
 
 
 
 
 
 
 
313
  msgid "Do you want to use the default or the small social network buttons?"
314
  msgstr "Wollen Sie die standard -oder kleinere Icons für soziale Netzwerke verwenden?"
315
 
316
+ #: includes/admin.php:817
317
  #, php-format
318
  msgid "Use the default social network buttons (%s)"
319
  msgstr "Standard-Icons verwenden (%s)"
320
 
321
+ #: includes/admin.php:818
322
  #, php-format
323
  msgid "Use the small social network buttons (%s)"
324
  msgstr "Kleine Icons verwenden (%s)"
325
 
326
+ #: includes/admin.php:823
327
+ msgid "Do you want to display the social networks used to connect in the user list of the administration area ?"
328
+ msgstr "Sollen die verwendeten sozialen Netzwerke in der Benutzerliste angezeigt werden?"
329
+
330
+ #: includes/admin.php:829
331
+ msgid "Yes, add a new column to the user list and display the social network that the user connected with"
332
+ msgstr "Ja, eine weitere Spalte in der Benutzerliste anzeigen"
333
+
334
+ #: includes/admin.php:830
335
+ msgid "No, no not display the social networks in the user list"
336
+ msgstr "Nein, soziale Netzwerke nicht anzeigen"
337
+
338
+ #: includes/admin.php:835
339
+ msgid "Do you want to receive an email when a new user registers with Social Login ?"
340
+ msgstr "Wollen Sie per Email benachrichtigt werden, fall ein Benutzer sich mit Social Login anmeldet?"
341
+
342
+ #: includes/admin.php:841
343
+ msgid "Yes, send me an email when a new user registers with Social Login"
344
+ msgstr "Ja, ich möchte eine Email erhalten wenn jemand sich micht Social Login anmeldet"
345
+
346
+ #: includes/admin.php:842
347
+ msgid "No, do not send me an email"
348
+ msgstr "Nein, keine Benachrichtigung per Email"
349
+
350
+ #: includes/admin.php:849
351
+ msgid "User Settings"
352
+ msgstr "Benutzer Einstellungen"
353
+
354
+ #: includes/admin.php:854
355
+ msgid "If the user's social network profile has no email address, should we ask the user to enter it manually?"
356
+ msgstr "Müssen Benutzer Ihre Email Address manuell eingeben falls sie nicht im Sozialen Profil vorhanden ist?"
357
+
358
+ #: includes/admin.php:860
359
+ msgid "No, simplify the registration by automatically creating a placeholder email"
360
+ msgstr "Nein, in diesem Fall eine Platzhalter-Email anlegen (vereinfach die Registrierung)"
361
+
362
+ #: includes/admin.php:861
363
+ msgid "Yes, require the user to enter his email address manually and display this message:"
364
+ msgstr "Ja, Benutzer mit folgendem Text auffordern, ihre Email-Adresse einzugeben:"
365
+
366
+ #: includes/admin.php:862
367
+ #: includes/user_interface.php:441
368
+ #, php-format
369
+ msgid "<strong>We unfortunately could not retrieve your email address from %s.</strong> Please enter your email address in the form below in order to continue."
370
+ msgstr "<strong>Wir konnten Ihre E-Mail-Adresse leider nicht über Ihr %s Konto ermitteln.</strong> Bitte geben Sie Ihre Email-Adresse nachfolgend an."
371
+
372
+ #: includes/admin.php:863
373
+ #, php-format
374
+ msgid "HTML is allowed, the placeholder %s is replaced by the name of the social network used to connect."
375
+ msgstr "HTML ist erlaubt, der Platzhalter %s wird durch den Namen des sozialen Netzwerks ersetzt."
376
+
377
+ #: includes/admin.php:868
378
+ msgid "If the user's social network profile has a verified email, should we try to link it to an existing account?"
379
+ msgstr "Sollen soziale Profile mit überprüfter Email mit vorhandenen Blog-Nutzern verknüpft werden?"
380
+
381
+ #: includes/admin.php:874
382
+ msgid "Yes, try to link verified social network profiles to existing blog accounts"
383
+ msgstr "Ja, verknüpfe soziale Profile gegebenenfalls mit vorhanden Nutzern"
384
+
385
+ #: includes/admin.php:875
386
+ msgid "No, disable account linking"
387
+ msgstr "Nein, keine Verknüpfung"
388
+
389
+ #: includes/admin.php:880
390
+ msgid "If the user's social network profile has an avatar, should we show it as the default avatar for the user?"
391
+ msgstr "Wollen Sie die Nutzer-Avatare der sozialen Netwerke gegebenenfalls verwenden?"
392
+
393
+ #: includes/admin.php:886
394
+ msgid "Yes, show user avatars from social networks if available"
395
+ msgstr "Ja, zeige den sozialen Avatar des Benutzer in den Kommentaren dieses Benutzers an"
396
+
397
+ #: includes/admin.php:887
398
+ msgid "No, display the default avatars"
399
+ msgstr "Nein, zeige die Standard-Avatare"
400
+
401
+ #: includes/admin.php:894
402
  msgid "Comment Settings"
403
  msgstr "Einstellungen: Kommentare"
404
 
405
+ #: includes/admin.php:899
406
  msgid "Show the Social Login buttons in the comment area?"
407
  msgstr "Das Plugin über dem Kommentare-Formular anzeigen?"
408
 
409
+ #: includes/admin.php:905
410
+ #: includes/admin.php:918
411
  msgid "Yes, show the Social Login buttons"
412
  msgstr "Ja, zeige das Plugin an"
413
 
414
+ #: includes/admin.php:906
415
+ #: includes/admin.php:919
416
  msgid "No, do not show the Social Login buttons"
417
  msgstr "Nein, Plugin nicht anzeigen"
418
 
419
+ #: includes/admin.php:911
420
  msgid "Show the Social Login buttons in the comment area if comments are disabled for guests?"
421
  msgstr "Login mit einem sozialen Netzwerk anbieten falls Kommentare für Gäste deaktiviert sind?"
422
 
423
+ #: includes/admin.php:917
424
  msgid "The buttons will be displayed below the \"You must be logged in to leave a comment\" notice."
425
  msgstr "Die Icons werden unter \"Du musst angemeldet sein, um einen Kommentar abzugeben\" angezeigt."
426
 
427
+ #: includes/admin.php:924
428
  msgid "Automatically approve comments left by users that connected by using Social Login?"
429
  msgstr "Kommentare automatisch freischalten, falls dessen Autor sich mit SocialLogin eingeloggt hat?"
430
 
431
+ #: includes/admin.php:930
432
  msgid "Yes, automatically approve comments made by users that connected with Social Login"
433
  msgstr "Ja, Kommentare automatisch freischalten"
434
 
435
+ #: includes/admin.php:931
436
  msgid "No, do not automatically approve"
437
  msgstr "Nein, Kommentare nicht automatisch freischalten"
438
 
439
+ #: includes/admin.php:939
440
+ msgid "Login Page Settings"
441
+ msgstr "Einstellungen: Login-Seite"
442
 
443
+ #: includes/admin.php:944
444
+ msgid "Do you want to display Social Login on the login form of your blog?"
445
  msgstr "Das Plugin auf der Login-Seite Ihres Blogs anzeigen?"
446
 
447
+ #: includes/admin.php:950
448
  msgid "Yes, display the social network buttons below the login form"
449
  msgstr "Ja, die Icons der sozialen Netzwerke auf der Login-Seite anzeigen"
450
 
451
+ #: includes/admin.php:951
452
  msgid "No, disable social network buttons in the login form"
453
  msgstr "Nein, keine Icons auf der Login-Seite anzeigen"
454
 
455
+ #: includes/admin.php:956
456
+ msgid "Where should users be redirected to after having logged in with Social Login on the login page?"
457
+ msgstr "Wohin sollen Nutzer weitergeleitet werden, nachdem Sie sich Social Login auf der Login-Seite eingeloggt haben?"
458
 
459
+ #: includes/admin.php:962
460
+ #: includes/admin.php:995
461
+ #: includes/admin.php:1017
462
+ #: includes/admin.php:1032
463
  msgid "Redirect users to the homepage of my blog"
464
  msgstr "Weiterleitung zur Hauptseite meines Blogs"
465
 
466
+ #: includes/admin.php:963
467
+ #: includes/admin.php:996
468
+ #: includes/admin.php:1018
469
+ #: includes/admin.php:1033
470
  msgid "Redirect users to their account dashboard"
471
  msgstr "Weiterleitung zur Profilseite des Nutzers"
472
 
473
+ #: includes/admin.php:964
474
+ #: includes/admin.php:997
475
+ #: includes/admin.php:1019
476
+ #: includes/admin.php:1034
477
  msgid "Redirect users to the following url"
478
  msgstr "Weiterleitung zu dieser URL"
479
 
480
+ #: includes/admin.php:972
481
+ msgid "Registration Page Settings"
482
+ msgstr "Einstellungen: Anmelden-Seite"
483
 
484
+ #: includes/admin.php:977
485
+ msgid "Do you want to display Social Login on the registration form of your blog?"
486
+ msgstr "Das Plugin auf der Anmelden-Seite Ihres Blogs anzeigen?"
487
 
488
+ #: includes/admin.php:983
489
+ msgid "Yes, display the social network buttons below the registration form"
490
+ msgstr "Ja, die Icons der sozialen Netzwerke auf der Anmelden-Seite anzeigen"
491
 
492
+ #: includes/admin.php:984
493
+ msgid "No, disable social network buttons in the registration form"
494
+ msgstr "Nein, keine Icons auf der Anmelden-Seite anzeigen"
495
 
496
+ #: includes/admin.php:989
497
+ msgid "Where should users be redirected to after having registered with Social Login on the registration page?"
498
+ msgstr "Wohin sollen Nutzer weitergeleitet werden, nachdem sie ein Konto mit einem sozialen Netzwerk angelegt haben?"
499
+
500
+ #: includes/admin.php:1005
501
+ msgid "Widget &amp; Shortcode Settings"
502
+ msgstr "Widget &amp; Shortcode Einstellungen"
503
+
504
+ #: includes/admin.php:1010
505
+ msgid "Redirect users to this page after they have logged in with Social Login embedded by Widget/Shortcode:"
506
+ msgstr "Benutzer zu dieser Seite weiterleiten nachdem sie im Social Login Widget/Shortcode eingloggt haben:"
507
+
508
+ #: includes/admin.php:1016
509
+ #: includes/admin.php:1031
510
+ msgid "Redirect users back to the current page"
511
+ msgstr "Weiterleitung zurück zur aktuellen Seite"
512
+
513
+ #: includes/admin.php:1025
514
+ msgid "Redirect users to this page after they have registered with Social Login embedded by Widget/Shortcode:"
515
+ msgstr "Benutzer zu dieser Seite weiterleiten nachdem sie über das Social Login Widget/Shortcode registriert haben:"
516
+
517
+ #: includes/user_interface.php:338
518
+ msgid "Please enable at least one social network!"
519
+ msgstr "Bitte aktivieren Sie mindestens ein soziales Netzwerk!"
520
+
521
+ #: includes/user_interface.php:409
522
+ msgid "Please enter your email address"
523
+ msgstr "Bitte geben Sie Ihre E-Mail-Adresse ein"
524
+
525
+ #: includes/user_interface.php:415
526
+ msgid "This email is not valid"
527
+ msgstr "Diese E-Mail-Adresse ist ungültig"
528
+
529
+ #: includes/user_interface.php:420
530
+ msgid "This email is already used by another account"
531
+ msgstr "Diese E-Mail-Adresse wird bereits verwendet"
532
+
533
+ #: includes/user_interface.php:453
534
  #, php-format
535
+ msgid "You have successfully connected with %s!"
536
+ msgstr "Sie haben Sich erfolgreicht mit %s angemeldet!"
537
 
538
+ #: includes/user_interface.php:465
539
+ msgid "Your email address"
540
+ msgstr "Ihre E-Mail-Adresse"
541
 
542
+ #: includes/user_interface.php:477
543
+ msgid "Confirm my email address"
544
+ msgstr "Bitte bestätigen Sie Ihre E-Mail-Adresse"
545
 
546
+ #: includes/widget.php:14
547
+ msgid "Allow your visitors to login and register with social networks like Twitter, Facebook, LinkedIn, Hyves, Google and Yahoo."
548
+ msgstr "Erlauben Sie Ihren Nutzern, sich mit sozialen Netwerken wie z.B. Twitter, Facebook, LinkedIn, Hyves, Google und Yahoo anzumelden, und Kommentare zu schreiben"
549
 
550
+ #: includes/widget.php:62
551
+ msgid "Connect with"
552
+ msgstr "Einloggen mit"
553
 
554
+ #: includes/widget.php:77
555
+ msgid "Title"
556
+ msgstr "Titel"
557
 
558
+ #: includes/widget.php:81
559
+ msgid "Insert text/html to add before the widget"
560
+ msgstr "Text/Html vor dem Widget einfügen"
561
 
562
+ #: includes/widget.php:85
563
+ msgid "Insert text/html to add after the widget"
564
+ msgstr "Text/Html nach dem Widget einfügen"
565
 
566
+ #: includes/widget.php:90
567
+ msgid "Tick to hide widget for logged-in users"
568
+ msgstr "Widget verstecken bei eingeloggten Nutzern"
569
 
570
+ #: includes/widget.php:94
571
+ msgid "Tick to use small buttons"
572
+ msgstr "Kleine Icons verwenden"
573
 
574
+ #: includes/toolbox.php:84
575
+ #, php-format
576
+ msgid "New user registration on your site %s:"
577
+ msgstr "Neue Benutzeranmeldung auf Ihrer Seite %s:"
578
 
579
+ #: includes/toolbox.php:85
580
+ #, php-format
581
+ msgid "Username: %s"
582
+ msgstr "Benutzername: %s"
583
+
584
+ #: includes/toolbox.php:86
585
+ #, php-format
586
+ msgid "Social Network: %s"
587
+ msgstr "Soziales Netzwerk: %s"
588
+
589
+ #: includes/toolbox.php:88
590
+ #, php-format
591
+ msgid "[%s] New User Registration"
592
+ msgstr "[%s] Neue Benutzeranmeldung"
593
+
594
+ #~ msgid "Basic Settings"
595
+ #~ msgstr "Grundeinstellungen"
596
+
597
+ #~ msgid ""
598
+ #~ "Some social networks do not provide their user's email. Ask the user to "
599
+ #~ "enter it manually in this case?"
600
+ #~ msgstr ""
601
+ #~ "Müssen Benutzer Ihre Email-Adresse angeben, falls diese nicht über das "
602
+ #~ "soziale Netzwerk ermittelt werden kann?"
603
+
604
+ #~ msgid "Administration Settings"
605
+ #~ msgstr "Einstellungen: Administrationsmenü"
606
 
607
  #~ msgid "The API credentials are wrong"
608
  #~ msgstr "Die API-Nutzerdaten sind ungültig"
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: 3.2
7
  Author: Claude Schlesser
8
  Author URI: http://www.oneall.com/
9
  License: GPL2
@@ -11,7 +11,7 @@ License: GPL2
11
 
12
  define ('OA_SOCIAL_LOGIN_PLUGIN_URL', plugins_url () . '/' . basename (dirname (__FILE__)));
13
  define ('OA_SOCIAL_LOGIN_BASE_PATH', dirname (plugin_basename (__FILE__)));
14
- define ('OA_SOCIAL_LOGIN_VERSION', '3.2');
15
 
16
  /**
17
  * Check technical requirements before activating the plugin (Wordpress 3.0 or newer required)
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: 3.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
  define ('OA_SOCIAL_LOGIN_BASE_PATH', dirname (plugin_basename (__FILE__)));
14
+ define ('OA_SOCIAL_LOGIN_VERSION', '3.5');
15
 
16
  /**
17
  * Check technical requirements before activating the plugin (Wordpress 3.0 or newer required)
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: ClaudeSchlesser
3
  Tags: social login, social connect, facebook login, linkedin, livejournal, 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.4.1
6
- Stable tag: 3.2
7
 
8
  Allow your visitors to comment and login with social networks like Twitter, Facebook, Paypal, LinkedIn, LiveJournal, OpenID, VKontakte, Google, Yahoo
9
 
@@ -35,6 +35,7 @@ login and register with social networks like Twitter, Facebook, LinkedIn, Paypal
35
  <li>Paypal</li>
36
  <li>Yahoo</li>
37
  <li>Github.com</li>
 
38
  <li>Skyrock.com</li>
39
  <li>OpenID</li>
40
  <li>LiveJournal</li>
@@ -115,6 +116,16 @@ http://docs.oneall.com/plugins/guide/social-login-wordpress/
115
 
116
  == Changelog ==
117
 
 
 
 
 
 
 
 
 
 
 
118
  = 3.2 =
119
  * Identity Provider "Skyrock.com" added
120
  * Identity Provider "Github.com" added
3
  Tags: social login, social connect, facebook login, linkedin, livejournal, 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.4.1
6
+ Stable tag: 3.5
7
 
8
  Allow your visitors to comment and login with social networks like Twitter, Facebook, Paypal, LinkedIn, LiveJournal, OpenID, VKontakte, Google, Yahoo
9
 
35
  <li>Paypal</li>
36
  <li>Yahoo</li>
37
  <li>Github.com</li>
38
+ <li>Foursquare</li>
39
  <li>Skyrock.com</li>
40
  <li>OpenID</li>
41
  <li>LiveJournal</li>
116
 
117
  == Changelog ==
118
 
119
+ = 3.5 =
120
+ * Identity Provider "Foursquare.com" added
121
+ * Github 16x16px icon fixed
122
+ * Optionally get an email when a users registers with Social Login
123
+ * Redirection settings improved
124
+ * Hook for Thesis Theme added
125
+ * Hook for WordPress Profile Builder added
126
+ * Select to use Port 80 or 443
127
+ * Custom CSS filter added
128
+
129
  = 3.2 =
130
  * Identity Provider "Skyrock.com" added
131
  * Identity Provider "Github.com" added