Social Login - Version 4.3

Version Description

  • Social Network Avatars improved
  • Social Link shortcode/hook/action added
  • Administration: Tabs for Social Login added
  • Administration: Column Registration in the user list fixed
  • Redirection filters added
  • Settings security improved
  • Button to cancel email confirmation added
Download this release

Release Info

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

Code changes from version 4.0 to 4.3

assets/css/admin.css CHANGED
@@ -31,6 +31,11 @@
31
  margin-bottom: 35px;
32
  }
33
 
 
 
 
 
 
34
  #oa_social_login_box_help .oa_social_login_box_title {
35
  border-color: #E6DB55;
36
  }
@@ -132,8 +137,14 @@
132
  line-height: 35px;
133
  }
134
 
135
- .oa_social_login_table tr.row_provider td .oa_social_login_provider {
136
- margin: 0 10px 0 0;
 
 
 
 
 
 
137
  }
138
 
139
  .oa_social_login_provider {
@@ -144,98 +155,98 @@
144
  display: inline-block;
145
  }
146
 
147
- .oa_social_login_provider.oa_social_login_provider_aol {
148
  background-position: -2px -1px;
149
  }
150
 
151
- .oa_social_login_provider.oa_social_login_provider_blogger {
152
  background-position: -39px -1px;
153
  }
154
 
155
- .oa_social_login_provider.oa_social_login_provider_facebook {
156
  background-position: -76px -1px;
157
  }
158
 
159
- .oa_social_login_provider.oa_social_login_provider_foursquare {
160
  background-position: -113px -1px;
161
  }
162
 
163
- .oa_social_login_provider.oa_social_login_provider_google {
164
  background-position: -150px -1px;
165
  }
166
 
167
- .oa_social_login_provider.oa_social_login_provider_hyves {
168
  background-position: -187px -1px;
169
  }
170
 
171
- .oa_social_login_provider.oa_social_login_provider_linkedin {
172
  background-position: -224px -1px;
173
  }
174
 
175
- .oa_social_login_provider.oa_social_login_provider_windowslive {
176
  background-position: -261px -1px;
177
  }
178
 
179
- .oa_social_login_provider.oa_social_login_provider_livejournal {
180
  background-position: -298px -1px;
181
  }
182
 
183
- .oa_social_login_provider.oa_social_login_provider_myspace {
184
  background-position: -372px -1px;
185
  }
186
 
187
- .oa_social_login_provider.oa_social_login_provider_openid {
188
  background-position: -409px -1px;
189
  }
190
 
191
- .oa_social_login_provider.oa_social_login_provider_twitter {
192
  background-position: -520px -1px;
193
  }
194
 
195
- .oa_social_login_provider.oa_social_login_provider_vkontakte {
196
  background-position: -631px -1px;
197
  }
198
 
199
- .oa_social_login_provider.oa_social_login_provider_wordpress {
200
  background-position: -668px -1px;
201
  }
202
 
203
- .oa_social_login_provider.oa_social_login_provider_yahoo {
204
  background-position: -705px -1px;
205
  }
206
 
207
- .oa_social_login_provider.oa_social_login_provider_paypal {
208
  background-position: -742px -1px;
209
  }
210
 
211
- .oa_social_login_provider.oa_social_login_provider_stackexchange {
212
  background-position: -779px -1px;
213
  }
214
 
215
- .oa_social_login_provider.oa_social_login_provider_steam {
216
  background-position: -816px -1px;
217
  }
218
 
219
- .oa_social_login_provider.oa_social_login_provider_mailru {
220
  background-position: -853px -1px;
221
  }
222
 
223
- .oa_social_login_provider.oa_social_login_provider_skyrock {
224
  background-position: -890px -1px;
225
  }
226
 
227
- .oa_social_login_provider.oa_social_login_provider_github {
228
  background-position: -927px -1px;
229
  }
230
 
231
- .oa_social_login_provider.oa_social_login_provider_disqus {
232
  background-position: -964px -1px;
233
  }
234
 
235
- .oa_social_login_provider.oa_social_login_provider_youtube {
236
  background-position: -1001px -1px;
237
  }
238
 
239
- .oa_social_login_provider.oa_social_login_provider_odnoklassniki {
240
  background-position: -1038px -1px;
241
  }
31
  margin-bottom: 35px;
32
  }
33
 
34
+ #oa_social_login_box_help ul{
35
+ padding-left:20px;
36
+ list-style-type: disc;
37
+ }
38
+
39
  #oa_social_login_box_help .oa_social_login_box_title {
40
  border-color: #E6DB55;
41
  }
137
  line-height: 35px;
138
  }
139
 
140
+ .oa_social_login_table tr.row_provider td.cell_provider_icon{
141
+ width:50px;
142
+ text-align:center !important;
143
+ }
144
+
145
+
146
+ .oa_social_login_table tr.row_provider td.cell_provider_label{
147
+ text-align:left !important;
148
  }
149
 
150
  .oa_social_login_provider {
155
  display: inline-block;
156
  }
157
 
158
+ .oa_social_login_provider_aol {
159
  background-position: -2px -1px;
160
  }
161
 
162
+ .oa_social_login_provider_blogger {
163
  background-position: -39px -1px;
164
  }
165
 
166
+ .oa_social_login_provider_facebook {
167
  background-position: -76px -1px;
168
  }
169
 
170
+ .oa_social_login_provider_foursquare {
171
  background-position: -113px -1px;
172
  }
173
 
174
+ .oa_social_login_provider_google {
175
  background-position: -150px -1px;
176
  }
177
 
178
+ .oa_social_login_provider_hyves {
179
  background-position: -187px -1px;
180
  }
181
 
182
+ .oa_social_login_provider_linkedin {
183
  background-position: -224px -1px;
184
  }
185
 
186
+ .oa_social_login_provider_windowslive {
187
  background-position: -261px -1px;
188
  }
189
 
190
+ .oa_social_login_provider_livejournal {
191
  background-position: -298px -1px;
192
  }
193
 
194
+ .oa_social_login_provider_myspace {
195
  background-position: -372px -1px;
196
  }
197
 
198
+ .oa_social_login_provider_openid {
199
  background-position: -409px -1px;
200
  }
201
 
202
+ .oa_social_login_provider_twitter {
203
  background-position: -520px -1px;
204
  }
205
 
206
+ .oa_social_login_provider_vkontakte {
207
  background-position: -631px -1px;
208
  }
209
 
210
+ .oa_social_login_provider_wordpress {
211
  background-position: -668px -1px;
212
  }
213
 
214
+ .oa_social_login_provider_yahoo {
215
  background-position: -705px -1px;
216
  }
217
 
218
+ .oa_social_login_provider_paypal {
219
  background-position: -742px -1px;
220
  }
221
 
222
+ .oa_social_login_provider_stackexchange {
223
  background-position: -779px -1px;
224
  }
225
 
226
+ .oa_social_login_provider_steam {
227
  background-position: -816px -1px;
228
  }
229
 
230
+ .oa_social_login_provider_mailru {
231
  background-position: -853px -1px;
232
  }
233
 
234
+ .oa_social_login_provider_skyrock {
235
  background-position: -890px -1px;
236
  }
237
 
238
+ .oa_social_login_provider_github {
239
  background-position: -927px -1px;
240
  }
241
 
242
+ .oa_social_login_provider_disqus {
243
  background-position: -964px -1px;
244
  }
245
 
246
+ .oa_social_login_provider_youtube {
247
  background-position: -1001px -1px;
248
  }
249
 
250
+ .oa_social_login_provider_odnoklassniki {
251
  background-position: -1038px -1px;
252
  }
assets/css/site.css CHANGED
@@ -40,15 +40,27 @@
40
  z-index: 999997;
41
  }
42
 
43
- .oa_social_login_modal_inner input.inputtxt {
44
  margin: 0;
45
- width: 100%;
46
  }
47
 
48
- .oa_social_login_modal_inner input.inputbutton {
49
- width: 80%;
50
- margin: 0 auto;
51
  text-align: center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  }
53
 
54
  .oa_social_login_modal_notice {
@@ -59,12 +71,8 @@
59
  text-align: justify;
60
  border: 1px solid #F9DD34;
61
  margin: 10px 15px 0 15px;
62
- border-radius: 5px
63
- }
64
-
65
- .oa_social_login_modal_button {
66
- text-align: center;
67
- margin-top: 10px;
68
  }
69
 
70
  .oa_social_login_modal_body {
@@ -74,7 +82,7 @@
74
  .oa_social_login_modal_title {
75
  color: #222;
76
  background-color: #eee;
77
- padding: 5px 0;
78
  border-bottom: 1px solid #ccc;
79
  font-size: 16px;
80
  text-align: center;
@@ -82,13 +90,14 @@
82
 
83
  .oa_social_login_modal_subtitle {
84
  color: #55;
85
- font-size: 12px;
86
  font-weight: bold;
 
87
  }
88
 
89
  .oa_social_login_modal_error {
90
- height: 30px;
91
- color: red;
92
- font-size: 80%;
93
  color: red;
 
 
 
94
  }
40
  z-index: 999997;
41
  }
42
 
43
+ .oa_social_login_modal_inner input.oa_social_login_confirm_text {
44
  margin: 0;
45
+ width: 96%;
46
  }
47
 
48
+ .oa_social_login_buttons {
 
 
49
  text-align: center;
50
+ margin-top: 10px;
51
+ }
52
+
53
+ .oa_social_login_modal_inner input.oa_social_login_button_confirm {
54
+ width: 75%;
55
+ float: left;
56
+ font-size: 13px;
57
+ color: #000;
58
+ }
59
+
60
+ .oa_social_login_modal_inner input.oa_social_login_button_cancel {
61
+ width: 20%;
62
+ float: right;
63
+ font-size: 13px;
64
  }
65
 
66
  .oa_social_login_modal_notice {
71
  text-align: justify;
72
  border: 1px solid #F9DD34;
73
  margin: 10px 15px 0 15px;
74
+ border-radius: 5px;
75
+ line-height: 16px;
 
 
 
 
76
  }
77
 
78
  .oa_social_login_modal_body {
82
  .oa_social_login_modal_title {
83
  color: #222;
84
  background-color: #eee;
85
+ padding: 5px 0 8px;
86
  border-bottom: 1px solid #ccc;
87
  font-size: 16px;
88
  text-align: center;
90
 
91
  .oa_social_login_modal_subtitle {
92
  color: #55;
93
+ font-size: 14px;
94
  font-weight: bold;
95
+ margin: 5px 0;
96
  }
97
 
98
  .oa_social_login_modal_error {
 
 
 
99
  color: red;
100
+ font-size: 12px;
101
+ font-weight: bold;
102
+ margin: 5px 0 20px;
103
  }
filters.txt CHANGED
@@ -1,15 +1,14 @@
1
- ********************************************************************************
2
- * Example for using your own CSS
3
- ********************************************************************************
4
 
5
- Add this code to the end of the functions.php file of your WordPress theme.
6
  By doing so your changes will not be overwritten when you install a new version of Social Login.
7
- Replace the URL in the example by an URL to your own CSS Stylesheet
8
-
9
 
 
 
 
 
10
  function oa_social_login_set_custom_css($css_theme_uri)
11
  {
12
- //Added to use custom CSS
13
  $css_theme_uri = 'http://public.oneallcdn.com/css/api/socialize/themes/buildin/connect/large-v1.css';
14
 
15
  //Done
@@ -20,15 +19,12 @@ Replace the URL in the example by an URL to your own CSS Stylesheet
20
 
21
 
22
  ********************************************************************************
23
- * Example for restricting access for email addresses of a specific domain
24
  ********************************************************************************
25
 
26
- Add this code to the end of the functions.php file of your WordPress theme.
27
- By doing so your changes will not be overwritten when you install a new version of Social Login.
28
-
29
  function oa_social_login_filter_new_user_email ($user_email)
30
  {
31
- //Only users with social network accounts having an email address ending in @gmail.com my register
32
  if ( ! preg_match ('/@gmail\.com$/i', trim ($user_email)))
33
  {
34
  return 'disallowed';
@@ -36,3 +32,32 @@ function oa_social_login_filter_new_user_email ($user_email)
36
  return $user_email;
37
  }
38
  add_filter('oa_social_login_filter_new_user_email', 'oa_social_login_filter_new_user_email');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
 
2
+ The codes have to be added to the end of the functions.php file of your WordPress theme.
3
  By doing so your changes will not be overwritten when you install a new version of Social Login.
 
 
4
 
5
+ ********************************************************************************
6
+ * Use your own CSS
7
+ ********************************************************************************
8
+
9
  function oa_social_login_set_custom_css($css_theme_uri)
10
  {
11
+ //Replace the URL by an URL to your own CSS Stylesheet
12
  $css_theme_uri = 'http://public.oneallcdn.com/css/api/socialize/themes/buildin/connect/large-v1.css';
13
 
14
  //Done
19
 
20
 
21
  ********************************************************************************
22
+ * Restrict access and allow only email addresses of a specific domain
23
  ********************************************************************************
24
 
 
 
 
25
  function oa_social_login_filter_new_user_email ($user_email)
26
  {
27
+ //Only users with social network accounts having an email address ending in @gmail.com may register
28
  if ( ! preg_match ('/@gmail\.com$/i', trim ($user_email)))
29
  {
30
  return 'disallowed';
32
  return $user_email;
33
  }
34
  add_filter('oa_social_login_filter_new_user_email', 'oa_social_login_filter_new_user_email');
35
+
36
+
37
+ ********************************************************************************
38
+ * Custom redirections
39
+ ********************************************************************************
40
+
41
+ //Redirection for new users
42
+ function oa_social_login_filter_redirect_for_new_users ($url, $user_data)
43
+ {
44
+ //Force the url to something else
45
+ $url = 'http://my-website.com/welcome-new-user/';
46
+
47
+ //New users will be redirected here
48
+ return $url;
49
+ }
50
+ add_filter('oa_social_login_filter_registration_redirect_url', 'oa_social_login_filter_redirect_for_new_users', 10, 2);
51
+
52
+
53
+ //Redirection for existing users
54
+ function oa_social_login_filter_redirect_for_existing_users ($url, $user_data)
55
+ {
56
+ //Force the url to something else
57
+ $url = 'http://my-website.com/welcome-back/';
58
+
59
+ //Returning users will be redirected here
60
+ return $url;
61
+ }
62
+ add_filter('oa_social_login_filter_login_redirect_url', 'oa_social_login_filter_redirect_for_existing_users', 10, 2);
63
+
includes/admin.php CHANGED
@@ -23,24 +23,28 @@ add_filter ('manage_users_columns', 'oa_social_login_admin_user_column_add');
23
  **/
24
  function oa_social_login_admin_user_colum_display ($value, $column_name, $user_id)
25
  {
26
- //Check if it is our column
27
  if ($column_name <> 'oa_social_login_registration')
28
  {
29
  return $value;
30
  }
31
 
32
  //Read Identity Provider
33
- $meta_identity_providers = explode ("|", get_user_meta ($user_id, 'oa_social_login_identity_provider', true));
34
- $meta_identity_providers = array_unique ($meta_identity_providers);
 
 
 
35
 
36
- //Tradition Registration
37
- if (!is_array ($meta_identity_providers) OR count ($meta_identity_providers) < 1)
38
  {
39
- return __ ('Registration Form', 'oa_social_login');
40
  }
 
41
  else
42
  {
43
- return '<strong>Social Login</strong>: ' . implode (", ", $meta_identity_providers);
44
  }
45
  }
46
  add_action ('manage_users_custom_column', 'oa_social_login_admin_user_colum_display', 10, 3);
@@ -109,7 +113,7 @@ function oa_social_login_admin_message ()
109
  {
110
  if (get_option ('oa_social_login_activation_message') !== '1')
111
  {
112
- echo '<div class="updated"><p><strong>' . __ ('Thank you for using the Social Login Plugin!', 'oa_social_login') . '</strong> ' . sprintf (__ ('Please go to the <strong><a href="%s">Social Login\Setup</a></strong> page to setup the plugin.', 'oa_social_login'), 'admin.php?page=oa_social_login_setup') . '</p></div>';
113
  update_option ('oa_social_login_activation_message', '1');
114
  }
115
  }
@@ -221,10 +225,7 @@ function oa_social_login_admin_check_api_settings ()
221
  $api_resource_url = ($api_connection_use_https ? 'https' : 'http') . '://' . $api_domain . '/tools/ping.json';
222
 
223
  //Get connection details
224
- $result = oa_social_login_do_api_request ($api_connection_handler, $api_resource_url, array (
225
- 'api_key' => $api_key,
226
- 'api_secret' => $api_secret
227
- ), 15);
228
 
229
  //Parse result
230
  if (is_object ($result) AND property_exists ($result, 'http_code') AND property_exists ($result, 'http_data'))
@@ -465,26 +466,30 @@ function oa_social_login_settings_validate ($settings)
465
  {
466
  $sanitzed_settings [$key] = trim ($settings [$key]);
467
  }
 
 
 
 
468
  }
469
 
470
  //Flag settings
471
- $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);
472
- $sanitzed_settings ['plugin_profile_show'] == ((isset ($sanitzed_settings ['plugin_profile_show']) AND $sanitzed_settings ['plugin_profile_show'] == '0') ? 0 : 1);
473
- $sanitzed_settings ['plugin_notify_admin'] == ((isset ($sanitzed_settings ['plugin_notify_admin']) AND $sanitzed_settings ['plugin_notify_admin'] == '0') ? 0 : 1);
474
- $sanitzed_settings ['plugin_require_email'] == ((isset ($sanitzed_settings ['plugin_require_email']) AND $sanitzed_settings ['plugin_require_email'] == '1') ? 1 : 0);
475
- $sanitzed_settings ['plugin_comment_show'] == ((isset ($sanitzed_settings ['plugin_comment_show']) AND $sanitzed_settings ['plugin_comment_show'] == '0') ? 0 : 1);
476
- $sanitzed_settings ['plugin_use_small_buttons'] == ((isset ($sanitzed_settings ['plugin_use_small_buttons']) AND $sanitzed_settings ['plugin_use_small_buttons'] == '1') ? 1 : 0);
477
- $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);
478
- $sanitzed_settings ['plugin_link_verified_accounts'] == ((isset ($sanitzed_settings ['plugin_link_verified_accounts']) AND $sanitzed_settings ['plugin_link_verified_accounts'] == '0') ? 0 : 1);
479
- $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');
480
- $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');
481
- $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);
482
- $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);
483
- $sanitzed_settings ['plugin_comment_auto_approve'] == ((isset ($sanitzed_settings ['plugin_comment_auto_approve']) AND $sanitzed_settings ['plugin_comment_auto_approve'] == '1') ? 1 : 0);
484
- $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');
485
- $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');
486
-
487
- //Check Widget & Shortcode Login Redirection Settings
488
  if ($sanitzed_settings ['plugin_shortcode_login_redirect'] == 'custom')
489
  {
490
  if (empty ($sanitzed_settings ['plugin_shortcode_login_redirect_url']))
@@ -497,7 +502,8 @@ function oa_social_login_settings_validate ($settings)
497
  $sanitzed_settings ['plugin_shortcode_login_redirect_url'] = '';
498
  }
499
 
500
- //Check Widget & Shortcode Registration Redirection Settings
 
501
  if ($sanitzed_settings ['plugin_shortcode_register_redirect'] == 'custom')
502
  {
503
  if (empty ($sanitzed_settings ['plugin_shortcode_register_redirect_url']))
@@ -510,7 +516,8 @@ function oa_social_login_settings_validate ($settings)
510
  $sanitzed_settings ['plugin_shortcode_register_redirect_url'] = '';
511
  }
512
 
513
- //Check Login Redirection Settings
 
514
  if ($sanitzed_settings ['plugin_login_form_redirect'] == 'custom')
515
  {
516
  if (empty ($sanitzed_settings ['plugin_login_form_redirect_custom_url']))
@@ -524,7 +531,8 @@ function oa_social_login_settings_validate ($settings)
524
  }
525
 
526
 
527
- //Check Registration Redirection Settings
 
528
  if ($sanitzed_settings ['plugin_registration_form_redirect'] == 'custom')
529
  {
530
  if (empty ($sanitzed_settings ['plugin_registration_form_redirect_custom_url']))
@@ -553,12 +561,14 @@ function oa_display_social_login_setup ()
553
  {
554
  //Import providers
555
  GLOBAL $oa_social_login_providers;
556
- ?>
557
  <div class="wrap">
558
  <div id="oa_social_login_page" class="oa_social_login_setup">
559
- <h2>
560
- OneAll Social Login <?php _e ('Setup', 'oa_social_login'); ?>
561
- </h2>
 
 
562
  <?php
563
  if (get_option ('oa_social_login_api_settings_verified') !== '1')
564
  {
@@ -580,7 +590,7 @@ function oa_display_social_login_setup ()
580
  <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>
581
  </p>
582
  <h3>
583
- <?php printf (__ ('You are in good company! This plugin is used on more than %s websites!', 'oa_social_login'), '50,000'); ?>
584
  </h3>
585
  </div>
586
  <?php
@@ -588,6 +598,7 @@ function oa_display_social_login_setup ()
588
  else
589
  {
590
  ?>
 
591
  <div class="oa_social_login_box" id="oa_social_login_box_status">
592
  <div class="oa_social_login_box_title">
593
  <?php _e ('Your API Account is setup correctly', 'oa_social_login'); ?>
@@ -611,20 +622,20 @@ function oa_display_social_login_setup ()
611
  <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>
612
  <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>
613
  <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/'); ?>.
614
- <li><?php printf (__ ('We also have turnkey plugins for <a target="_blank" href="%s">Drupal, phpBB and Joomla</a> amongst others', 'oa_social_login'), 'http://docs.oneall.com/plugins/'); ?>.
615
  </li>
616
  </ul>
617
  </div>
618
  <?php
619
  if (!empty ($_REQUEST ['settings-updated']) AND strtolower ($_REQUEST ['settings-updated']) == 'true')
620
  {
621
- ?>
622
  <div class="oa_social_login_box" id="oa_social_login_box_updated">
623
  <?php _e ('Your modifications have been saved successfully!'); ?>
624
  </div>
625
  <?php
626
- }
627
- ?>
628
  <form method="post" action="options.php">
629
  <?php
630
  settings_fields ('oa_social_login_settings_group');
@@ -639,7 +650,7 @@ function oa_display_social_login_setup ()
639
  $api_connection_handler = ((empty ($settings ['api_connection_handler']) OR $settings ['api_connection_handler'] <> 'fsockopen') ? 'curl' : 'fsockopen');
640
  ?>
641
  <tr class="row_even">
642
- <td rowspan="2" class="row_multi" style="width:180px">
643
  <label><?php _e ('API Connection Handler', 'oa_social_login'); ?>:</label>
644
  </td>
645
  <td>
@@ -659,7 +670,7 @@ function oa_display_social_login_setup ()
659
  $api_connection_use_https = ((!isset ($settings ['api_connection_use_https']) OR $settings ['api_connection_use_https'] == '1') ? true : false);
660
  ?>
661
  <tr class="row_even">
662
- <td rowspan="2" class="row_multi" style="width:180px">
663
  <label><?php _e ('API Connection Port', 'oa_social_login'); ?>:</label>
664
  </td>
665
  <td>
@@ -677,7 +688,7 @@ function oa_display_social_login_setup ()
677
  </tr>
678
  <tr class="row_foot">
679
  <td>
680
- <a class="button-secondary" id="oa_social_login_autodetect_api_connection_handler" href="#"><?php _e ('Autodetect API Connection', 'oa_social_login'); ?></a>
681
  </td>
682
  <td>
683
  <div id="oa_social_login_api_connection_handler_result"></div>
@@ -693,7 +704,7 @@ function oa_display_social_login_setup ()
693
  </th>
694
  </tr>
695
  <tr class="row_even">
696
- <td>
697
  <label for="oa_social_login_settings_api_subdomain"><?php _e ('API Subdomain', 'oa_social_login'); ?>:</label>
698
  </td>
699
  <td>
@@ -701,7 +712,7 @@ function oa_display_social_login_setup ()
701
  </td>
702
  </tr>
703
  <tr class="row_odd">
704
- <td>
705
  <label for="oa_social_login_settings_api_key"><?php _e ('API Public Key', 'oa_social_login'); ?>:</label>
706
  </td>
707
  <td>
@@ -709,7 +720,7 @@ function oa_display_social_login_setup ()
709
  </td>
710
  </tr>
711
  <tr class="row_even">
712
- <td>
713
  <label for="oa_social_login_settings_api_secret"><?php _e ('API Private Key', 'oa_social_login'); ?>:</label>
714
  </td>
715
  <td>
@@ -718,7 +729,7 @@ function oa_display_social_login_setup ()
718
  </tr>
719
  <tr class="row_foot">
720
  <td>
721
- <a class="button-secondary" id="oa_social_login_test_api_settings" href="#"><?php _e ('Verify API Settings', 'oa_social_login'); ?> </a>
722
  </td>
723
  <td>
724
  <div id="oa_social_login_api_test_result"></div>
@@ -727,7 +738,7 @@ function oa_display_social_login_setup ()
727
  </table>
728
  <table class="form-table oa_social_login_table">
729
  <tr class="row_head">
730
- <th>
731
  <?php _e ('Enable the social networks/identity providers of your choice', 'oa_social_login'); ?>
732
  </th>
733
  </tr>
@@ -737,8 +748,12 @@ function oa_display_social_login_setup ()
737
  {
738
  ?>
739
  <tr class="row_provider <?php echo ((($i++) % 2) == 0) ? 'row_even' : 'row_odd' ?>">
740
- <td>
741
- <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>
 
 
 
 
742
  <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]); ?> />
743
  <label for="oneall_social_login_provider_<?php echo $key; ?>"><?php echo htmlspecialchars ($provider_data ['name']); ?> </label>
744
  <?php
@@ -761,20 +776,23 @@ function oa_display_social_login_setup ()
761
  </div>
762
  </div>
763
  <?php
764
- }
765
 
766
 
767
- /**
768
- * Display Settings Page
769
- **/
770
- function oa_display_social_login_settings ()
771
- {
772
  ?>
773
  <div class="wrap">
774
  <div id="oa_social_login_page" class="oa_social_login_settings">
775
- <h2>
776
- OneAll Social Login <?php _e ('Settings', 'oa_social_login'); ?>
777
- </h2>
 
 
 
778
  <form method="post" action="options.php">
779
  <?php
780
  settings_fields ('oa_social_login_settings_group');
@@ -788,7 +806,7 @@ function oa_display_social_login_setup ()
788
  <?php
789
  _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');
790
  ?>
791
- <strong><?php _e ('You therefore have to logout to see the plugin in action.', 'oa_social_login'); ?> </strong>
792
  </p>
793
  </div>
794
  <?php
@@ -814,7 +832,10 @@ function oa_display_social_login_setup ()
814
  </tr>
815
  <tr class="row_even">
816
  <td>
817
- <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')); ?>" />
 
 
 
818
  </td>
819
  </tr>
820
  <tr class="row_odd">
@@ -825,10 +846,10 @@ function oa_display_social_login_setup ()
825
  <tr class="row_even">
826
  <td>
827
  <?php
828
- $plugin_use_small_buttons = (isset ($settings ['plugin_use_small_buttons']) AND $settings ['plugin_use_small_buttons'] == '1');
829
  ?>
830
- <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 />
831
- <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'); ?>
832
  </td>
833
  </tr>
834
  <tr class="row_odd">
@@ -839,10 +860,10 @@ function oa_display_social_login_setup ()
839
  <tr class="row_even">
840
  <td>
841
  <?php
842
- $plugin_add_column_user_list = (isset ($settings ['plugin_add_column_user_list']) AND $settings ['plugin_add_column_user_list'] == '1');
843
  ?>
844
- <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 />
845
- <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>
846
  </td>
847
  </tr>
848
  <tr class="row_odd">
@@ -853,10 +874,10 @@ function oa_display_social_login_setup ()
853
  <tr class="row_even">
854
  <td>
855
  <?php
856
- $plugin_notify_admin = (!isset ($settings ['plugin_notify_admin']) OR $settings ['plugin_notify_admin'] == '1');
857
  ?>
858
- <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 whenever a new user registers with Social Login', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
859
- <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 any emails', 'oa_social_login'); ?>
860
  </td>
861
  </tr>
862
  </table>
@@ -874,10 +895,10 @@ function oa_display_social_login_setup ()
874
  <tr class="row_even">
875
  <td>
876
  <?php
877
- $plugin_require_email = (isset ($settings ['plugin_require_email']) AND $settings ['plugin_require_email'] == '1');
878
  ?>
879
- <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 />
880
- <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 />
881
  <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>
882
  <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>
883
  </td>
@@ -890,24 +911,25 @@ function oa_display_social_login_setup ()
890
  <tr class="row_even">
891
  <td>
892
  <?php
893
- $plugin_link_verified_accounts = (!isset ($settings ['plugin_link_verified_accounts']) OR $settings ['plugin_link_verified_accounts'] == '1');
894
  ?>
895
- <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 />
896
- <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'); ?>
897
  </td>
898
  </tr>
899
  <tr class="row_odd">
900
  <td>
901
- <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>
902
  </td>
903
  </tr>
904
  <tr class="row_even">
905
  <td>
906
  <?php
907
- $plugin_show_avatars_in_comments = (isset ($settings ['plugin_show_avatars_in_comments']) AND $settings ['plugin_show_avatars_in_comments'] == '1');
908
  ?>
909
- <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 />
910
- <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>
 
911
  </td>
912
  </tr>
913
  </table>
@@ -925,10 +947,10 @@ function oa_display_social_login_setup ()
925
  <tr class="row_even">
926
  <td>
927
  <?php
928
- $plugin_comment_show = (!isset ($settings ['plugin_comment_show']) OR !empty ($settings ['plugin_comment_show']));
929
  ?>
930
- <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 />
931
- <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 />
932
  </td>
933
  </tr>
934
  <tr class="row_odd">
@@ -939,11 +961,11 @@ function oa_display_social_login_setup ()
939
  <tr class="row_even">
940
  <td>
941
  <?php
942
- $plugin_comment_show_if_members_only = (!isset ($settings ['plugin_comment_show_if_members_only']) OR !empty ($settings ['plugin_comment_show_if_members_only']));
943
  ?>
944
  <span class="description"><?php _e ('The buttons will be displayed below the "You must be logged in to leave a comment" notice.'); ?> </span><br />
945
- <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 />
946
- <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'); ?>
947
  </td>
948
  </tr>
949
  <tr class="row_odd">
@@ -954,10 +976,10 @@ function oa_display_social_login_setup ()
954
  <tr class="row_even">
955
  <td>
956
  <?php
957
- $plugin_comment_auto_approve = (isset ($settings ['plugin_comment_auto_approve']) AND $settings ['plugin_comment_auto_approve'] == '1');
958
  ?>
959
- <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 />
960
- <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') ?>)
961
  </strong><br />
962
  </td>
963
  </tr>
@@ -977,14 +999,14 @@ function oa_display_social_login_setup ()
977
  <tr class="row_even">
978
  <td>
979
  <span class="description"><?php _e ('Keep this option enabled to allow each user to connect multiple social networks to his own profile.'); ?> </span><br />
980
- <?php $plugin_profile_show = (!isset ($settings ['plugin_profile_show']) OR !empty ($settings ['plugin_profile_show'])); ?>
981
- <input type="radio" name="oa_social_login_settings[plugin_profile_show]" value="1" <?php echo ($plugin_profile_show ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, show the Social Link buttons', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
982
- <input type="radio" name="oa_social_login_settings[plugin_profile_show]" value="0" <?php echo (!$plugin_profile_show ? 'checked="checked"' : ''); ?> /> <?php _e ('No, do not show the Social Link buttons', 'oa_social_login'); ?><br />
 
 
983
  </td>
984
  </tr>
985
  </table>
986
-
987
-
988
  <table class="form-table oa_social_login_table">
989
  <tr class="row_head">
990
  <th>
@@ -999,10 +1021,10 @@ function oa_display_social_login_setup ()
999
  <tr class="row_even">
1000
  <td>
1001
  <?php
1002
- $plugin_display_in_login_form = (!isset ($settings ['plugin_display_in_login_form']) OR $settings ['plugin_display_in_login_form'] == '1');
1003
  ?>
1004
- <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 />
1005
- <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'); ?>
1006
  </td>
1007
  </tr>
1008
  <tr class="row_odd">
@@ -1013,12 +1035,13 @@ function oa_display_social_login_setup ()
1013
  <tr class="row_even">
1014
  <td>
1015
  <?php
1016
- $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']);
 
1017
  ?>
1018
  <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 />
1019
  <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 />
1020
  <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 />
1021
- <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']) : ''); ?>" />
1022
  </td>
1023
  </tr>
1024
  </table>
@@ -1036,10 +1059,10 @@ function oa_display_social_login_setup ()
1036
  <tr class="row_even">
1037
  <td>
1038
  <?php
1039
- $plugin_display_in_registration_form = (!isset ($settings ['plugin_display_in_registration_form']) OR $settings ['plugin_display_in_registration_form'] == '1');
1040
  ?>
1041
- <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 />
1042
- <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'); ?>
1043
  </td>
1044
  </tr>
1045
  <tr class="row_odd">
@@ -1050,12 +1073,13 @@ function oa_display_social_login_setup ()
1050
  <tr class="row_even">
1051
  <td>
1052
  <?php
1053
- $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']);
 
1054
  ?>
1055
  <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 />
1056
  <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 />
1057
  <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 />
1058
- <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']) : ''); ?>" />
1059
  </td>
1060
  </tr>
1061
  </table>
@@ -1073,13 +1097,14 @@ function oa_display_social_login_setup ()
1073
  <tr class="row_even">
1074
  <td>
1075
  <?php
1076
- $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']);
 
1077
  ?>
1078
  <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 />
1079
  <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 />
1080
  <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 />
1081
  <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 />
1082
- <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']) : ''); ?>" />
1083
  </td>
1084
  </tr>
1085
  <tr class="row_odd">
@@ -1090,13 +1115,14 @@ function oa_display_social_login_setup ()
1090
  <tr class="row_even">
1091
  <td>
1092
  <?php
1093
- $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']);
 
1094
  ?>
1095
  <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 />
1096
  <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 />
1097
  <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 />
1098
  <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 />
1099
- <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']) : ''); ?>" />
1100
  </td>
1101
  </tr>
1102
  </table>
@@ -1108,5 +1134,4 @@ function oa_display_social_login_setup ()
1108
  </div>
1109
  </div>
1110
  <?php
1111
- }
1112
-
23
  **/
24
  function oa_social_login_admin_user_colum_display ($value, $column_name, $user_id)
25
  {
26
+ //Check if it is our own column
27
  if ($column_name <> 'oa_social_login_registration')
28
  {
29
  return $value;
30
  }
31
 
32
  //Read Identity Provider
33
+ $meta_identity_providers = trim (strval (get_user_meta ($user_id, 'oa_social_login_identity_provider', true)));
34
+ if (strlen ($meta_identity_providers) > 0)
35
+ {
36
+ $meta_identity_providers = array_unique (explode ("|", $meta_identity_providers));
37
+ }
38
 
39
+ //Social Login Registration
40
+ if (is_array ($meta_identity_providers) AND count ($meta_identity_providers) > 0)
41
  {
42
+ return '<strong>Social Login</strong>: ' . implode (", ", $meta_identity_providers);
43
  }
44
+ //Traditional Registration
45
  else
46
  {
47
+ return __ ('Registration Form', 'oa_social_login');
48
  }
49
  }
50
  add_action ('manage_users_custom_column', 'oa_social_login_admin_user_colum_display', 10, 3);
113
  {
114
  if (get_option ('oa_social_login_activation_message') !== '1')
115
  {
116
+ echo '<div class="updated"><p><strong>' . __ ('Thank you for using Social Login!', 'oa_social_login') . '</strong> ' . sprintf (__ ('Please complete the <strong><a href="%s">Social Login Setup</a></strong> to enable the plugin.', 'oa_social_login'), 'admin.php?page=oa_social_login_setup') . '</p></div>';
117
  update_option ('oa_social_login_activation_message', '1');
118
  }
119
  }
225
  $api_resource_url = ($api_connection_use_https ? 'https' : 'http') . '://' . $api_domain . '/tools/ping.json';
226
 
227
  //Get connection details
228
+ $result = oa_social_login_do_api_request ($api_connection_handler, $api_resource_url, array ('api_key' => $api_key, 'api_secret' => $api_secret), 15);
 
 
 
229
 
230
  //Parse result
231
  if (is_object ($result) AND property_exists ($result, 'http_code') AND property_exists ($result, 'http_data'))
466
  {
467
  $sanitzed_settings [$key] = trim ($settings [$key]);
468
  }
469
+ else
470
+ {
471
+ $sanitzed_settings [$key] = '';
472
+ }
473
  }
474
 
475
  //Flag settings
476
+ $sanitzed_settings ['plugin_add_column_user_list'] = ($sanitzed_settings ['plugin_add_column_user_list'] == '1' ? 1 : 0);
477
+ $sanitzed_settings ['plugin_profile_show'] = ($sanitzed_settings ['plugin_profile_show'] == '0' ? 0 : 1);
478
+ $sanitzed_settings ['plugin_notify_admin'] = ($sanitzed_settings ['plugin_notify_admin'] == '0' ? 0 : 1);
479
+ $sanitzed_settings ['plugin_require_email'] = ($sanitzed_settings ['plugin_require_email'] == '1' ? 1 : 0);
480
+ $sanitzed_settings ['plugin_comment_show'] = ($sanitzed_settings ['plugin_comment_show'] == '0' ? 0 : 1);
481
+ $sanitzed_settings ['plugin_comment_show_if_members_only'] = ($sanitzed_settings ['plugin_comment_show_if_members_only'] == '0' ? 0 : 1);
482
+ $sanitzed_settings ['plugin_use_small_buttons'] = ($sanitzed_settings ['plugin_use_small_buttons'] == '1' ? 1 : 0);
483
+ $sanitzed_settings ['plugin_display_in_login_form'] = ($sanitzed_settings ['plugin_display_in_login_form'] == '0' ? 0 : 1);
484
+ $sanitzed_settings ['plugin_display_in_registration_form'] = ($sanitzed_settings ['plugin_display_in_registration_form'] == '0' ? 0 : 1);
485
+ $sanitzed_settings ['plugin_link_verified_accounts'] = ($sanitzed_settings ['plugin_link_verified_accounts'] == '0' ? 0 : 1);
486
+ $sanitzed_settings ['plugin_comment_auto_approve'] = ($sanitzed_settings ['plugin_comment_auto_approve'] == '1' ? 1 : 0);
487
+
488
+ //Multiple settings
489
+ $sanitzed_settings ['plugin_show_avatars_in_comments'] = (in_array ($sanitzed_settings ['plugin_show_avatars_in_comments'], array (0, 1, 2)) ? $sanitzed_settings ['plugin_show_avatars_in_comments'] : 0);
490
+
491
+ //Redirection Settings: Widget & Shortcode Login
492
+ $sanitzed_settings ['plugin_shortcode_login_redirect'] = (in_array ($sanitzed_settings ['plugin_shortcode_login_redirect'], array ('current','dashboard','homepage','custom')) ? $sanitzed_settings ['plugin_shortcode_login_redirect'] : 'current');
493
  if ($sanitzed_settings ['plugin_shortcode_login_redirect'] == 'custom')
494
  {
495
  if (empty ($sanitzed_settings ['plugin_shortcode_login_redirect_url']))
502
  $sanitzed_settings ['plugin_shortcode_login_redirect_url'] = '';
503
  }
504
 
505
+ //Redirection Settings: Widget & Shortcode Registration
506
+ $sanitzed_settings ['plugin_shortcode_register_redirect'] = (in_array ($sanitzed_settings ['plugin_shortcode_register_redirect'], array ('current','dashboard','homepage','custom')) ? $sanitzed_settings ['plugin_shortcode_register_redirect'] : 'current');
507
  if ($sanitzed_settings ['plugin_shortcode_register_redirect'] == 'custom')
508
  {
509
  if (empty ($sanitzed_settings ['plugin_shortcode_register_redirect_url']))
516
  $sanitzed_settings ['plugin_shortcode_register_redirect_url'] = '';
517
  }
518
 
519
+ //Redirection Settings: Form Login
520
+ $sanitzed_settings ['plugin_login_form_redirect'] = (in_array ($sanitzed_settings ['plugin_login_form_redirect'], array ('dashboard','homepage','custom')) ? $sanitzed_settings ['plugin_login_form_redirect'] : 'homepage');
521
  if ($sanitzed_settings ['plugin_login_form_redirect'] == 'custom')
522
  {
523
  if (empty ($sanitzed_settings ['plugin_login_form_redirect_custom_url']))
531
  }
532
 
533
 
534
+ //Redirection Settings: Form Registration
535
+ $sanitzed_settings ['plugin_registration_form_redirect'] = (in_array ($sanitzed_settings ['plugin_registration_form_redirect'], array ('dashboard','homepage','custom')) ? $sanitzed_settings ['plugin_registration_form_redirect'] : 'dashboard');
536
  if ($sanitzed_settings ['plugin_registration_form_redirect'] == 'custom')
537
  {
538
  if (empty ($sanitzed_settings ['plugin_registration_form_redirect_custom_url']))
561
  {
562
  //Import providers
563
  GLOBAL $oa_social_login_providers;
564
+ ?>
565
  <div class="wrap">
566
  <div id="oa_social_login_page" class="oa_social_login_setup">
567
+ <h2>OneAll Social Login</h2>
568
+ <h2 class="nav-tab-wrapper">
569
+ <a class="nav-tab nav-tab-active" href="admin.php?page=oa_social_login_setup"><?php _e ('Setup', 'oa_social_login'); ?></a>
570
+ <a class="nav-tab" href="admin.php?page=oa_social_login_settings"><?php _e ('Settings', 'oa_social_login'); ?></a>
571
+ </h2>
572
  <?php
573
  if (get_option ('oa_social_login_api_settings_verified') !== '1')
574
  {
590
  <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>
591
  </p>
592
  <h3>
593
+ <?php printf (__ ('You are in good company! This plugin is used on more than %s websites!', 'oa_social_login'), '150,000'); ?>
594
  </h3>
595
  </div>
596
  <?php
598
  else
599
  {
600
  ?>
601
+ <p></p>
602
  <div class="oa_social_login_box" id="oa_social_login_box_status">
603
  <div class="oa_social_login_box_title">
604
  <?php _e ('Your API Account is setup correctly', 'oa_social_login'); ?>
622
  <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>
623
  <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>
624
  <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/'); ?>.
625
+ <li><?php printf (__ ('We also have <a target="_blank" href="%s">turnkey plugins</a> for Drupal, PrestaShop, Joomla, phpBB andy many others ...', 'oa_social_login'), 'http://docs.oneall.com/plugins/'); ?>.
626
  </li>
627
  </ul>
628
  </div>
629
  <?php
630
  if (!empty ($_REQUEST ['settings-updated']) AND strtolower ($_REQUEST ['settings-updated']) == 'true')
631
  {
632
+ ?>
633
  <div class="oa_social_login_box" id="oa_social_login_box_updated">
634
  <?php _e ('Your modifications have been saved successfully!'); ?>
635
  </div>
636
  <?php
637
+ }
638
+ ?>
639
  <form method="post" action="options.php">
640
  <?php
641
  settings_fields ('oa_social_login_settings_group');
650
  $api_connection_handler = ((empty ($settings ['api_connection_handler']) OR $settings ['api_connection_handler'] <> 'fsockopen') ? 'curl' : 'fsockopen');
651
  ?>
652
  <tr class="row_even">
653
+ <td rowspan="2" class="row_multi" style="width:200px">
654
  <label><?php _e ('API Connection Handler', 'oa_social_login'); ?>:</label>
655
  </td>
656
  <td>
670
  $api_connection_use_https = ((!isset ($settings ['api_connection_use_https']) OR $settings ['api_connection_use_https'] == '1') ? true : false);
671
  ?>
672
  <tr class="row_even">
673
+ <td rowspan="2" class="row_multi" style="width:200px">
674
  <label><?php _e ('API Connection Port', 'oa_social_login'); ?>:</label>
675
  </td>
676
  <td>
688
  </tr>
689
  <tr class="row_foot">
690
  <td>
691
+ <a class="button-primary" id="oa_social_login_autodetect_api_connection_handler" href="#"><?php _e ('Autodetect API Connection', 'oa_social_login'); ?></a>
692
  </td>
693
  <td>
694
  <div id="oa_social_login_api_connection_handler_result"></div>
704
  </th>
705
  </tr>
706
  <tr class="row_even">
707
+ <td style="width:200px">
708
  <label for="oa_social_login_settings_api_subdomain"><?php _e ('API Subdomain', 'oa_social_login'); ?>:</label>
709
  </td>
710
  <td>
712
  </td>
713
  </tr>
714
  <tr class="row_odd">
715
+ <td style="width:200px">
716
  <label for="oa_social_login_settings_api_key"><?php _e ('API Public Key', 'oa_social_login'); ?>:</label>
717
  </td>
718
  <td>
720
  </td>
721
  </tr>
722
  <tr class="row_even">
723
+ <td style="width:200px">
724
  <label for="oa_social_login_settings_api_secret"><?php _e ('API Private Key', 'oa_social_login'); ?>:</label>
725
  </td>
726
  <td>
729
  </tr>
730
  <tr class="row_foot">
731
  <td>
732
+ <a class="button-primary" id="oa_social_login_test_api_settings" href="#"><?php _e ('Verify API Settings', 'oa_social_login'); ?> </a>
733
  </td>
734
  <td>
735
  <div id="oa_social_login_api_test_result"></div>
738
  </table>
739
  <table class="form-table oa_social_login_table">
740
  <tr class="row_head">
741
+ <th colspan="2">
742
  <?php _e ('Enable the social networks/identity providers of your choice', 'oa_social_login'); ?>
743
  </th>
744
  </tr>
748
  {
749
  ?>
750
  <tr class="row_provider <?php echo ((($i++) % 2) == 0) ? 'row_even' : 'row_odd' ?>">
751
+ <td class="cell_provider_icon">
752
+ <label for="oneall_social_login_provider_<?php echo $key; ?>">
753
+ <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>
754
+ </label>
755
+ </td>
756
+ <td class="cell_provider_label">
757
  <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]); ?> />
758
  <label for="oneall_social_login_provider_<?php echo $key; ?>"><?php echo htmlspecialchars ($provider_data ['name']); ?> </label>
759
  <?php
776
  </div>
777
  </div>
778
  <?php
779
+ }
780
 
781
 
782
+ /**
783
+ * Display Settings Page
784
+ **/
785
+ function oa_display_social_login_settings ()
786
+ {
787
  ?>
788
  <div class="wrap">
789
  <div id="oa_social_login_page" class="oa_social_login_settings">
790
+ <h2>OneAll Social Login</h2>
791
+ <h2 class="nav-tab-wrapper">
792
+ <a class="nav-tab" href="admin.php?page=oa_social_login_setup"><?php _e ('Setup', 'oa_social_login'); ?></a>
793
+ <a class="nav-tab nav-tab-active" href="admin.php?page=oa_social_login_settings"><?php _e ('Settings', 'oa_social_login'); ?></a>
794
+ </h2>
795
+ <p></p>
796
  <form method="post" action="options.php">
797
  <?php
798
  settings_fields ('oa_social_login_settings_group');
806
  <?php
807
  _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');
808
  ?>
809
+ <strong><?php _e ('You therefore have to logout to see the plugin in action.', 'oa_social_login'); ?> </strong>
810
  </p>
811
  </div>
812
  <?php
832
  </tr>
833
  <tr class="row_even">
834
  <td>
835
+ <?php
836
+ $plugin_caption = (isset ($settings ['plugin_caption']) ? $settings ['plugin_caption'] : _e ('Connect with:', 'oa_social_login'));
837
+ ?>
838
+ <input type="text" name="oa_social_login_settings[plugin_caption]" size="90" value="<?php echo htmlspecialchars ($plugin_caption); ?>" />
839
  </td>
840
  </tr>
841
  <tr class="row_odd">
846
  <tr class="row_even">
847
  <td>
848
  <?php
849
+ $plugin_use_small_buttons = ((isset ($settings ['plugin_use_small_buttons']) AND in_array ($settings ['plugin_use_small_buttons'], array (0, 1))) ? $settings ['plugin_use_small_buttons'] : 0);
850
  ?>
851
+ <input type="radio" name="oa_social_login_settings[plugin_use_small_buttons]" value="0" <?php echo ($plugin_use_small_buttons == 0 ? '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 />
852
+ <input type="radio" name="oa_social_login_settings[plugin_use_small_buttons]" value="1" <?php echo ($plugin_use_small_buttons == 1 ? 'checked="checked"' : ''); ?> /> <?php printf (__ ('Use the small social network buttons (%s)', 'oa_social_login'), '16x16 px'); ?>
853
  </td>
854
  </tr>
855
  <tr class="row_odd">
860
  <tr class="row_even">
861
  <td>
862
  <?php
863
+ $plugin_add_column_user_list = ((isset ($settings ['plugin_add_column_user_list']) AND in_array ($settings ['plugin_add_column_user_list'], array (0, 1))) ? $settings ['plugin_add_column_user_list'] : 0);
864
  ?>
865
+ <input type="radio" name="oa_social_login_settings[plugin_add_column_user_list]" value="1" <?php echo ($plugin_add_column_user_list == 1 ? '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 />
866
+ <input type="radio" name="oa_social_login_settings[plugin_add_column_user_list]" value="0" <?php echo ($plugin_add_column_user_list == 0 ? '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>
867
  </td>
868
  </tr>
869
  <tr class="row_odd">
874
  <tr class="row_even">
875
  <td>
876
  <?php
877
+ $plugin_notify_admin = ((isset ($settings ['plugin_notify_admin']) AND in_array ($settings ['plugin_notify_admin'], array (0, 1))) ? $settings ['plugin_notify_admin'] : 1);
878
  ?>
879
+ <input type="radio" name="oa_social_login_settings[plugin_notify_admin]" value="1" <?php echo ($plugin_notify_admin == 1 ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, send me an email whenever a new user registers with Social Login', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
880
+ <input type="radio" name="oa_social_login_settings[plugin_notify_admin]" value="0" <?php echo ($plugin_notify_admin == 0 ? 'checked="checked"' : ''); ?> /> <?php _e ('No, do not send me any emails', 'oa_social_login'); ?>
881
  </td>
882
  </tr>
883
  </table>
895
  <tr class="row_even">
896
  <td>
897
  <?php
898
+ $plugin_require_email = ((isset ($settings ['plugin_require_email']) AND in_array ($settings ['plugin_require_email'], array (0, 1))) ? $settings ['plugin_require_email'] : 0);
899
  ?>
900
+ <input type="radio" name="oa_social_login_settings[plugin_require_email]" value="0" <?php echo ($plugin_require_email == 0 ? '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 />
901
+ <input type="radio" name="oa_social_login_settings[plugin_require_email]" value="1" <?php echo ($plugin_require_email == 1 ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, require the user to enter his email address manually and display this message:', 'oa_social_login'); ?> <br />
902
  <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>
903
  <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>
904
  </td>
911
  <tr class="row_even">
912
  <td>
913
  <?php
914
+ $plugin_link_verified_accounts = ((isset ($settings ['plugin_link_verified_accounts']) AND in_array ($settings ['plugin_link_verified_accounts'], array (0, 1))) ? $settings ['plugin_link_verified_accounts'] : 1);
915
  ?>
916
+ <input type="radio" name="oa_social_login_settings[plugin_link_verified_accounts]" value="1" <?php echo ($plugin_link_verified_accounts == 1 ? '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 />
917
+ <input type="radio" name="oa_social_login_settings[plugin_link_verified_accounts]" value="0" <?php echo ($plugin_link_verified_accounts == 0 ? 'checked="checked"' : ''); ?> /> <?php _e ('No, disable account linking', 'oa_social_login'); ?>
918
  </td>
919
  </tr>
920
  <tr class="row_odd">
921
  <td>
922
+ <strong><?php _e ("If the user's social network profile has an avatar, should this avatar be used as default avatar for the user?", 'oa_social_login'); ?></strong>
923
  </td>
924
  </tr>
925
  <tr class="row_even">
926
  <td>
927
  <?php
928
+ $plugin_show_avatars_in_comments = ((isset ($settings ['plugin_show_avatars_in_comments']) AND in_array ($settings ['plugin_show_avatars_in_comments'], array (0, 1, 2))) ? $settings ['plugin_show_avatars_in_comments'] : 0);
929
  ?>
930
+ <input type="radio" name="oa_social_login_settings[plugin_show_avatars_in_comments]" value="0" <?php echo ($plugin_show_avatars_in_comments == 0 ? 'checked="checked"' : ''); ?> /> <?php _e ('No, do not use avatars from social networks', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
931
+ <input type="radio" name="oa_social_login_settings[plugin_show_avatars_in_comments]" value="1" <?php echo ($plugin_show_avatars_in_comments == 1 ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, use small avatars from social networks if available', 'oa_social_login'); ?><br />
932
+ <input type="radio" name="oa_social_login_settings[plugin_show_avatars_in_comments]" value="2" <?php echo ($plugin_show_avatars_in_comments == 2 ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, use large avatars from social networks if available', 'oa_social_login'); ?>
933
  </td>
934
  </tr>
935
  </table>
947
  <tr class="row_even">
948
  <td>
949
  <?php
950
+ $plugin_comment_show = ((isset ($settings ['plugin_comment_show']) AND in_array ($settings ['plugin_comment_show'], array (0, 1))) ? $settings ['plugin_comment_show'] : 1);
951
  ?>
952
+ <input type="radio" name="oa_social_login_settings[plugin_comment_show]" value="1" <?php echo ($plugin_comment_show == 1 ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, show the Social Login buttons', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
953
+ <input type="radio" name="oa_social_login_settings[plugin_comment_show]" value="0" <?php echo ($plugin_comment_show == 0 ? 'checked="checked"' : ''); ?> /> <?php _e ('No, do not show the Social Login buttons', 'oa_social_login'); ?><br />
954
  </td>
955
  </tr>
956
  <tr class="row_odd">
961
  <tr class="row_even">
962
  <td>
963
  <?php
964
+ $plugin_comment_show_if_members_only = ((isset ($settings ['plugin_comment_show_if_members_only']) AND in_array ($settings ['plugin_comment_show_if_members_only'], array (0, 1))) ? $settings ['plugin_comment_show_if_members_only'] : 1);
965
  ?>
966
  <span class="description"><?php _e ('The buttons will be displayed below the "You must be logged in to leave a comment" notice.'); ?> </span><br />
967
+ <input type="radio" name="oa_social_login_settings[plugin_comment_show_if_members_only]" value="1" <?php echo ($plugin_comment_show_if_members_only == 1 ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, show the Social Login buttons', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
968
+ <input type="radio" name="oa_social_login_settings[plugin_comment_show_if_members_only]" value="0" <?php echo ($plugin_comment_show_if_members_only == 0 ? 'checked="checked"' : ''); ?> /> <?php _e ('No, do not show the Social Login buttons', 'oa_social_login'); ?>
969
  </td>
970
  </tr>
971
  <tr class="row_odd">
976
  <tr class="row_even">
977
  <td>
978
  <?php
979
+ $plugin_comment_auto_approve = ((isset ($settings ['plugin_comment_auto_approve']) AND in_array ($settings ['plugin_comment_auto_approve'], array (0, 1))) ? $settings ['plugin_comment_auto_approve'] : 0);
980
  ?>
981
+ <input type="radio" name="oa_social_login_settings[plugin_comment_auto_approve]" value="1" <?php echo ($plugin_comment_auto_approve == 1 ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, automatically approve comments made by users that connected with Social Login', 'oa_social_login'); ?><br />
982
+ <input type="radio" name="oa_social_login_settings[plugin_comment_auto_approve]" value="0" <?php echo ($plugin_comment_auto_approve == 0 ? 'checked="checked"' : ''); ?> /> <?php _e ('No, do not automatically approve', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)
983
  </strong><br />
984
  </td>
985
  </tr>
999
  <tr class="row_even">
1000
  <td>
1001
  <span class="description"><?php _e ('Keep this option enabled to allow each user to connect multiple social networks to his own profile.'); ?> </span><br />
1002
+ <?php
1003
+ $plugin_profile_show = ((isset ($settings ['plugin_profile_show']) AND in_array ($settings ['plugin_profile_show'], array (0, 1))) ? $settings ['plugin_profile_show'] : 1);
1004
+ ?>
1005
+ <input type="radio" name="oa_social_login_settings[plugin_profile_show]" value="1" <?php echo ($plugin_profile_show == 1 ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, show the Social Link buttons', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
1006
+ <input type="radio" name="oa_social_login_settings[plugin_profile_show]" value="0" <?php echo ($plugin_profile_show == 0 ? 'checked="checked"' : ''); ?> /> <?php _e ('No, do not show the Social Link buttons', 'oa_social_login'); ?><br />
1007
  </td>
1008
  </tr>
1009
  </table>
 
 
1010
  <table class="form-table oa_social_login_table">
1011
  <tr class="row_head">
1012
  <th>
1021
  <tr class="row_even">
1022
  <td>
1023
  <?php
1024
+ $plugin_display_in_login_form = ((isset ($settings ['plugin_display_in_login_form']) AND in_array ($settings ['plugin_display_in_login_form'], array (0, 1))) ? $settings ['plugin_display_in_login_form'] : 1);
1025
  ?>
1026
+ <input type="radio" name="oa_social_login_settings[plugin_display_in_login_form]" value="1" <?php echo ($plugin_display_in_login_form == 1 ? '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 />
1027
+ <input type="radio" name="oa_social_login_settings[plugin_display_in_login_form]" value="0" <?php echo ($plugin_display_in_login_form == 0 ? 'checked="checked"' : ''); ?> /> <?php _e ('No, disable social network buttons in the login form', 'oa_social_login'); ?>
1028
  </td>
1029
  </tr>
1030
  <tr class="row_odd">
1035
  <tr class="row_even">
1036
  <td>
1037
  <?php
1038
+ $plugin_login_form_redirect = ((isset ($settings ['plugin_login_form_redirect']) AND in_array ($settings ['plugin_login_form_redirect'], array ('homepage','dashboard','custom'))) ? $settings ['plugin_login_form_redirect'] : 'homepage');
1039
+ $plugin_login_form_redirect_custom_url = (isset ($settings ['plugin_login_form_redirect_custom_url']) ? $settings ['plugin_login_form_redirect_custom_url'] : '');
1040
  ?>
1041
  <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 />
1042
  <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 />
1043
  <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 />
1044
+ <input type="text" name="oa_social_login_settings[plugin_login_form_redirect_custom_url]" size="90" value="<?php echo htmlspecialchars ($plugin_login_form_redirect_custom_url); ?>" />
1045
  </td>
1046
  </tr>
1047
  </table>
1059
  <tr class="row_even">
1060
  <td>
1061
  <?php
1062
+ $plugin_display_in_registration_form = ((isset ($settings ['plugin_display_in_registration_form']) AND in_array ($settings ['plugin_display_in_registration_form'], array (0, 1))) ? $settings ['plugin_display_in_registration_form'] : 1);
1063
  ?>
1064
+ <input type="radio" name="oa_social_login_settings[plugin_display_in_registration_form]" value="1" <?php echo ($plugin_display_in_registration_form == 1 ? '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 />
1065
+ <input type="radio" name="oa_social_login_settings[plugin_display_in_registration_form]" value="0" <?php echo ($plugin_display_in_registration_form == 0 ? 'checked="checked"' : ''); ?> /> <?php _e ('No, disable social network buttons in the registration form', 'oa_social_login'); ?>
1066
  </td>
1067
  </tr>
1068
  <tr class="row_odd">
1073
  <tr class="row_even">
1074
  <td>
1075
  <?php
1076
+ $plugin_registration_form_redirect = ((isset ($settings ['plugin_registration_form_redirect']) AND in_array ($settings ['plugin_registration_form_redirect'], array ('homepage','dashboard','custom'))) ? $settings ['plugin_registration_form_redirect'] : 'dashboard');
1077
+ $plugin_registration_form_redirect_custom_url = (isset ($settings ['plugin_registration_form_redirect_custom_url']) ? $settings ['plugin_registration_form_redirect_custom_url'] : '');
1078
  ?>
1079
  <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 />
1080
  <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 />
1081
  <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 />
1082
+ <input type="text" name="oa_social_login_settings[plugin_registration_form_redirect_custom_url]" size="90" value="<?php echo htmlspecialchars ($plugin_registration_form_redirect_custom_url); ?>" />
1083
  </td>
1084
  </tr>
1085
  </table>
1097
  <tr class="row_even">
1098
  <td>
1099
  <?php
1100
+ $plugin_shortcode_login_redirect = ((isset ($settings ['plugin_shortcode_login_redirect']) AND in_array ($settings ['plugin_shortcode_login_redirect'], array ('current', 'dashboard', 'homepage', 'custom'))) ? $settings ['plugin_shortcode_login_redirect'] : 'current');
1101
+ $plugin_shortcode_login_redirect_url = (isset ($settings ['plugin_shortcode_login_redirect_url']) ? $settings ['plugin_shortcode_login_redirect_url'] : '');
1102
  ?>
1103
  <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 />
1104
  <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 />
1105
  <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 />
1106
  <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 />
1107
+ <input type="text" name="oa_social_login_settings[plugin_shortcode_login_redirect_url]" size="90" value="<?php echo htmlspecialchars ($plugin_shortcode_login_redirect_url); ?>" />
1108
  </td>
1109
  </tr>
1110
  <tr class="row_odd">
1115
  <tr class="row_even">
1116
  <td>
1117
  <?php
1118
+ $plugin_shortcode_register_redirect = ((isset ($settings ['plugin_shortcode_register_redirect']) AND in_array ($settings ['plugin_shortcode_register_redirect'], array ('current', 'dashboard', 'homepage', 'custom'))) ? $settings ['plugin_shortcode_register_redirect'] : 'current');
1119
+ $plugin_shortcode_register_redirect_url = (isset ($settings ['plugin_shortcode_register_redirect_url']) ? $settings ['plugin_shortcode_register_redirect_url'] : '');
1120
  ?>
1121
  <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 />
1122
  <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 />
1123
  <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 />
1124
  <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 />
1125
+ <input type="text" name="oa_social_login_settings[plugin_shortcode_register_redirect_url]" size="90" value="<?php echo htmlspecialchars ($plugin_shortcode_register_redirect_url); ?>" />
1126
  </td>
1127
  </tr>
1128
  </table>
1134
  </div>
1135
  </div>
1136
  <?php
1137
+ }
 
includes/communication.php CHANGED
@@ -23,7 +23,7 @@ function oa_social_login_callback ()
23
  $api_resource_url = ($api_connection_use_https ? 'https' : 'http') . '://' . $api_subdomain . '.api.oneall.com/connections/' . $_POST ['connection_token'] . '.json';
24
 
25
  //Get connection details
26
- $result = oa_social_login_do_api_request ($api_connection_handler, $api_resource_url, array ('api_key' => $api_key, 'api_secret' => $api_secret), 15);
27
 
28
  //Parse result
29
  if (is_object ($result) AND property_exists ($result, 'http_code') AND $result->http_code == 200)
@@ -45,7 +45,7 @@ function oa_social_login_callback ()
45
 
46
  //Thumbnail
47
  $user_thumbnail = (!empty ($identity->thumbnailUrl)? trim ($identity->thumbnailUrl) : '');
48
-
49
  //Picture
50
  $user_picture = (!empty ($identity->pictureUrl) ? trim ($identity->pictureUrl): '');
51
 
@@ -113,6 +113,7 @@ function oa_social_login_callback ()
113
  $new_registration = false;
114
 
115
  //Sanitize Login
 
116
  $user_login = sanitize_user ($user_login, true);
117
 
118
  // Get user by token
@@ -142,12 +143,6 @@ function oa_social_login_callback ()
142
  delete_metadata ('user', null, 'oa_social_login_user_token', $user_token, true);
143
  update_user_meta ($user_id, 'oa_social_login_user_token', $user_token);
144
  update_user_meta ($user_id, 'oa_social_login_identity_provider', $user_identity_provider);
145
-
146
- if (!empty ($user_thumbnail))
147
- {
148
- update_user_meta ($user_id, 'oa_social_login_user_thumbnail', $user_thumbnail);
149
- }
150
-
151
  wp_cache_delete ($user_id, 'users');
152
  wp_cache_delete ($user_login, 'userlogins');
153
  }
@@ -216,12 +211,6 @@ function oa_social_login_callback ()
216
  update_user_meta ($user_id, 'oa_social_login_user_token', $user_token);
217
  update_user_meta ($user_id, 'oa_social_login_identity_provider', $user_identity_provider);
218
 
219
- //Store thumbnail
220
- if (!empty ($user_thumbnail))
221
- {
222
- update_user_meta ($user_id, 'oa_social_login_user_thumbnail', $user_thumbnail);
223
- }
224
-
225
  //Email is required
226
  if (!empty ($settings ['plugin_require_email']))
227
  {
@@ -248,6 +237,18 @@ function oa_social_login_callback ()
248
  $user_data = get_userdata ($user_id);
249
  if ($user_data !== false)
250
  {
 
 
 
 
 
 
 
 
 
 
 
 
251
  //Setup Cookie
252
  wp_clear_auth_cookie ();
253
  wp_set_auth_cookie ($user_data->ID, true);
@@ -267,29 +268,38 @@ function oa_social_login_callback ()
267
  //Default redirection
268
  $redirect_to = admin_url ();
269
 
270
- //Redirection customized
271
- if (isset ($settings ['plugin_registration_form_redirect']))
 
 
 
 
 
272
  {
273
- switch (strtolower ($settings ['plugin_registration_form_redirect']))
 
274
  {
275
- //Homepage
276
- case 'homepage':
277
- $redirect_to = home_url ();
278
- break;
 
 
279
 
280
- //Custom
281
- case 'custom':
282
- if (isset ($settings ['plugin_registration_form_redirect_custom_url']) AND strlen (trim ($settings ['plugin_registration_form_redirect_custom_url'])) > 0)
283
- {
284
- $redirect_to = trim ($settings ['plugin_registration_form_redirect_custom_url']);
285
- }
286
- break;
287
 
288
- //Default/Dashboard
289
- default:
290
- case 'dashboard':
291
- $redirect_to = admin_url ();
292
- break;
 
293
  }
294
  }
295
  break;
@@ -389,14 +399,14 @@ function oa_social_login_callback ()
389
  $redirect_to = home_url ();
390
  }
391
 
392
- // File redirect urls
393
  if ($new_registration === true)
394
  {
395
- $redirect_to = apply_filters ('oa_social_login_filter_registration_redirect_url', $redirect_to, '', $user_data);
396
  }
397
  else
398
  {
399
- $redirect_to = apply_filters ('oa_social_login_filter_login_redirect_url', $redirect_to, '', $user_data);
400
  }
401
 
402
  //Use safe redirection
@@ -416,10 +426,11 @@ function oa_social_login_callback ()
416
  }
417
  }
418
 
 
419
  /**
420
  * Send an API request by using the given handler
421
  */
422
- function oa_social_login_do_api_request ($handler, $url, $options = array (), $timeout = 15)
423
  {
424
  //FSOCKOPEN
425
  if ($handler == 'fsockopen')
@@ -455,11 +466,11 @@ function oa_social_login_check_fsockopen ($secure = true)
455
 
456
 
457
  /**
458
- * Check if CURL can be used
459
  */
460
  function oa_social_login_check_curl ($secure = true)
461
  {
462
- if (in_array ('curl', get_loaded_extensions ()) AND function_exists ('curl_exec'))
463
  {
464
  $result = oa_social_login_curl_request (($secure ? 'https' : 'http') . '://www.oneall.com/ping.html');
465
  if (is_object ($result) AND property_exists ($result, 'http_code') AND $result->http_code == 200)
@@ -478,9 +489,9 @@ function oa_social_login_check_curl ($secure = true)
478
 
479
 
480
  /**
481
- * Sends a CURL request
482
  */
483
- function oa_social_login_curl_request ($url, $options = array (), $timeout = 10)
484
  {
485
  //Store the result
486
  $result = new stdClass ();
@@ -522,14 +533,14 @@ function oa_social_login_curl_request ($url, $options = array (), $timeout = 10)
522
 
523
 
524
  /**
525
- * Sends an fsockopen request
526
  */
527
  function oa_social_login_fsockopen_request ($url, $options = array (), $timeout = 15)
528
  {
529
  //Store the result
530
  $result = new stdClass ();
531
 
532
- //Make that this is a valid URL
533
  if (($uri = parse_url ($url)) == false)
534
  {
535
  $result->http_code = -1;
@@ -538,7 +549,7 @@ function oa_social_login_fsockopen_request ($url, $options = array (), $timeout
538
  return $result;
539
  }
540
 
541
- //Make sure we can handle the schema
542
  switch ($uri ['scheme'])
543
  {
544
  case 'http':
@@ -561,7 +572,7 @@ function oa_social_login_fsockopen_request ($url, $options = array (), $timeout
561
  break;
562
  }
563
 
564
- //Make sure the socket opened properly
565
  if (!$fp)
566
  {
567
  $result->http_code = -$errno;
@@ -583,7 +594,7 @@ function oa_social_login_fsockopen_request ($url, $options = array (), $timeout
583
  'User-Agent' => 'User-Agent: SocialLogin ' . OA_SOCIAL_LOGIN_VERSION . 'WP (+http://www.oneall.com/)'
584
  );
585
 
586
- // BASIC AUTH?
587
  if (isset ($options ['api_key']) AND isset ($options ['api_secret']))
588
  {
589
  $defaults ['Authorization'] = 'Authorization: Basic ' . base64_encode ($options ['api_key'] . ":" . $options ['api_secret']);
23
  $api_resource_url = ($api_connection_use_https ? 'https' : 'http') . '://' . $api_subdomain . '.api.oneall.com/connections/' . $_POST ['connection_token'] . '.json';
24
 
25
  //Get connection details
26
+ $result = oa_social_login_do_api_request ($api_connection_handler, $api_resource_url, array ('api_key' => $api_key, 'api_secret' => $api_secret));
27
 
28
  //Parse result
29
  if (is_object ($result) AND property_exists ($result, 'http_code') AND $result->http_code == 200)
45
 
46
  //Thumbnail
47
  $user_thumbnail = (!empty ($identity->thumbnailUrl)? trim ($identity->thumbnailUrl) : '');
48
+
49
  //Picture
50
  $user_picture = (!empty ($identity->pictureUrl) ? trim ($identity->pictureUrl): '');
51
 
113
  $new_registration = false;
114
 
115
  //Sanitize Login
116
+ $user_login = str_replace('.','-', $user_login);
117
  $user_login = sanitize_user ($user_login, true);
118
 
119
  // Get user by token
143
  delete_metadata ('user', null, 'oa_social_login_user_token', $user_token, true);
144
  update_user_meta ($user_id, 'oa_social_login_user_token', $user_token);
145
  update_user_meta ($user_id, 'oa_social_login_identity_provider', $user_identity_provider);
 
 
 
 
 
 
146
  wp_cache_delete ($user_id, 'users');
147
  wp_cache_delete ($user_login, 'userlogins');
148
  }
211
  update_user_meta ($user_id, 'oa_social_login_user_token', $user_token);
212
  update_user_meta ($user_id, 'oa_social_login_identity_provider', $user_identity_provider);
213
 
 
 
 
 
 
 
214
  //Email is required
215
  if (!empty ($settings ['plugin_require_email']))
216
  {
237
  $user_data = get_userdata ($user_id);
238
  if ($user_data !== false)
239
  {
240
+ //Update user thumbnail
241
+ if (!empty ($user_thumbnail))
242
+ {
243
+ update_user_meta ($user_id, 'oa_social_login_user_thumbnail', $user_thumbnail);
244
+ }
245
+
246
+ //Update user picture
247
+ if (!empty ($user_picture))
248
+ {
249
+ update_user_meta ($user_id, 'oa_social_login_user_picture', $user_picture);
250
+ }
251
+
252
  //Setup Cookie
253
  wp_clear_auth_cookie ();
254
  wp_set_auth_cookie ($user_data->ID, true);
268
  //Default redirection
269
  $redirect_to = admin_url ();
270
 
271
+ //Redirection in URL
272
+ if (!empty ($_GET ['redirect_to']))
273
+ {
274
+ $redirect_to = $_GET ['redirect_to'];
275
+ $redirect_to_safe = true;
276
+ }
277
+ else
278
  {
279
+ //Redirection customized
280
+ if (isset ($settings ['plugin_registration_form_redirect']))
281
  {
282
+ switch (strtolower ($settings ['plugin_registration_form_redirect']))
283
+ {
284
+ //Homepage
285
+ case 'homepage':
286
+ $redirect_to = home_url ();
287
+ break;
288
 
289
+ //Custom
290
+ case 'custom':
291
+ if (isset ($settings ['plugin_registration_form_redirect_custom_url']) AND strlen (trim ($settings ['plugin_registration_form_redirect_custom_url'])) > 0)
292
+ {
293
+ $redirect_to = trim ($settings ['plugin_registration_form_redirect_custom_url']);
294
+ }
295
+ break;
296
 
297
+ //Default/Dashboard
298
+ default:
299
+ case 'dashboard':
300
+ $redirect_to = admin_url ();
301
+ break;
302
+ }
303
  }
304
  }
305
  break;
399
  $redirect_to = home_url ();
400
  }
401
 
402
+ //Filter for redirection urls
403
  if ($new_registration === true)
404
  {
405
+ $redirect_to = apply_filters ('oa_social_login_filter_registration_redirect_url', $redirect_to, $user_data);
406
  }
407
  else
408
  {
409
+ $redirect_to = apply_filters ('oa_social_login_filter_login_redirect_url', $redirect_to, $user_data);
410
  }
411
 
412
  //Use safe redirection
426
  }
427
  }
428
 
429
+
430
  /**
431
  * Send an API request by using the given handler
432
  */
433
+ function oa_social_login_do_api_request ($handler, $url, $options = array (), $timeout = 25)
434
  {
435
  //FSOCKOPEN
436
  if ($handler == 'fsockopen')
466
 
467
 
468
  /**
469
+ * Checks if CURL can be used
470
  */
471
  function oa_social_login_check_curl ($secure = true)
472
  {
473
+ if (in_array ('curl', get_loaded_extensions ()) AND function_exists ('curl_init'))
474
  {
475
  $result = oa_social_login_curl_request (($secure ? 'https' : 'http') . '://www.oneall.com/ping.html');
476
  if (is_object ($result) AND property_exists ($result, 'http_code') AND $result->http_code == 200)
489
 
490
 
491
  /**
492
+ * Sends a CURL request.
493
  */
494
+ function oa_social_login_curl_request ($url, $options = array (), $timeout = 15)
495
  {
496
  //Store the result
497
  $result = new stdClass ();
533
 
534
 
535
  /**
536
+ * Sends an fsockopen request.
537
  */
538
  function oa_social_login_fsockopen_request ($url, $options = array (), $timeout = 15)
539
  {
540
  //Store the result
541
  $result = new stdClass ();
542
 
543
+ //Make sure that this is a valid URL
544
  if (($uri = parse_url ($url)) == false)
545
  {
546
  $result->http_code = -1;
549
  return $result;
550
  }
551
 
552
+ //Make sure that we can handle the scheme
553
  switch ($uri ['scheme'])
554
  {
555
  case 'http':
572
  break;
573
  }
574
 
575
+ //Make sure that the socket has been opened properly
576
  if (!$fp)
577
  {
578
  $result->http_code = -$errno;
594
  'User-Agent' => 'User-Agent: SocialLogin ' . OA_SOCIAL_LOGIN_VERSION . 'WP (+http://www.oneall.com/)'
595
  );
596
 
597
+ //Enable basic authentication
598
  if (isset ($options ['api_key']) AND isset ($options ['api_secret']))
599
  {
600
  $defaults ['Authorization'] = 'Authorization: Basic ' . base64_encode ($options ['api_key'] . ":" . $options ['api_secret']);
includes/settings.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /**
4
- * Providers that are currently enabled
5
  */
6
  $oa_social_login_providers = array (
7
  'facebook' => array (
1
  <?php
2
 
3
  /**
4
+ * Available Providers
5
  */
6
  $oa_social_login_providers = array (
7
  'facebook' => array (
includes/toolbox.php CHANGED
@@ -10,7 +10,7 @@ function oa_social_login_init ()
10
  {
11
  load_plugin_textdomain ('oa_social_login', false, OA_SOCIAL_LOGIN_BASE_PATH . '/languages/');
12
  }
13
-
14
  //Callback Handler
15
  oa_social_login_callback ();
16
  }
@@ -25,7 +25,7 @@ function oa_social_login_add_site_css ()
25
  {
26
  wp_register_style ('oa_social_login_site_css', OA_SOCIAL_LOGIN_PLUGIN_URL . "/assets/css/site.css");
27
  }
28
-
29
  if (did_action ('wp_print_styles'))
30
  {
31
  wp_print_styles ('oa_social_login_site_css');
@@ -49,7 +49,7 @@ function oa_social_login_https_on ()
49
  return true;
50
  }
51
  }
52
-
53
  if (!empty ($_SERVER ['HTTP_X_FORWARDED_PROTO']))
54
  {
55
  if (strtolower (trim ($_SERVER ['HTTP_X_FORWARDED_PROTO'])) == 'https')
@@ -57,7 +57,7 @@ function oa_social_login_https_on ()
57
  return true;
58
  }
59
  }
60
-
61
  if (!empty ($_SERVER ['HTTPS']))
62
  {
63
  if (strtolower (trim ($_SERVER ['HTTPS'])) == 'on' OR trim ($_SERVER ['HTTPS']) == '1')
@@ -65,7 +65,7 @@ function oa_social_login_https_on ()
65
  return true;
66
  }
67
  }
68
-
69
  return false;
70
  }
71
 
@@ -78,15 +78,15 @@ function oa_social_login_user_notification ($user_id, $user_identity_provider)
78
  //Get the user details
79
  $user = new WP_User ($user_id);
80
  $user_login = stripslashes ($user->user_login);
81
-
82
  //The blogname option is escaped with esc_html on the way into the database
83
  $blogname = wp_specialchars_decode (get_option ('blogname'), ENT_QUOTES);
84
-
85
  //Setup Message
86
  $message = sprintf (__ ('New user registration on your site %s:', 'oa_social_login'), $blogname) . "\r\n\r\n";
87
  $message .= sprintf (__ ('Username: %s', 'oa_social_login'), $user_login) . "\r\n\r\n";
88
  $message .= sprintf (__ ('Social Network: %s', 'oa_social_login'), $user_identity_provider) . "\r\n";
89
-
90
  //Send Message
91
  @wp_mail (get_option ('admin_email'), '[Social Login] ' . sprintf (__ ('[%s] New User Registration', 'oa_social_login'), $blogname), $message);
92
  }
@@ -102,24 +102,24 @@ function oa_social_login_get_current_url ()
102
  $request_port = ((!empty ($_SERVER ['SERVER_PORT']) AND $_SERVER ['SERVER_PORT'] <> '80') ? (":" . $_SERVER ['SERVER_PORT']) : '');
103
  $request_protocol = (oa_social_login_https_on () ? 'https' : 'http') . "://";
104
  $redirect_to = $request_protocol . $_SERVER ['SERVER_NAME'] . $request_port . $request_uri;
105
-
106
  //Remove the oa_social_login_source argument
107
  if (strpos ($redirect_to, 'oa_social_login_source') !== false)
108
  {
109
  //Break up url
110
  list($url_part, $query_part) = array_pad (explode ('?', $redirect_to), 2, '');
111
  parse_str ($query_part, $query_vars);
112
-
113
  //Remove oa_social_login_source argument
114
  if (is_array ($query_vars) AND isset ($query_vars ['oa_social_login_source']))
115
  {
116
  unset ($query_vars ['oa_social_login_source']);
117
  }
118
-
119
  //Build new url
120
  $redirect_to = $url_part . ((is_array ($query_vars) AND count ($query_vars) > 0) ? ('?' . http_build_query ($query_vars)) : '');
121
  }
122
-
123
  return $redirect_to;
124
  }
125
 
10
  {
11
  load_plugin_textdomain ('oa_social_login', false, OA_SOCIAL_LOGIN_BASE_PATH . '/languages/');
12
  }
13
+
14
  //Callback Handler
15
  oa_social_login_callback ();
16
  }
25
  {
26
  wp_register_style ('oa_social_login_site_css', OA_SOCIAL_LOGIN_PLUGIN_URL . "/assets/css/site.css");
27
  }
28
+
29
  if (did_action ('wp_print_styles'))
30
  {
31
  wp_print_styles ('oa_social_login_site_css');
49
  return true;
50
  }
51
  }
52
+
53
  if (!empty ($_SERVER ['HTTP_X_FORWARDED_PROTO']))
54
  {
55
  if (strtolower (trim ($_SERVER ['HTTP_X_FORWARDED_PROTO'])) == 'https')
57
  return true;
58
  }
59
  }
60
+
61
  if (!empty ($_SERVER ['HTTPS']))
62
  {
63
  if (strtolower (trim ($_SERVER ['HTTPS'])) == 'on' OR trim ($_SERVER ['HTTPS']) == '1')
65
  return true;
66
  }
67
  }
68
+
69
  return false;
70
  }
71
 
78
  //Get the user details
79
  $user = new WP_User ($user_id);
80
  $user_login = stripslashes ($user->user_login);
81
+
82
  //The blogname option is escaped with esc_html on the way into the database
83
  $blogname = wp_specialchars_decode (get_option ('blogname'), ENT_QUOTES);
84
+
85
  //Setup Message
86
  $message = sprintf (__ ('New user registration on your site %s:', 'oa_social_login'), $blogname) . "\r\n\r\n";
87
  $message .= sprintf (__ ('Username: %s', 'oa_social_login'), $user_login) . "\r\n\r\n";
88
  $message .= sprintf (__ ('Social Network: %s', 'oa_social_login'), $user_identity_provider) . "\r\n";
89
+
90
  //Send Message
91
  @wp_mail (get_option ('admin_email'), '[Social Login] ' . sprintf (__ ('[%s] New User Registration', 'oa_social_login'), $blogname), $message);
92
  }
102
  $request_port = ((!empty ($_SERVER ['SERVER_PORT']) AND $_SERVER ['SERVER_PORT'] <> '80') ? (":" . $_SERVER ['SERVER_PORT']) : '');
103
  $request_protocol = (oa_social_login_https_on () ? 'https' : 'http') . "://";
104
  $redirect_to = $request_protocol . $_SERVER ['SERVER_NAME'] . $request_port . $request_uri;
105
+
106
  //Remove the oa_social_login_source argument
107
  if (strpos ($redirect_to, 'oa_social_login_source') !== false)
108
  {
109
  //Break up url
110
  list($url_part, $query_part) = array_pad (explode ('?', $redirect_to), 2, '');
111
  parse_str ($query_part, $query_vars);
112
+
113
  //Remove oa_social_login_source argument
114
  if (is_array ($query_vars) AND isset ($query_vars ['oa_social_login_source']))
115
  {
116
  unset ($query_vars ['oa_social_login_source']);
117
  }
118
+
119
  //Build new url
120
  $redirect_to = $url_part . ((is_array ($query_vars) AND count ($query_vars) > 0) ? ('?' . http_build_query ($query_vars)) : '');
121
  }
122
+
123
  return $redirect_to;
124
  }
125
 
includes/user_interface.php CHANGED
@@ -1,5 +1,5 @@
1
- <?php
2
-
3
  /**
4
  * Include the Social Library
5
  */
@@ -18,6 +18,7 @@ function oa_social_login_add_javascripts ()
18
  }
19
  wp_print_scripts ('oa_social_library');
20
  }
 
21
  //This is for Social Login
22
  add_action ('login_head', 'oa_social_login_add_javascripts');
23
  add_action ('wp_head', 'oa_social_login_add_javascripts');
@@ -25,13 +26,22 @@ add_action ('wp_head', 'oa_social_login_add_javascripts');
25
  //This is for Social Link
26
  add_action ('show_user_profile', 'oa_social_login_add_javascripts');
27
 
 
 
 
 
 
 
28
 
29
  /**
30
- * Add Social Link to the user profile
31
- */
32
- function oa_social_login_add_social_link ($user)
33
  {
34
- if (!empty ($user->data->ID))
 
 
 
35
  {
36
  //Only show if the user is viewing his own profile
37
  if ($user->data->ID == get_current_user_id ())
@@ -90,10 +100,7 @@ function oa_social_login_add_social_link ($user)
90
  $api_resource_url = ($api_connection_use_https ? 'https' : 'http') . '://' . $api_subdomain . '.api.oneall.com/connections/' . $_POST ['connection_token'] . '.json';
91
 
92
  //Get connection details
93
- $result = oa_social_login_do_api_request ($api_connection_handler, $api_resource_url, array (
94
- 'api_key' => $api_key,
95
- 'api_secret' => $api_secret
96
- ), 15);
97
 
98
  //Parse result
99
  if (is_object ($result) AND property_exists ($result, 'http_code') AND property_exists ($result, 'http_data') AND $result->http_code == 200)
@@ -266,558 +273,614 @@ function oa_social_login_add_social_link ($user)
266
  $rand = mt_rand (99999, 9999999);
267
 
268
  //Callback URI
269
- $callback_uri = oa_social_login_get_current_url () . '?oa_social_login_source=profile#oa_social_link';
270
-
271
- //Setup output
272
- $output = array ();
273
- $output [] = '<div class="oneall_social_link">';
274
- $output [] = ' <div class="oneall_social_login_providers" id="oneall_social_login_providers_' . $rand . '"></div>';
275
- $output [] = ' <script type="text/javascript">';
276
- $output [] = ' oneall.api.plugins.social_link.build("oneall_social_login_providers_' . $rand . '", {';
277
- $output [] = ' "providers": ["' . implode ('","', $api_providers) . '"], ';
278
- $output [] = ' "user_token": "' . $token . '", ';
279
- $output [] = ' "callback_uri": "' . $callback_uri . '", ';
280
- $output [] = ' });';
281
- $output [] = ' </script>';
282
- $output [] = '</div>';
283
- $output = implode ("\n", $output);
 
 
 
 
 
 
 
 
284
  }
 
 
 
 
 
 
285
 
286
- //Display profile fields
287
- ?>
288
- <h3 id="oa_social_link"><?php _e ('Connect your account to one or more social networks', 'oa_social_login'); ?></h3>
289
- <table class="form-table">
290
- <?php
291
- if (!empty ($success_message))
292
- {
293
- ?>
294
- <tr>
295
- <td colspan="2">
296
- <span style="color:green;font-weight:bold"><?php echo $success_message; ?></span>
297
- </td>
298
- </tr>
299
- <?php
300
- }
301
 
302
- if (!empty ($error_message))
303
- {
304
- ?>
305
- <tr>
306
- <td colspan="2">
307
- <span style="color:red;font-weight:bold"><?php echo $error_message; ?></span>
308
- </td>
309
- </tr>
310
- <?php
311
- }
312
- ?>
313
- <tr>
314
- <th><label for="oa_social_login_networks"><?php _e ('Social Networks', 'oa_social_login'); ?></label></th>
315
- <td><?php echo $output; ?></td>
316
- </tr>
317
- </table>
318
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
319
  }
320
  }
321
  }
322
  }
323
- }
324
- add_action ('show_user_profile', 'oa_social_login_add_social_link');
325
-
326
-
327
- /**
328
- * Setup Shortcode handler
329
- */
330
- function oa_social_login_shortcode_handler ($args)
331
- {
332
- return (is_user_logged_in () ? '' : oa_social_login_render_login_form ('shortcode'));
333
- }
334
- add_shortcode ('oa_social_login', 'oa_social_login_shortcode_handler');
335
-
336
-
337
- /**
338
- * Hook to display custom avatars (Buddypress specific)
339
- */
340
- function oa_social_login_bp_custom_fetch_avatar ($text, $args)
341
- {
342
- //The social login settings
343
- static $oa_social_login_settings = null;
344
- if (is_null ($oa_social_login_settings))
345
- {
346
- $oa_social_login_settings = get_option ('oa_social_login_settings');
347
- }
348
-
349
- //Check if avatars are enabled
350
- if (isset ($oa_social_login_settings ['plugin_show_avatars_in_comments']) AND $oa_social_login_settings ['plugin_show_avatars_in_comments'] == '1')
351
- {
352
- //Check arguments
353
- if (is_array ($args))
354
- {
355
- //User Object
356
- if (!empty ($args ['object']) AND strtolower ($args ['object']) == 'user')
357
- {
358
- //User Identifier
359
- if (!empty ($args ['item_id']) AND is_numeric ($args ['item_id']))
360
- {
361
- //Retrieve user
362
- if (($user_data = get_userdata ($args ['item_id'])) !== false)
363
- {
364
- //Retrieve Avatar
365
- if (($user_thumbnail = get_user_meta ($args ['item_id'], 'oa_social_login_user_thumbnail', true)) !== false)
366
- {
367
- //Thumbnail retrieved
368
- if (strlen (trim ($user_thumbnail)) > 0)
369
- {
370
- //Build Image tags
371
- $img_alt = (!empty ($args ['alt']) ? 'alt="' . oa_social_login_esc_attr ($args ['alt']) . '" ' : '');
372
- $img_alt = sprintf ($img_alt, htmlspecialchars ($user_data->user_login));
373
-
374
- $img_class = ('class="' . (!empty ($args ['class']) ? ($args ['class'] . ' ') : '') . 'avatar-social-login" ');
375
- $img_width = (!empty ($args ['width']) ? 'width="' . $args ['width'] . '" ' : '');
376
- $img_height = (!empty ($args ['height']) ? 'height="' . $args ['height'] . '" ' : '');
377
-
378
- //Replace
379
- $text = preg_replace ('#<img[^>]+>#i', '<img data-social-login="bp-d1" src="' . $user_thumbnail . '" ' . $img_alt . $img_class . $img_height . $img_width . '/>', $text);
380
- }
381
- }
382
- }
383
- }
384
- }
385
- }
386
- }
387
- return $text;
388
- }
389
- add_filter ('bp_core_fetch_avatar', 'oa_social_login_bp_custom_fetch_avatar', 10, 2);
390
-
391
-
392
- /**
393
- * Hook to display custom avatars
394
- */
395
- function oa_social_login_custom_avatar ($avatar, $mixed, $size, $default, $alt = '')
396
- {
397
- //The social login settings
398
- static $oa_social_login_settings = null;
399
- if (is_null ($oa_social_login_settings))
400
- {
401
- $oa_social_login_settings = get_option ('oa_social_login_settings');
402
- }
403
-
404
- //Check if we are in a comment
405
- if (isset ($oa_social_login_settings ['plugin_show_avatars_in_comments']) AND $oa_social_login_settings ['plugin_show_avatars_in_comments'] == '1')
406
- {
407
- //Current comment
408
- global $comment;
409
-
410
- //Chosen user
411
- $user_id = null;
412
-
413
- //Detection
414
- $detection = 0;
415
-
416
- //Check if we are in a comment
417
- if (is_object ($comment) AND property_exists ($comment, 'user_id') AND !empty ($comment->user_id))
418
- {
419
- $detection = 1;
420
- $user_id = $comment->user_id;
421
- }
422
- //Check if we have an user identifier
423
- elseif (is_numeric ($mixed))
424
- {
425
- if ($mixed > 0)
426
- {
427
- $detection = 2;
428
- $user_id = $mixed;
429
- }
430
- }
431
- //Check if we have an email
432
- elseif (is_string ($mixed) && ($user = get_user_by ('email', $mixed)))
433
- {
434
- $detection = 3;
435
- $user_id = $user->ID;
436
- }
437
- //Check if we have an user object
438
- else if (is_object ($mixed))
439
- {
440
- if (property_exists ($mixed, 'user_id') AND is_numeric ($mixed->user_id))
441
- {
442
- $detection = 4;
443
- $user_id = $mixed->user_id;
444
- }
445
- }
446
-
447
- //User found?
448
- if (!empty ($user_id))
449
- {
450
- if (($user_thumbnail = get_user_meta ($user_id, 'oa_social_login_user_thumbnail', true)) !== false)
451
- {
452
- if (strlen (trim ($user_thumbnail)) > 0)
453
- {
454
- return '<img alt="' . oa_social_login_esc_attr ($alt) . '" src="' . $user_thumbnail . '" data-social-login="wp-d' . $detection . '" class="avatar avatar-social-login avatar-' . $size . ' photo" height="' . $size . '" width="' . $size . '" />';
455
- }
456
- }
457
- }
458
- }
459
-
460
- //Default
461
- return $avatar;
462
- }
463
- add_filter ('get_avatar', 'oa_social_login_custom_avatar', 10, 5);
464
-
465
-
466
- /**
467
- * Show Social Login below "you must be logged in ..."
468
- */
469
- function oa_social_login_filter_comment_form_defaults ($default_fields)
470
- {
471
- //No need to go further if comments disabled or user loggedin
472
- if (is_array ($default_fields) AND comments_open () AND !is_user_logged_in ())
473
- {
474
- //Read settings
475
- $settings = get_option ('oa_social_login_settings');
476
-
477
- //Display buttons if option not set or disabled
478
- if (!empty ($settings ['plugin_comment_show_if_members_only']))
479
- {
480
- if (!isset ($default_fields ['must_log_in']))
481
- {
482
- $default_fields ['must_log_in'] = '';
483
- }
484
- $default_fields ['must_log_in'] .= oa_social_login_render_login_form ('comments');
485
- }
486
- }
487
- return $default_fields;
488
- }
489
- add_filter ('comment_form_defaults', 'oa_social_login_filter_comment_form_defaults');
490
-
491
-
492
- /**
493
- * Display the provider grid for comments
494
- */
495
- function oa_social_login_render_login_form_comments ()
496
- {
497
- //Comments are open and the user is not logged in
498
- if (comments_open () && !is_user_logged_in ())
499
- {
500
- //Read settings
501
- $settings = get_option ('oa_social_login_settings');
502
-
503
- //Display buttons if option not set or not disabled
504
- if (!isset ($settings ['plugin_comment_show']) OR !empty ($settings ['plugin_comment_show']))
505
- {
506
- echo oa_social_login_render_login_form ('comments');
507
- }
508
- }
509
- }
510
- //WordPress Comments
511
- add_action ('comment_form_top', 'oa_social_login_render_login_form_comments');
512
-
513
- //Appthemes Thesis Theme Comments
514
- add_action ('thesis_hook_comment_form_top', 'oa_social_login_render_login_form_comments');
515
-
516
-
517
- /**
518
- * Display the provider grid for registration
519
- */
520
- function oa_social_login_render_login_form_registration ()
521
- {
522
- //Users may register
523
- if (get_option ('users_can_register') === '1')
524
- {
525
- //Read settings
526
- $settings = get_option ('oa_social_login_settings');
527
-
528
- //Display buttons if option not set or enabled
529
- if (!isset ($settings ['plugin_display_in_registration_form']) OR !empty ($settings ['plugin_display_in_registration_form']))
530
- {
531
- echo oa_social_login_render_login_form ('registration');
532
- }
533
- }
534
- }
535
- //WordPress Registration Form
536
- add_action ('register_form', 'oa_social_login_render_login_form_registration');
537
-
538
- //WordPress Signup Form
539
- add_action( 'after_signup_form', 'oa_social_login_render_login_form_registration');
540
-
541
- //BuddyPress Registration
542
- add_action ('bp_before_account_details_fields', 'oa_social_login_render_login_form_registration');
543
-
544
-
545
- /**
546
- * Display the provider grid for login
547
- */
548
- function oa_social_login_render_login_form_login ()
549
- {
550
- //Read settings
551
- $settings = get_option ('oa_social_login_settings');
552
-
553
- //Display buttons only if option not set or enabled
554
- if (!isset ($settings ['plugin_display_in_login_form']) OR $settings ['plugin_display_in_login_form'] == '1')
555
- {
556
- echo oa_social_login_render_login_form ('login');
557
- }
558
- }
559
- //WordPress Registration
560
- add_action ('login_form', 'oa_social_login_render_login_form_login');
561
-
562
- //WordPress Profile Builder
563
- add_action ('wppb_before_login', 'oa_social_login_render_login_form_login');
564
-
565
- //BuddyPress Sidebar
566
- add_action ('bp_before_sidebar_login_form', 'oa_social_login_render_login_form_login');
567
-
568
- //Appthemes Vantage Theme
569
- add_action ('va_after_admin_bar_login_form', 'oa_social_login_render_login_form_login');
570
-
571
-
572
- /**
573
- * Display a custom grid for login
574
- */
575
- function oa_social_login_render_custom_form_login ()
576
- {
577
- if (!is_user_logged_in ())
578
- {
579
- echo oa_social_login_render_login_form ('custom');
580
- }
581
- }
582
- add_action ('oa_social_login', 'oa_social_login_render_custom_form_login');
583
-
584
-
585
- /**
586
- * Alternative for custom forms, where the output is not necessarily required at the place of calling
587
- * $oa_social_login_form = apply_filters('oa_social_login_custom', '');
588
- */
589
- function oa_social_login_filter_login_form_custom ($value = 'custom')
590
- {
591
- return (is_user_logged_in () ? '' : oa_social_login_render_login_form ($value));
592
- }
593
- add_filter ('oa_social_login_custom', 'oa_social_login_filter_login_form_custom');
594
-
595
-
596
- /**
597
- * Display the provider grid
598
- */
599
- function oa_social_login_render_login_form ($source, $args = array ())
600
- {
601
- //Import providers
602
- GLOBAL $oa_social_login_providers;
603
-
604
- //Container for returned value
605
- $output = '';
606
-
607
- //Read settings
608
- $settings = get_option ('oa_social_login_settings');
609
-
610
- //API Subdomain
611
- $api_subdomain = (!empty ($settings ['api_subdomain']) ? $settings ['api_subdomain'] : '');
612
-
613
- //API Subdomain Required
614
- if (!empty ($api_subdomain))
615
- {
616
- //Build providers
617
- $providers = array ();
618
- if (is_array ($settings ['providers']))
619
- {
620
- foreach ($settings ['providers'] AS $settings_provider_key => $settings_provider_name)
621
- {
622
- if (isset ($oa_social_login_providers [$settings_provider_key]))
623
- {
624
- $providers [] = $settings_provider_key;
625
- }
626
- }
627
- }
628
-
629
- //Themes are served from the CDN
630
- $theme_uri_prefix = (oa_social_login_https_on () ? 'https://secure.oneallcdn.com' : 'http://public.oneallcdn.com');
631
-
632
- //Themes
633
- $css_theme_uri_small = $theme_uri_prefix . '/css/api/socialize/themes/wordpress/small.css';
634
- $css_theme_uri_default = $theme_uri_prefix . '/css/api/socialize/themes/wordpress/default.css';
635
-
636
- //Widget
637
- if ($source == 'widget')
638
- {
639
- //Read widget settings
640
- $widget_settings = (is_array ($args) ? $args : array ());
641
-
642
- //Don't show the title - this is handled insided the widget
643
- $plugin_caption = '';
644
-
645
- //Buttons size
646
- $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);
647
-
648
- //Custom CSS
649
- $css_theme_uri = apply_filters ('oa_social_login_widget_css', $css_theme_uri);
650
- }
651
- //Other places
652
- else
653
- {
654
- //Show title if set
655
- $plugin_caption = (!empty ($settings ['plugin_caption']) ? $settings ['plugin_caption'] : '');
656
-
657
- //Buttons size
658
- $css_theme_uri = (!empty ($settings ['plugin_use_small_buttons']) ? $css_theme_uri_small : $css_theme_uri_default);
659
-
660
- //Custom CSS
661
- $css_theme_uri = apply_filters ('oa_social_login_default_css', $css_theme_uri);
662
- }
663
-
664
-
665
- //No providers selected
666
- if (count ($providers) == 0)
667
- {
668
- $output = '<div style="color:white;background-color:red;">[Social Login] ' . __ ('Please enable at least one social network!', 'oa_social_login') . '</div>';
669
- }
670
- //Providers selected
671
- else
672
- {
673
- //Random integer
674
- $rand = mt_rand (99999, 9999999);
675
-
676
- //Setup output
677
- $output = array ();
678
- $output [] = '<div class="oneall_social_login">';
679
-
680
- //Add the caption?
681
- if (!empty ($plugin_caption))
682
- {
683
- $output [] = ' <div class="oneall_social_login_label" style="margin-bottom: 3px;"><label>' . __ ($plugin_caption) . '</label></div>';
684
- }
685
-
686
- //Add the Plugin
687
- $output [] = ' <div class="oneall_social_login_providers" id="oneall_social_login_providers_' . $rand . '"></div>';
688
- $output [] = ' <script type="text/javascript">';
689
- $output [] = ' oneall.api.plugins.social_login.build("oneall_social_login_providers_' . $rand . '", {';
690
- $output [] = ' "providers": ["' . implode ('","', $providers) . '"], ';
691
- //$output [] = ' "same_window": true, ';
692
- $output [] = ' "callback_uri": (window.location.href + ((window.location.href.split(\'?\')[1] ? \'&amp;\':\'?\') + "oa_social_login_source=' . $source . '")), ';
693
- $output [] = ' "css_theme_uri": "' . $css_theme_uri . '" ';
694
- $output [] = ' });';
695
- $output [] = ' </script>';
696
- $output [] = ' <!-- OneAll.com / Social Login for WordPress / v' . constant ('OA_SOCIAL_LOGIN_VERSION') . ' -->';
697
- $output [] = '</div>';
698
-
699
- //Done
700
- $output = implode ("\n", $output);
701
- }
702
-
703
- //Return a string and let the calling function do the actual outputting
704
- return $output;
705
- }
706
- }
707
-
708
-
709
- /**
710
- * Request email from user
711
- */
712
- function oa_social_login_request_email ()
713
- {
714
- //Get the current user
715
- $current_user = wp_get_current_user ();
716
-
717
- //Check if logged in
718
- if (!empty ($current_user->ID) AND is_numeric ($current_user->ID))
719
- {
720
- //Current user
721
- $user_id = $current_user->ID;
722
-
723
- //Check if email has to be requested
724
- $oa_social_login_request_email = get_user_meta ($user_id, 'oa_social_login_request_email', true);
725
- if (!empty ($oa_social_login_request_email))
726
- {
727
- //Display modal dialog?
728
- $display_modal = true;
729
-
730
- //Messaging
731
- $message = '';
732
-
733
- //Form submitted
734
- if (isset ($_POST) AND !empty ($_POST ['oa_social_login_action']) AND $_POST ['oa_social_login_action'] == 'confirm_email')
735
- {
736
- $user_email = (empty ($_POST ['oa_social_login_email']) ? '' : trim ($_POST ['oa_social_login_email']));
737
- if (empty ($user_email))
738
- {
739
- $message = __ ('Please enter your email address', 'oa_social_login');
740
- }
741
- else
742
- {
743
- if (!is_email ($user_email))
744
- {
745
- $message = __ ('This email is not valid', 'oa_social_login');
746
- }
747
- elseif (email_exists ($user_email))
748
- {
749
-
750
- $message = __ ('This email is already used by another account', 'oa_social_login');
751
- }
752
- else
753
- {
754
- wp_update_user (array ('ID' => $user_id, 'user_email' => $user_email));
755
- delete_user_meta ($user_id, 'oa_social_login_request_email');
756
- $display_modal = false;
757
- }
758
- }
759
- }
760
-
761
- //Display modal dialog?
762
- if ($display_modal === true)
763
- {
764
- //Read Settings
765
- $oa_social_login_settings = get_option ('oa_social_login_settings');
766
-
767
- //Read the social network
768
- $oa_social_login_identity_provider = get_user_meta ($user_id, 'oa_social_login_identity_provider', true);
769
-
770
- //Caption
771
- $caption = (isset ($oa_social_login_settings ['plugin_require_email_text']) ? $oa_social_login_settings ['plugin_require_email_text'] : __ ('<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'));
772
-
773
- //Add CSS
774
- oa_social_login_add_site_css ();
775
-
776
- //Show email request form
777
- ?>
778
- <div id="oa_social_login_overlay"></div>
779
- <div id="oa_social_login_modal">
780
- <div class="oa_social_login_modal_outer">
781
- <div class="oa_social_login_modal_inner">
782
- <div class="oa_social_login_modal_title">
783
- <?php
784
- printf (__ ('You have successfully connected with %s!', 'oa_social_login'), '<strong>' . $oa_social_login_identity_provider . '</strong>');
785
- ?>
786
- </div>
787
- <?php
788
- if (strlen (trim ($caption)) > 0)
789
- {
790
- ?>
791
- <div class="oa_social_login_modal_notice"><?php echo str_replace ('%s', $oa_social_login_identity_provider, $caption); ?></div>
792
- <?php
793
- }
794
- ?>
795
- <div class="oa_social_login_modal_body">
796
- <div class="oa_social_login_modal_subtitle">
797
- <?php _e ('Your email address', 'oa_social_login'); ?>:
798
- </div>
799
- <form method="post" action="">
800
- <fieldset>
801
- <div>
802
- <input type="text" name="oa_social_login_email" class="inputtxt" value="<?php echo (!empty ($_POST ['oa_social_login_email']) ? oa_social_login_esc_attr ($_POST ['oa_social_login_email']) : ''); ?>" />
803
- <input type="hidden" name="oa_social_login_action" value="confirm_email" size="30" />
804
- </div>
805
- <div class="oa_social_login_modal_error">
806
- <?php echo $message; ?>
807
- </div>
808
- <div class="oa_social_login_modal_button">
809
- <input type="submit" value="<?php _e ('Confirm my email address', 'oa_social_login'); ?>" class="inputbutton" />
810
- </div>
811
- </fieldset>
812
- </form>
813
- </div>
814
- </div>
815
- </div>
816
- </div>
817
- <?php
818
- }
819
- }
820
- }
821
- }
822
- add_action ('wp_footer', 'oa_social_login_request_email');
823
- add_action ('admin_footer', 'oa_social_login_request_email');
1
+ <?php
2
+
3
  /**
4
  * Include the Social Library
5
  */
18
  }
19
  wp_print_scripts ('oa_social_library');
20
  }
21
+
22
  //This is for Social Login
23
  add_action ('login_head', 'oa_social_login_add_javascripts');
24
  add_action ('wp_head', 'oa_social_login_add_javascripts');
26
  //This is for Social Link
27
  add_action ('show_user_profile', 'oa_social_login_add_javascripts');
28
 
29
+ /**
30
+ * **************************************************************************************************************
31
+ * ************************************************ SOCIAL LINK *************************************************
32
+ * **************************************************************************************************************
33
+ */
34
+
35
 
36
  /**
37
+ * Render the Social Link form for the given user
38
+ */
39
+ function oa_social_login_render_link_form ($source, $user)
40
  {
41
+ //Data returned
42
+ $output = '';
43
+
44
+ if (is_object ($user) AND property_exists ($user, 'data') AND !empty ($user->data->ID))
45
  {
46
  //Only show if the user is viewing his own profile
47
  if ($user->data->ID == get_current_user_id ())
100
  $api_resource_url = ($api_connection_use_https ? 'https' : 'http') . '://' . $api_subdomain . '.api.oneall.com/connections/' . $_POST ['connection_token'] . '.json';
101
 
102
  //Get connection details
103
+ $result = oa_social_login_do_api_request ($api_connection_handler, $api_resource_url, array ('api_key' => $api_key, 'api_secret' => $api_secret), 15);
 
 
 
104
 
105
  //Parse result
106
  if (is_object ($result) AND property_exists ($result, 'http_code') AND property_exists ($result, 'http_data') AND $result->http_code == 200)
273
  $rand = mt_rand (99999, 9999999);
274
 
275
  //Callback URI
276
+ $callback_uri = oa_social_login_get_current_url () . '?oa_social_login_source='.$source.'#oa_social_link';
277
+
278
+ //Setup Social Link
279
+ $social_link = array ();
280
+ $social_link [] = '<div class="oneall_social_link">';
281
+ $social_link [] = ' <div class="oneall_social_login_providers" id="oneall_social_login_providers_' . $rand . '"></div>';
282
+ $social_link [] = ' <script type="text/javascript">';
283
+ $social_link [] = ' oneall.api.plugins.social_link.build("oneall_social_login_providers_' . $rand . '", {';
284
+ $social_link [] = ' "providers": ["' . implode ('","', $api_providers) . '"], ';
285
+ $social_link [] = ' "user_token": "' . $token . '", ';
286
+ $social_link [] = ' "callback_uri": "' . $callback_uri . '", ';
287
+ $social_link [] = ' });';
288
+ $social_link [] = ' </script>';
289
+ $social_link [] = '</div>';
290
+ $social_link = implode ("\n", $social_link);
291
+
292
+ //Setup Output
293
+ $output .= '<h3 id="oa_social_link"> '. __('Connect your account to one or more social networks', 'oa_social_login') .'</h3>';
294
+ $output .= '<table class="form-table">';
295
+ $output .= (empty ($success_message) ? '' : '<tr><td><span style="color:green;font-weight:bold"> '.$success_message. '</span></td></tr>');
296
+ $output .= (empty ($error_message) ? '' : '<tr><td><span style="color:red;font-weight:bold">'. $error_message .'</span></td></tr>');
297
+ $output .= '<tr><td>'. $social_link .'</td></tr>';
298
+ $output .= '</table>';
299
  }
300
+ }
301
+ }
302
+ }
303
+ }
304
+ return $output;
305
+ }
306
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
307
 
308
+ /**
309
+ * Add Social Link to the user's profile
310
+ */
311
+ function oa_social_login_add_social_link ($user)
312
+ {
313
+ echo oa_social_login_render_link_form ('profile', $user);
314
+ }
315
+ add_action ('show_user_profile', 'oa_social_login_add_social_link');
316
+
317
+
318
+ /**
319
+ * Setup Social Link Shortcode handler
320
+ */
321
+ function oa_social_login_link_shortcode_handler ($args)
322
+ {
323
+ if (is_user_logged_in ())
324
+ {
325
+ $user = wp_get_current_user();
326
+ if ( ! empty ($user->data->ID))
327
+ {
328
+ return oa_social_login_render_link_form ('shortcode', $user);
329
+ }
330
+ }
331
+ return '';
332
+ }
333
+ add_shortcode ('oa_social_link', 'oa_social_login_link_shortcode_handler');
334
+
335
+
336
+ /**
337
+ * Setup Social Link Action handler
338
+ */
339
+ function oa_social_login_link_action_handler ()
340
+ {
341
+ //Social Link works only with logged in users
342
+ if (is_user_logged_in ())
343
+ {
344
+ $user = wp_get_current_user();
345
+ if ( is_object ($user) AND ! empty ($user->data->ID))
346
+ {
347
+ echo oa_social_login_render_link_form ('custom', $user);
348
+ }
349
+ }
350
+ }
351
+ add_action ('oa_social_link', 'oa_social_login_link_action_handler');
352
+
353
+
354
+
355
+ /**
356
+ * **************************************************************************************************************
357
+ * ************************************************ SOCIAL LOGIN ************************************************
358
+ * **************************************************************************************************************
359
+ */
360
+
361
+
362
+ /**
363
+ * Setup Social Login Shortcode handler
364
+ */
365
+ function oa_social_login_shortcode_handler ($args)
366
+ {
367
+ if ( ! is_user_logged_in ())
368
+ {
369
+ return oa_social_login_render_login_form ('shortcode');
370
+ }
371
+ return '';
372
+ }
373
+ add_shortcode ('oa_social_login', 'oa_social_login_shortcode_handler');
374
+
375
+
376
+ /**
377
+ * Hook to display custom avatars (Buddypress specific)
378
+ */
379
+ function oa_social_login_bp_custom_fetch_avatar ($text, $args)
380
+ {
381
+ //The social login settings
382
+ static $oa_social_login_avatars = null;
383
+ if (is_null ($oa_social_login_avatars))
384
+ {
385
+ $oa_social_login_settings = get_option ('oa_social_login_settings');
386
+ $oa_social_login_avatars = (isset ($oa_social_login_settings ['plugin_show_avatars_in_comments']) ? $oa_social_login_settings ['plugin_show_avatars_in_comments'] : 0);
387
+ }
388
+
389
+ //Check if avatars are enabled
390
+ if ( ! empty ($oa_social_login_avatars))
391
+ {
392
+ //Check arguments
393
+ if (is_array ($args))
394
+ {
395
+ //User Object
396
+ if (!empty ($args ['object']) AND strtolower ($args ['object']) == 'user')
397
+ {
398
+ //User Identifier
399
+ if (!empty ($args ['item_id']) AND is_numeric ($args ['item_id']))
400
+ {
401
+ //Retrieve user
402
+ if (($user_data = get_userdata ($args ['item_id'])) !== false)
403
+ {
404
+ //Read the avatar
405
+ $user_meta_thumbnail = get_user_meta ($args ['item_id'], 'oa_social_login_user_thumbnail', true);
406
+ $user_meta_picture = get_user_meta ($args ['item_id'], 'oa_social_login_user_picture', true);
407
+
408
+ //Use the picture if possible
409
+ if ($oa_social_login_avatars == 2)
410
+ {
411
+ $user_picture = (! empty ($user_meta_picture) ? $user_meta_picture : $user_meta_thumbnail);
412
+ }
413
+ //Use the thumbnail if possible
414
+ else
415
+ {
416
+ $user_picture = (! empty ($user_meta_thumbnail) ? $user_meta_thumbnail : $user_meta_picture);
417
+ }
418
+
419
+ //Avatar found?
420
+ if ($user_picture !== false AND strlen (trim ($user_picture)) > 0)
421
+ {
422
+ //Build Image tags
423
+ $img_alt = (!empty ($args ['alt']) ? 'alt="' . oa_social_login_esc_attr ($args ['alt']) . '" ' : '');
424
+ $img_alt = sprintf ($img_alt, htmlspecialchars ($user_data->user_login));
425
+ $img_class = ('class="' . (!empty ($args ['class']) ? ($args ['class'] . ' ') : '') . 'avatar-social-login" ');
426
+ $img_width = (!empty ($args ['width']) ? 'width="' . $args ['width'] . '" ' : '');
427
+ $img_height = (!empty ($args ['height']) ? 'height="' . $args ['height'] . '" ' : '');
428
+
429
+ //Replace
430
+ $text = preg_replace ('#<img[^>]+>#i', '<img data-social-login="bp-d1" src="' . $user_picture . '" ' . $img_alt . $img_class . $img_height . $img_width . '/>', $text);
431
+ }
432
+ }
433
  }
434
  }
435
  }
436
  }
437
+ return $text;
438
+ }
439
+ add_filter ('bp_core_fetch_avatar', 'oa_social_login_bp_custom_fetch_avatar', 10, 2);
440
+
441
+
442
+ /**
443
+ * Hook to display custom avatars
444
+ */
445
+ function oa_social_login_custom_avatar ($avatar, $mixed, $size, $default, $alt = '')
446
+ {
447
+ //The social login settings
448
+ static $oa_social_login_avatars = null;
449
+ if (is_null ($oa_social_login_avatars))
450
+ {
451
+ $oa_social_login_settings = get_option ('oa_social_login_settings');
452
+ $oa_social_login_avatars = (isset ($oa_social_login_settings ['plugin_show_avatars_in_comments']) ? $oa_social_login_settings ['plugin_show_avatars_in_comments'] : 0);
453
+ }
454
+
455
+ //Check if social avatars are enabled
456
+ if ( ! empty ($oa_social_login_avatars))
457
+ {
458
+ //Check if we have an user identifier
459
+ if (is_numeric ($mixed) AND $mixed > 0)
460
+ {
461
+ $user_id = $mixed;
462
+ }
463
+ //Check if we have an user email
464
+ elseif (is_string ($mixed) AND ($user = get_user_by ('email', $mixed)))
465
+ {
466
+ $user_id = $user->ID;
467
+ }
468
+ //Check if we have an user object
469
+ elseif (is_object ($mixed) AND property_exists ($mixed, 'user_id') AND is_numeric ($mixed->user_id))
470
+ {
471
+ $user_id = $mixed->user_id;
472
+ }
473
+ //None found
474
+ else
475
+ {
476
+ $user_id = null;
477
+ }
478
+
479
+ //User found?
480
+ if (!empty ($user_id))
481
+ {
482
+ //Read the avatar
483
+ $user_meta_thumbnail = get_user_meta ($user_id, 'oa_social_login_user_thumbnail', true);
484
+ $user_meta_picture = get_user_meta ($user_id, 'oa_social_login_user_picture', true);
485
+
486
+ //Use the picture if possible
487
+ if ($oa_social_login_avatars == 2)
488
+ {
489
+ $user_picture = (! empty ($user_meta_picture) ? $user_meta_picture : $user_meta_thumbnail);
490
+ }
491
+ //Use the thumbnail if possible
492
+ else
493
+ {
494
+ $user_picture = (! empty ($user_meta_thumbnail) ? $user_meta_thumbnail : $user_meta_picture);
495
+ }
496
+
497
+ //Avatar found?
498
+ if ($user_picture !== false AND strlen (trim ($user_picture)) > 0)
499
+ {
500
+ return '<img alt="' . oa_social_login_esc_attr ($alt) . '" src="' . $user_picture . '" class="avatar avatar-social-login avatar-' . $size . ' photo" height="' . $size . '" width="' . $size . '" />';
501
+ }
502
+ }
503
+ }
504
+
505
+ //Default
506
+ return $avatar;
507
+ }
508
+ add_filter ('get_avatar', 'oa_social_login_custom_avatar', 10, 5);
509
+
510
+
511
+ /**
512
+ * Show Social Login below "you must be logged in ..."
513
+ */
514
+ function oa_social_login_filter_comment_form_defaults ($default_fields)
515
+ {
516
+ //No need to go further if comments disabled or user loggedin
517
+ if (is_array ($default_fields) AND comments_open () AND !is_user_logged_in ())
518
+ {
519
+ //Read settings
520
+ $settings = get_option ('oa_social_login_settings');
521
+
522
+ //Display buttons if option not set or disabled
523
+ if (!empty ($settings ['plugin_comment_show_if_members_only']))
524
+ {
525
+ if (!isset ($default_fields ['must_log_in']))
526
+ {
527
+ $default_fields ['must_log_in'] = '';
528
+ }
529
+ $default_fields ['must_log_in'] .= oa_social_login_render_login_form ('comments');
530
+ }
531
+ }
532
+ return $default_fields;
533
+ }
534
+ add_filter ('comment_form_defaults', 'oa_social_login_filter_comment_form_defaults');
535
+
536
+
537
+ /**
538
+ * Display the provider grid for comments
539
+ */
540
+ function oa_social_login_render_login_form_comments ()
541
+ {
542
+ //Comments are open and the user is not logged in
543
+ if (comments_open () && !is_user_logged_in ())
544
+ {
545
+ //Read settings
546
+ $settings = get_option ('oa_social_login_settings');
547
+
548
+ //Display buttons if option not set or not disabled
549
+ if (!isset ($settings ['plugin_comment_show']) OR !empty ($settings ['plugin_comment_show']))
550
+ {
551
+ echo oa_social_login_render_login_form ('comments');
552
+ }
553
+ }
554
+ }
555
+ //WordPress Comments
556
+ add_action ('comment_form_top', 'oa_social_login_render_login_form_comments');
557
+
558
+ //Appthemes Thesis Theme Comments
559
+ add_action ('thesis_hook_comment_form_top', 'oa_social_login_render_login_form_comments');
560
+
561
+
562
+ /**
563
+ * Display the provider grid for registration
564
+ */
565
+ function oa_social_login_render_login_form_registration ()
566
+ {
567
+ //Users may register
568
+ if (get_option ('users_can_register') === '1')
569
+ {
570
+ //Read settings
571
+ $settings = get_option ('oa_social_login_settings');
572
+
573
+ //Display buttons if option not set or enabled
574
+ if (!isset ($settings ['plugin_display_in_registration_form']) OR !empty ($settings ['plugin_display_in_registration_form']))
575
+ {
576
+ echo oa_social_login_render_login_form ('registration');
577
+ }
578
+ }
579
+ }
580
+ //WordPress Registration Form
581
+ add_action ('register_form', 'oa_social_login_render_login_form_registration');
582
+
583
+ //WordPress Signup Form
584
+ add_action( 'after_signup_form', 'oa_social_login_render_login_form_registration');
585
+
586
+ //BuddyPress Registration
587
+ add_action ('bp_before_account_details_fields', 'oa_social_login_render_login_form_registration');
588
+
589
+
590
+ /**
591
+ * Display the provider grid for login
592
+ */
593
+ function oa_social_login_render_login_form_login ()
594
+ {
595
+ //Read settings
596
+ $settings = get_option ('oa_social_login_settings');
597
+
598
+ //Display buttons only if option not set or enabled
599
+ if (!isset ($settings ['plugin_display_in_login_form']) OR $settings ['plugin_display_in_login_form'] == '1')
600
+ {
601
+ echo oa_social_login_render_login_form ('login');
602
+ }
603
+ }
604
+ //WordPress Registration
605
+ add_action ('login_form', 'oa_social_login_render_login_form_login');
606
+
607
+ //WordPress Profile Builder
608
+ add_action ('wppb_before_login', 'oa_social_login_render_login_form_login');
609
+
610
+ //BuddyPress Sidebar
611
+ add_action ('bp_before_sidebar_login_form', 'oa_social_login_render_login_form_login');
612
+
613
+ //Appthemes Vantage Theme
614
+ add_action ('va_after_admin_bar_login_form', 'oa_social_login_render_login_form_login');
615
+
616
+
617
+ /**
618
+ * Display a custom grid for login
619
+ */
620
+ function oa_social_login_render_custom_form_login ()
621
+ {
622
+ if (!is_user_logged_in ())
623
+ {
624
+ echo oa_social_login_render_login_form ('custom');
625
+ }
626
+ }
627
+ add_action ('oa_social_login', 'oa_social_login_render_custom_form_login');
628
+
629
+
630
+ /**
631
+ * Alternative for custom forms, where the output is not necessarily required at the place of calling
632
+ * $oa_social_login_form = apply_filters('oa_social_login_custom', '');
633
+ */
634
+ function oa_social_login_filter_login_form_custom ($value = 'custom')
635
+ {
636
+ return (is_user_logged_in () ? '' : oa_social_login_render_login_form ($value));
637
+ }
638
+ add_filter ('oa_social_login_custom', 'oa_social_login_filter_login_form_custom');
639
+
640
+
641
+ /**
642
+ * Display the provider grid
643
+ */
644
+ function oa_social_login_render_login_form ($source, $args = array ())
645
+ {
646
+ //Import providers
647
+ GLOBAL $oa_social_login_providers;
648
+
649
+ //Container for returned value
650
+ $output = '';
651
+
652
+ //Read settings
653
+ $settings = get_option ('oa_social_login_settings');
654
+
655
+ //API Subdomain
656
+ $api_subdomain = (!empty ($settings ['api_subdomain']) ? $settings ['api_subdomain'] : '');
657
+
658
+ //API Subdomain Required
659
+ if (!empty ($api_subdomain))
660
+ {
661
+ //Build providers
662
+ $providers = array ();
663
+ if (is_array ($settings ['providers']))
664
+ {
665
+ foreach ($settings ['providers'] AS $settings_provider_key => $settings_provider_name)
666
+ {
667
+ if (isset ($oa_social_login_providers [$settings_provider_key]))
668
+ {
669
+ $providers [] = $settings_provider_key;
670
+ }
671
+ }
672
+ }
673
+
674
+ //Themes are served from the CDN
675
+ $theme_uri_prefix = (oa_social_login_https_on () ? 'https://secure.oneallcdn.com' : 'http://public.oneallcdn.com');
676
+
677
+ //Themes
678
+ $css_theme_uri_small = $theme_uri_prefix . '/css/api/socialize/themes/wordpress/small.css';
679
+ $css_theme_uri_default = $theme_uri_prefix . '/css/api/socialize/themes/wordpress/default.css';
680
+
681
+ //Widget
682
+ if ($source == 'widget')
683
+ {
684
+ //Read widget settings
685
+ $widget_settings = (is_array ($args) ? $args : array ());
686
+
687
+ //Don't show the title - this is handled insided the widget
688
+ $plugin_caption = '';
689
+
690
+ //Buttons size
691
+ $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);
692
+
693
+ //Custom CSS
694
+ $css_theme_uri = apply_filters ('oa_social_login_widget_css', $css_theme_uri);
695
+ }
696
+ //Other places
697
+ else
698
+ {
699
+ //Show title if set
700
+ $plugin_caption = (!empty ($settings ['plugin_caption']) ? $settings ['plugin_caption'] : '');
701
+
702
+ //Buttons size
703
+ $css_theme_uri = (!empty ($settings ['plugin_use_small_buttons']) ? $css_theme_uri_small : $css_theme_uri_default);
704
+
705
+ //Custom CSS
706
+ $css_theme_uri = apply_filters ('oa_social_login_default_css', $css_theme_uri);
707
+ }
708
+
709
+
710
+ //No providers selected
711
+ if (count ($providers) == 0)
712
+ {
713
+ $output = '<div style="color:white;background-color:red;">[Social Login] ' . __ ('Please enable at least one social network!', 'oa_social_login') . '</div>';
714
+ }
715
+ //Providers selected
716
+ else
717
+ {
718
+ //Random integer
719
+ $rand = mt_rand (99999, 9999999);
720
+
721
+ //Setup output
722
+ $output = array ();
723
+ $output [] = '<div class="oneall_social_login">';
724
+
725
+ //Add the caption?
726
+ if (!empty ($plugin_caption))
727
+ {
728
+ $output [] = ' <div class="oneall_social_login_label" style="margin-bottom: 3px;"><label>' . __ ($plugin_caption) . '</label></div>';
729
+ }
730
+
731
+ //Add the Plugin
732
+ $output [] = ' <div class="oneall_social_login_providers" id="oneall_social_login_providers_' . $rand . '"></div>';
733
+ $output [] = ' <script type="text/javascript">';
734
+ $output [] = ' oneall.api.plugins.social_login.build("oneall_social_login_providers_' . $rand . '", {';
735
+ $output [] = ' "providers": ["' . implode ('","', $providers) . '"], ';
736
+ //$output [] = ' "same_window": true, ';
737
+ $output [] = ' "callback_uri": (window.location.href + ((window.location.href.split(\'?\')[1] ? \'&amp;\':\'?\') + "oa_social_login_source=' . $source . '")), ';
738
+ $output [] = ' "css_theme_uri": "' . $css_theme_uri . '" ';
739
+ $output [] = ' });';
740
+ $output [] = ' </script>';
741
+ $output [] = ' <!-- OneAll.com / Social Login for WordPress / v' . constant ('OA_SOCIAL_LOGIN_VERSION') . ' -->';
742
+ $output [] = '</div>';
743
+
744
+ //Done
745
+ $output = implode ("\n", $output);
746
+ }
747
+
748
+ //Return a string and let the calling function do the actual outputting
749
+ return $output;
750
+ }
751
+ }
752
+
753
+
754
+ /**
755
+ * Request email from user
756
+ */
757
+ function oa_social_login_request_email ()
758
+ {
759
+ //Get the current user
760
+ $current_user = wp_get_current_user ();
761
+
762
+ //Check if logged in
763
+ if (!empty ($current_user->ID) AND is_numeric ($current_user->ID))
764
+ {
765
+ //Current user
766
+ $user_id = $current_user->ID;
767
+
768
+ //Check if email has to be requested
769
+ $oa_social_login_request_email = get_user_meta ($user_id, 'oa_social_login_request_email', true);
770
+ if (!empty ($oa_social_login_request_email))
771
+ {
772
+ //Display modal dialog?
773
+ $display_modal = true;
774
+
775
+ //Messaging
776
+ $message = '';
777
+
778
+ //Read settings
779
+ $settings = get_option ('oa_social_login_settings');
780
+
781
+ //Make sure that the email is still required
782
+ if (empty ($settings ['plugin_require_email']))
783
+ {
784
+ //Do not display the modal dialog
785
+ $display_modal = false;
786
+
787
+ //Stop asking for the email
788
+ delete_user_meta ($user_id, 'oa_social_login_request_email');
789
+ }
790
+
791
+ //Form submitted
792
+ if (isset ($_POST) AND !empty ($_POST ['oa_social_login_action']))
793
+ {
794
+ if ($_POST ['oa_social_login_action'] == 'confirm_email')
795
+ {
796
+ $user_email = (empty ($_POST ['oa_social_login_email']) ? '' : trim ($_POST ['oa_social_login_email']));
797
+ if (empty ($user_email))
798
+ {
799
+ $message = __ ('Please enter your email address', 'oa_social_login');
800
+ }
801
+ else
802
+ {
803
+ if (!is_email ($user_email))
804
+ {
805
+ $message = __ ('This email is not valid', 'oa_social_login');
806
+ }
807
+ elseif (email_exists ($user_email))
808
+ {
809
+
810
+ $message = __ ('This email is already used by another account', 'oa_social_login');
811
+ }
812
+ else
813
+ {
814
+ wp_update_user (array ('ID' => $user_id, 'user_email' => $user_email));
815
+ delete_user_meta ($user_id, 'oa_social_login_request_email');
816
+ $display_modal = false;
817
+ }
818
+ }
819
+ }
820
+ }
821
+
822
+ //Display modal dialog?
823
+ if ($display_modal === true)
824
+ {
825
+ //Read Settings
826
+ $oa_social_login_settings = get_option ('oa_social_login_settings');
827
+
828
+ //Read the social network
829
+ $oa_social_login_identity_provider = get_user_meta ($user_id, 'oa_social_login_identity_provider', true);
830
+
831
+ //Caption
832
+ $caption = (isset ($oa_social_login_settings ['plugin_require_email_text']) ? $oa_social_login_settings ['plugin_require_email_text'] : __ ('<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'));
833
+
834
+ //Add CSS
835
+ oa_social_login_add_site_css ();
836
+
837
+ //Show email request form
838
+ ?>
839
+ <div id="oa_social_login_overlay"></div>
840
+ <div id="oa_social_login_modal">
841
+ <div class="oa_social_login_modal_outer">
842
+ <div class="oa_social_login_modal_inner">
843
+ <div class="oa_social_login_modal_title">
844
+ <?php
845
+ printf (__ ('You have successfully connected with %s!', 'oa_social_login'), '<strong>' . $oa_social_login_identity_provider . '</strong>');
846
+ ?>
847
+ </div>
848
+ <?php
849
+ if (strlen (trim ($caption)) > 0)
850
+ {
851
+ ?>
852
+ <div class="oa_social_login_modal_notice"><?php echo str_replace ('%s', $oa_social_login_identity_provider, $caption); ?></div>
853
+ <?php
854
+ }
855
+ ?>
856
+ <div class="oa_social_login_modal_body">
857
+ <div class="oa_social_login_modal_subtitle">
858
+ <?php _e ('Please enter your email address', 'oa_social_login'); ?>:
859
+ </div>
860
+ <form method="post" action="">
861
+ <fieldset>
862
+ <div>
863
+ <input type="text" name="oa_social_login_email" class="oa_social_login_confirm_text" value="<?php echo (!empty ($_POST ['oa_social_login_email']) ? oa_social_login_esc_attr ($_POST ['oa_social_login_email']) : ''); ?>" />
864
+ <input type="hidden" name="oa_social_login_action" value="confirm_email" size="30" />
865
+ </div>
866
+ <div class="oa_social_login_modal_error">
867
+ <?php echo $message; ?>
868
+ </div>
869
+ <div class="oa_social_login_buttons">
870
+ <input class="oa_social_login_button_confirm" type="submit" value="<?php _e ('Confirm', 'oa_social_login'); ?>" />
871
+ <input class="oa_social_login_button_cancel" type="button" value="<?php _e ('Cancel', 'oa_social_login'); ?>" onclick="window.location.href='<?php echo esc_url(wp_logout_url(oa_social_login_get_current_url()));?>'" />
872
+ </div>
873
+ </fieldset>
874
+ </form>
875
+ </div>
876
+ </div>
877
+ </div>
878
+ </div>
879
+ <?php
880
+ }
881
+ }
882
+ }
883
+ }
884
+
885
+ add_action ('wp_footer', 'oa_social_login_request_email');
886
+ add_action ('admin_footer', 'oa_social_login_request_email');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/widget.php CHANGED
@@ -14,7 +14,7 @@ class oa_social_login_widget extends WP_Widget
14
  'description' => __ ('Allow your visitors to login and register with social networks like Twitter, Facebook, LinkedIn, Hyves, Google and Yahoo.', 'oa_social_login')
15
  ));
16
  }
17
-
18
  /**
19
  * Display the widget
20
  */
@@ -25,33 +25,33 @@ class oa_social_login_widget extends WP_Widget
25
  {
26
  //Before Widget
27
  echo $args ['before_widget'];
28
-
29
  //Title
30
  if (!empty ($instance ['widget_title']))
31
  {
32
  echo $args ['before_title'] . apply_filters ('widget_title', $instance ['widget_title']) . $args ['after_title'];
33
  }
34
-
35
  //Before Content
36
  if (!empty ($instance ['widget_content_before']))
37
  {
38
  echo $instance ['widget_content_before'];
39
  }
40
-
41
  //Content
42
  echo oa_social_login_render_login_form ('widget', $instance);
43
-
44
  //After Content
45
  if (!empty ($instance ['widget_content_after']))
46
  {
47
  echo $instance ['widget_content_after'];
48
  }
49
-
50
  //After Widget
51
  echo $args ['after_widget'];
52
  }
53
  }
54
-
55
  /**
56
  * Show Widget Settings
57
  */
@@ -65,14 +65,14 @@ class oa_social_login_widget extends WP_Widget
65
  'widget_use_small_buttons' => '0',
66
  'widget_hide_for_logged_in_users' => '1'
67
  );
68
-
69
  foreach ($instance as $key => $value)
70
  {
71
  $instance [$key] = oa_social_login_esc_attr ($value);
72
  }
73
-
74
  $instance = wp_parse_args ((array) $instance, $default_settings);
75
- ?>
76
  <p>
77
  <label for="<?php echo $this->get_field_id ('widget_title'); ?>"><?php _e ('Title', 'oa_social_login'); ?>:</label>
78
  <input class="widefat" id="<?php echo $this->get_field_id ('widget_title'); ?>" name="<?php echo $this->get_field_name ('widget_title'); ?>" type="text" value="<?php echo $instance ['widget_title']; ?>" />
@@ -94,22 +94,22 @@ class oa_social_login_widget extends WP_Widget
94
  <label for="<?php echo $this->get_field_id ('widget_use_small_buttons'); ?>"><?php _e ('Tick to use small buttons', 'oa_social_login'); ?></label>
95
  </p>
96
  <?php
97
- }
98
-
99
-
100
- /**
101
- * Update Widget Settings
102
- */
103
- public function update ($new_instance, $old_instance)
104
- {
105
- $instance = $old_instance;
106
- $instance ['widget_title'] = trim (strip_tags ($new_instance ['widget_title']));
107
- $instance ['widget_content_before'] = trim ($new_instance ['widget_content_before']);
108
- $instance ['widget_content_after'] = trim ($new_instance ['widget_content_after']);
109
- $instance ['widget_hide_for_logged_in_users'] = (empty ($new_instance ['widget_hide_for_logged_in_users']) ? 0 : 1);
110
- $instance ['widget_use_small_buttons'] = (empty ($new_instance ['widget_use_small_buttons']) ? 0 : 1);
111
- return $instance;
112
- }
113
- }
114
-
115
- add_action ('widgets_init', create_function ('', 'return register_widget( "oa_social_login_widget" );'));
14
  'description' => __ ('Allow your visitors to login and register with social networks like Twitter, Facebook, LinkedIn, Hyves, Google and Yahoo.', 'oa_social_login')
15
  ));
16
  }
17
+
18
  /**
19
  * Display the widget
20
  */
25
  {
26
  //Before Widget
27
  echo $args ['before_widget'];
28
+
29
  //Title
30
  if (!empty ($instance ['widget_title']))
31
  {
32
  echo $args ['before_title'] . apply_filters ('widget_title', $instance ['widget_title']) . $args ['after_title'];
33
  }
34
+
35
  //Before Content
36
  if (!empty ($instance ['widget_content_before']))
37
  {
38
  echo $instance ['widget_content_before'];
39
  }
40
+
41
  //Content
42
  echo oa_social_login_render_login_form ('widget', $instance);
43
+
44
  //After Content
45
  if (!empty ($instance ['widget_content_after']))
46
  {
47
  echo $instance ['widget_content_after'];
48
  }
49
+
50
  //After Widget
51
  echo $args ['after_widget'];
52
  }
53
  }
54
+
55
  /**
56
  * Show Widget Settings
57
  */
65
  'widget_use_small_buttons' => '0',
66
  'widget_hide_for_logged_in_users' => '1'
67
  );
68
+
69
  foreach ($instance as $key => $value)
70
  {
71
  $instance [$key] = oa_social_login_esc_attr ($value);
72
  }
73
+
74
  $instance = wp_parse_args ((array) $instance, $default_settings);
75
+ ?>
76
  <p>
77
  <label for="<?php echo $this->get_field_id ('widget_title'); ?>"><?php _e ('Title', 'oa_social_login'); ?>:</label>
78
  <input class="widefat" id="<?php echo $this->get_field_id ('widget_title'); ?>" name="<?php echo $this->get_field_name ('widget_title'); ?>" type="text" value="<?php echo $instance ['widget_title']; ?>" />
94
  <label for="<?php echo $this->get_field_id ('widget_use_small_buttons'); ?>"><?php _e ('Tick to use small buttons', 'oa_social_login'); ?></label>
95
  </p>
96
  <?php
97
+ }
98
+
99
+
100
+ /**
101
+ * Update Widget Settings
102
+ */
103
+ public function update ($new_instance, $old_instance)
104
+ {
105
+ $instance = $old_instance;
106
+ $instance ['widget_title'] = trim (strip_tags ($new_instance ['widget_title']));
107
+ $instance ['widget_content_before'] = trim ($new_instance ['widget_content_before']);
108
+ $instance ['widget_content_after'] = trim ($new_instance ['widget_content_after']);
109
+ $instance ['widget_hide_for_logged_in_users'] = (empty ($new_instance ['widget_hide_for_logged_in_users']) ? 0 : 1);
110
+ $instance ['widget_use_small_buttons'] = (empty ($new_instance ['widget_use_small_buttons']) ? 0 : 1);
111
+ return $instance;
112
+ }
113
+ }
114
+
115
+ add_action ('widgets_init', create_function ('', 'return register_widget( "oa_social_login_widget" );'));
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-12-17 15:33+0100\n"
6
- "PO-Revision-Date: 2012-12-17 15:34+0100\n"
7
  "Last-Translator: Claude Schlesser <cschlesser@oneall.com>\n"
8
  "Language-Team: \n"
9
  "Language: \n"
@@ -23,11 +23,13 @@ msgstr "Dieses Plugin benötigt Wordpress %s oder höher. Bitte aktualisieren Si
23
 
24
  #: oa-social-login.php:46
25
  #: includes/admin.php:59
26
- #: includes/admin.php:776
27
- msgid "Settings"
28
- msgstr "Einstellungen"
 
 
29
 
30
- #: includes/communication.php:186
31
  msgid "This Social Network account may not be used to register"
32
  msgstr "Dieses Konto kann nicht zur Anmeldung genutzt werden"
33
 
@@ -35,568 +37,572 @@ msgstr "Dieses Konto kann nicht zur Anmeldung genutzt werden"
35
  msgid "Registration"
36
  msgstr "Registriert mit"
37
 
38
- #: includes/admin.php:39
39
  msgid "Registration Form"
40
  msgstr "Anmeldeformular"
41
 
42
- #: includes/admin.php:55
43
- #: includes/admin.php:66
44
- #: includes/admin.php:560
45
- msgid "Setup"
46
- msgstr "Einrichten"
47
 
48
- #: includes/admin.php:112
49
- msgid "Thank you for using the Social Login Plugin!"
 
50
  msgstr "Danke, dass Sie Social Login installiert haben!"
51
 
52
- #: includes/admin.php:112
53
- #, php-format
54
- msgid "Please go to the <strong><a href=\"%s\">Social Login\\Setup</a></strong> page to setup the plugin."
55
  msgstr "Bitte rufen Sie die Seite <strong><a href=\"%s\">Einstellungen\\Social Login</a></strong> auf, um das Plugin zu konfigurieren."
56
 
57
- #: includes/admin.php:289
58
  msgid "Contacting API - please wait this may take a few minutes ..."
59
  msgstr "Teste Einstellungen - Dies kann einige Minutern dauern ..."
60
 
61
- #: includes/admin.php:290
62
  msgid "The settings are correct - do not forget to save your changes!"
63
  msgstr "Die Einstellungen sind korrekt! Vergessen Sie nicht abzuspeichern!"
64
 
65
- #: includes/admin.php:291
66
  msgid "Please fill out each of the fields above."
67
  msgstr "Bitte füllen Sie alle Felder aus."
68
 
69
- #: includes/admin.php:292
70
  msgid "The subdomain does not exist. Have you filled it out correctly?"
71
  msgstr "Subdomain wurde nicht gefunden. Haben Sie sie richtig ausgefüllt?"
72
 
73
- #: includes/admin.php:293
74
  msgid "The subdomain has a wrong syntax!"
75
  msgstr "Die Subdomain ist ungültig!"
76
 
77
- #: includes/admin.php:294
78
  msgid "Could not contact API. Are outbound requests on port 443 allowed?"
79
  msgstr "Keine Verbindung zur API. Eventuell blockiert Ihre Firewall Anfragen auf Port 443."
80
 
81
- #: includes/admin.php:295
82
  msgid "The API subdomain is correct, but one or both keys are invalid"
83
  msgstr "Die API-Subdomain ist korrekt, aber die Schlüssel stimmen nicht."
84
 
85
- #: includes/admin.php:296
86
  msgid "Connection handler does not work, try using the Autodetection"
87
  msgstr "Verbindungsfehler! Bitte nutzen Sie die automatische Erkennung"
88
 
89
- #: includes/admin.php:297
90
  msgid "Detected CURL on Port 443 - do not forget to save your changes!"
91
  msgstr "PHP CURL auf Port 443 gefunden! Vergessen Sie nicht abzuspeichern!"
92
 
93
- #: includes/admin.php:298
94
  msgid "Detected CURL on Port 80 - do not forget to save your changes!"
95
  msgstr "PHP CURL auf Port 80 gefunden! Vergessen Sie nicht abzuspeichern!"
96
 
97
- #: includes/admin.php:299
98
  msgid "Detected FSOCKOPEN on Port 443 - do not forget to save your changes!"
99
  msgstr "PHP FSOCKOPEN auf Port 443 gefunden! Vergessen Sie nicht abzuspeichern!"
100
 
101
- #: includes/admin.php:300
102
  msgid "Detected FSOCKOPEN on Port 80 - do not forget to save your changes!"
103
  msgstr "PHP FSOCKOPEN auf Port 80 gefunden! Vergessen Sie nicht abzuspeichern!"
104
 
105
- #: includes/admin.php:301
106
  #, php-format
107
  msgid "Autodetection Error - our <a href=\"%s\" target=\"_blank\">documentation</a> helps you fix this issue."
108
  msgstr "Verbindungsfehler - in unserer <a href=\"%s\" target=\"_blank\">Dokumentation</a> finden Sie die Lösung."
109
 
110
- #: includes/admin.php:567
111
  msgid "Allow your visitors to comment, login and register with 20+ Social Networks like for example Twitter, Facebook, LinkedIn, Hyves, VKontakte, Google or Yahoo."
112
  msgstr "Erlauben Sie Ihren Besuchern, sich mit 20+ Sozialen Netzwerk wie z.B. Twitter, Facebook, LinkedIn, Hyves, VKontakte, Google oder Yahoo anzumelden, und Kommentare zu hinterlassen."
113
 
114
- #: includes/admin.php:568
115
  msgid "Draw a larger audience and increase your user engagement in a few simple steps."
116
  msgstr "Steigern Sie die Beteilung Ihrer Nutzer auf einfachste Art und Weise."
117
 
118
- #: includes/admin.php:572
119
  msgid "Get Started!"
120
  msgstr "Los gehts!"
121
 
122
- #: includes/admin.php:575
123
  #, php-format
124
  msgid "To be able to use this plugin you first of all need to create a free account at %s and setup a Site."
125
  msgstr "Um dieses Plugin nutzen zu können, müssen Sie sich zunächst kostenlos ein Konto bei %s anmelden."
126
 
127
- #: includes/admin.php:576
128
  msgid "After having created your account and setup your Site, please enter the Site settings in the form below."
129
  msgstr "Nachdem Sie Ihr Konto angemeldet haben, müssen Sie die API-Daten in das nachfolgende Formular eintragen."
130
 
131
- #: includes/admin.php:577
132
  msgid "Don't worry the setup takes only a couple of minutes!"
133
  msgstr "Keine Sorge! Die Einrichtung dauert nur wenige Minuten."
134
 
135
- #: includes/admin.php:580
136
  msgid "Click here to setup your free account"
137
  msgstr "Kostenloses Konto anmelden"
138
 
139
- #: includes/admin.php:583
140
  #, php-format
141
  msgid "You are in good company! This plugin is used on more than %s websites!"
142
  msgstr "Mehr als %s Webseiten nutzen dieses Plugin. Seien Sie mit dabei!"
143
 
144
- #: includes/admin.php:593
145
  msgid "Your API Account is setup correctly"
146
  msgstr "Die API-Daten sind korrekt"
147
 
148
- #: includes/admin.php:596
149
  msgid "Login to your account to manage your providers and access your Social Insights."
150
  msgstr "Loggen Sie sich in Ihr Konto ein, um Einstellungen vorzunehmen und Statistiken einzusehen."
151
 
152
- #: includes/admin.php:597
153
  msgid "Determine which social networks are popular amongst your users and tailor your registration experience to increase your users' engagement."
154
  msgstr "Finden Sie heraus, welche sozialen Netzwerke unter Ihren Besuchern beliebt sind, und steigern Sie die Beteilung Ihrer Besucher."
155
 
156
- #: includes/admin.php:600
157
  msgid "Click here to login to your account"
158
  msgstr "Klicken Sie hier, um sich in Ihr Konto einloggen"
159
 
160
- #: includes/admin.php:608
161
  msgid "Help, Updates &amp; Documentation"
162
  msgstr "Hilfe, Updates &amp; Dokumentation"
163
 
164
- #: includes/admin.php:611
165
  #, php-format
166
  msgid "<a target=\"_blank\" href=\"%s\">Follow us on Twitter</a> to stay informed about updates"
167
  msgstr "<a target=\"_blank\" href=\"%s\">Folgen Sie uns auf Twitter</a>, um auf dem Laufenden zu bleiben"
168
 
169
- #: includes/admin.php:612
170
  #, php-format
171
  msgid "<a target=\"_blank\" href=\"%s\">Read the online documentation</a> for more information about this plugin"
172
  msgstr "<a target=\"_blank\" href=\"%s\">Lesen Sie unsere Dokumentation</a> für zusätzliche Information"
173
 
174
- #: includes/admin.php:613
175
  #, php-format
176
  msgid "<a target=\"_blank\" href=\"%s\">Contact us</a> if you have feedback or need assistance"
177
  msgstr "<a target=\"_blank\" href=\"%s\">Schreiben Sie uns</a>, falls Sie Hilfe benötigen"
178
 
179
- #: includes/admin.php:614
180
- #, php-format
181
- msgid "We also have turnkey plugins for <a target=\"_blank\" href=\"%s\">Drupal, phpBB and Joomla</a> amongst others"
182
  msgstr "Wir bieten auch Module für <a target=\"_blank\" href=\"%s\">Drupal, phpBB und Joomla</a> an"
183
 
184
- #: includes/admin.php:623
185
- #: includes/admin.php:799
186
  msgid "Your modifications have been saved successfully!"
187
  msgstr "Ihre Einstellungen wurden erfolgreich gespeichert!"
188
 
189
- #: includes/admin.php:635
190
- #: includes/admin.php:643
191
  msgid "API Connection Handler"
192
  msgstr "API Kommunikation"
193
 
194
- #: includes/admin.php:647
195
  msgid "Use PHP CURL to communicate with the API"
196
  msgstr "PHP CURL verwenden"
197
 
198
- #: includes/admin.php:647
199
- #: includes/admin.php:667
200
- #: includes/admin.php:830
201
- #: includes/admin.php:845
202
- #: includes/admin.php:858
203
  #: includes/admin.php:879
204
- #: includes/admin.php:895
205
- #: includes/admin.php:910
206
  #: includes/admin.php:930
207
- #: includes/admin.php:945
208
- #: includes/admin.php:960
209
- #: includes/admin.php:981
210
- #: includes/admin.php:1004
211
- #: includes/admin.php:1018
212
  #: includes/admin.php:1041
213
- #: includes/admin.php:1056
214
- #: includes/admin.php:1078
215
- #: includes/admin.php:1095
 
216
  msgid "Default"
217
  msgstr "Standard"
218
 
219
- #: includes/admin.php:648
220
  msgid "Using CURL is recommended but it might be disabled on some servers."
221
  msgstr "Empfohlene Einstellung, auf manchen Serven aber deaktiviert."
222
 
223
- #: includes/admin.php:654
224
  msgid "Use PHP FSOCKOPEN to communicate with the API"
225
  msgstr "PHP FSOCKOPEN verwenden"
226
 
227
- #: includes/admin.php:655
228
  msgid "Try using FSOCKOPEN if you encounter any problems with CURL."
229
  msgstr "Verwenden Sie FSOCKEN wenn Probleme mit CURL auftreten sollten."
230
 
231
- #: includes/admin.php:663
232
  msgid "API Connection Port"
233
  msgstr "API Verbindungs Port"
234
 
235
- #: includes/admin.php:667
236
  msgid "Communication via HTTPS on port 443"
237
  msgstr "Verbindung auf HTTPS Port 443"
238
 
239
- #: includes/admin.php:668
240
  msgid "Using port 443 is secure but you might need OpenSSL"
241
  msgstr "Die Verbindung auf Port 443 ist sicherer benötigt aber ggfs. OpenSSL"
242
 
243
- #: includes/admin.php:674
244
  msgid "Communication via HTTP on port 80"
245
  msgstr "Verbindung auf HTTP Port 80"
246
 
247
- #: includes/admin.php:675
248
  msgid "Using port 80 is a bit faster, doesn't need OpenSSL but is less secure"
249
  msgstr "Die Verbindung auf Port 80 ist etwas schneller aber nicht ganz so sicher"
250
 
251
- #: includes/admin.php:680
252
  msgid "Autodetect API Connection"
253
  msgstr "Automatisch erkennen"
254
 
255
- #: includes/admin.php:690
256
  msgid "API Settings"
257
  msgstr "API Einstellungen"
258
 
259
- #: includes/admin.php:692
260
  msgid "Click here to create and view your API Credentials"
261
  msgstr "Klicken Sie hier, um Ihre API-Daten einzusehen"
262
 
263
- #: includes/admin.php:697
264
  msgid "API Subdomain"
265
  msgstr "API Subdomain"
266
 
267
- #: includes/admin.php:705
268
  msgid "API Public Key"
269
  msgstr "API Public Key"
270
 
271
- #: includes/admin.php:713
272
  msgid "API Private Key"
273
  msgstr "API Private Key"
274
 
275
- #: includes/admin.php:721
276
  msgid "Verify API Settings"
277
  msgstr "API-Einstellungen überprüfen"
278
 
279
- #: includes/admin.php:731
280
  msgid "Enable the social networks/identity providers of your choice"
281
  msgstr "Wählen Sie die sozialen Netzwerke aus:"
282
 
283
- #: includes/admin.php:747
284
  #, php-format
285
  msgid "To enable cyrillic usernames, you might need <a target=\"_blank\" href=\"%s\">this plugin</a>"
286
  msgstr "Um kyrillische Zeichen zu verwenden, brauchen Sie <a target=\"_blank\" href=\"%s\">dieses Plugin</a>"
287
 
288
- #: includes/admin.php:758
289
- #: includes/admin.php:1105
290
  msgid "Save Changes"
291
  msgstr "Einstellungen speichern"
292
 
293
- #: includes/admin.php:785
294
  msgid "Logout to see the plugin in action!"
295
  msgstr "Sie müssen ausloggen, um das Plugin testen zu können."
296
 
297
- #: includes/admin.php:789
298
  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."
299
  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. "
300
 
301
- #: includes/admin.php:791
302
  msgid "You therefore have to logout to see the plugin in action."
303
  msgstr "Sie müssen Sich aus diesem Grund ausloggen, um das Plugin testen zu können."
304
 
305
- #: includes/admin.php:807
306
  msgid "General Settings"
307
  msgstr "Allgemeine Einstellungen"
308
 
309
- #: includes/admin.php:812
310
  msgid "Enter the description to be displayed above the Social Login buttons (leave empty for none):"
311
  msgstr "Welcher Text soll über den Icons der sozialen Netzwerke angezeigt werden (ggf. leer lassen) ?"
312
 
313
- #: includes/admin.php:817
314
  msgid "Connect with:"
315
  msgstr "Einloggen mit:"
316
 
317
- #: includes/admin.php:822
318
  msgid "Do you want to use the default or the small social network buttons?"
319
  msgstr "Wollen Sie die standard -oder kleinere Icons für soziale Netzwerke verwenden?"
320
 
321
- #: includes/admin.php:830
322
  #, php-format
323
  msgid "Use the default social network buttons (%s)"
324
  msgstr "Standard-Icons verwenden (%s)"
325
 
326
- #: includes/admin.php:831
327
  #, php-format
328
  msgid "Use the small social network buttons (%s)"
329
  msgstr "Kleine Icons verwenden (%s)"
330
 
331
- #: includes/admin.php:836
332
  msgid "Do you want to display the social networks used to connect in the user list of the administration area ?"
333
  msgstr "Sollen die verwendeten sozialen Netzwerke in der Benutzerliste angezeigt werden?"
334
 
335
- #: includes/admin.php:844
336
  msgid "Yes, add a new column to the user list and display the social network that the user connected with"
337
  msgstr "Ja, eine weitere Spalte in der Benutzerliste anzeigen"
338
 
339
- #: includes/admin.php:845
340
  msgid "No, no not display the social networks in the user list"
341
  msgstr "Nein, soziale Netzwerke nicht anzeigen"
342
 
343
- #: includes/admin.php:850
344
  msgid "Do you want to receive an email whenever a new user registers with Social Login ?"
345
  msgstr "Wollen Sie per Email benachrichtigt werden, sobald ein Benutzer sich mit Social Login anmeldet?"
346
 
347
- #: includes/admin.php:858
348
  msgid "Yes, send me an email whenever a new user registers with Social Login"
349
  msgstr "Ja, ich möchte eine Email erhalten, wenn jemand sich mit Social Login anmeldet"
350
 
351
- #: includes/admin.php:859
352
  msgid "No, do not send me any emails"
353
  msgstr "Nein, keine Benachrichtigung per Email versenden"
354
 
355
- #: includes/admin.php:866
356
  msgid "User Settings"
357
  msgstr "Benutzer Einstellungen"
358
 
359
- #: includes/admin.php:871
360
  msgid "If the user's social network profile has no email address, should we ask the user to enter it manually?"
361
  msgstr "Müssen Benutzer Ihre Email Address manuell eingeben falls sie nicht im Sozialen Profil vorhanden ist?"
362
 
363
- #: includes/admin.php:879
364
  msgid "No, simplify the registration by automatically creating a placeholder email"
365
  msgstr "Nein, in diesem Fall eine Platzhalter-Email anlegen (vereinfach die Registrierung)"
366
 
367
- #: includes/admin.php:880
368
  msgid "Yes, require the user to enter his email address manually and display this message:"
369
  msgstr "Ja, Benutzer mit folgendem Text auffordern, ihre Email-Adresse einzugeben:"
370
 
371
- #: includes/admin.php:881
372
- #: includes/user_interface.php:771
373
  #, php-format
374
  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."
375
  msgstr "<strong>Wir konnten Ihre E-Mail-Adresse leider nicht über Ihr %s Konto ermitteln.</strong> Bitte geben Sie Ihre Email-Adresse nachfolgend an."
376
 
377
- #: includes/admin.php:882
378
  #, php-format
379
  msgid "HTML is allowed, the placeholder %s is replaced by the name of the social network used to connect."
380
  msgstr "HTML ist erlaubt, der Platzhalter %s wird durch den Namen des sozialen Netzwerks ersetzt."
381
 
382
- #: includes/admin.php:887
383
  msgid "If the user's social network profile has a verified email, should we try to link it to an existing account?"
384
  msgstr "Sollen soziale Profile mit überprüfter Email mit vorhandenen Blog-Nutzern verknüpft werden?"
385
 
386
- #: includes/admin.php:895
387
  msgid "Yes, try to link verified social network profiles to existing blog accounts"
388
  msgstr "Ja, verknüpfe soziale Profile gegebenenfalls mit vorhanden Nutzern"
389
 
390
- #: includes/admin.php:896
391
  msgid "No, disable account linking"
392
  msgstr "Nein, keine Verknüpfung"
393
 
394
- #: includes/admin.php:901
395
- msgid "If the user's social network profile has an avatar, should we show it as the default avatar for the user?"
396
- msgstr "Wollen Sie die Nutzer-Avatare der sozialen Netwerke gegebenenfalls verwenden?"
 
 
 
 
397
 
398
- #: includes/admin.php:909
399
- msgid "Yes, show user avatars from social networks if available"
400
- msgstr "Ja, zeige den sozialen Avatar des Benutzer in den Kommentaren dieses Benutzers an"
 
401
 
402
- #: includes/admin.php:910
403
- msgid "No, display the default avatars"
404
- msgstr "Nein, zeige die Standard-Avatare"
 
405
 
406
- #: includes/admin.php:917
407
  msgid "Comment Settings"
408
  msgstr "Einstellungen: Kommentare"
409
 
410
- #: includes/admin.php:922
411
  msgid "Show the Social Login buttons in the comment area?"
412
  msgstr "Das Plugin über dem Kommentare-Formular anzeigen?"
413
 
414
- #: includes/admin.php:930
415
- #: includes/admin.php:945
416
  msgid "Yes, show the Social Login buttons"
417
  msgstr "Ja, zeige das Plugin an"
418
 
419
- #: includes/admin.php:931
420
- #: includes/admin.php:946
421
  msgid "No, do not show the Social Login buttons"
422
  msgstr "Nein, Plugin nicht anzeigen"
423
 
424
- #: includes/admin.php:936
425
  msgid "Show the Social Login buttons in the comment area if comments are disabled for guests?"
426
  msgstr "Login mit einem sozialen Netzwerk anbieten falls Kommentare für Gäste deaktiviert sind?"
427
 
428
- #: includes/admin.php:944
429
  msgid "The buttons will be displayed below the \"You must be logged in to leave a comment\" notice."
430
  msgstr "Die Icons werden unter \"Du musst angemeldet sein, um einen Kommentar abzugeben\" angezeigt."
431
 
432
- #: includes/admin.php:951
433
  msgid "Automatically approve comments left by users that connected by using Social Login?"
434
  msgstr "Kommentare automatisch freischalten, falls dessen Autor sich mit SocialLogin eingeloggt hat?"
435
 
436
- #: includes/admin.php:959
437
  msgid "Yes, automatically approve comments made by users that connected with Social Login"
438
  msgstr "Ja, Kommentare automatisch freischalten"
439
 
440
- #: includes/admin.php:960
441
  msgid "No, do not automatically approve"
442
  msgstr "Nein, Kommentare nicht automatisch freischalten"
443
 
444
- #: includes/admin.php:969
445
  msgid "Profile Settings"
446
  msgstr "Mitgliederprofil Einstellungen"
447
 
448
- #: includes/admin.php:974
449
  msgid "Show the Social Link buttons in the user profile?"
450
  msgstr "Social Link im Mitgliederprofil anzeigen?"
451
 
452
- #: includes/admin.php:979
453
  msgid "Keep this option enabled to allow each user to connect multiple social networks to his own profile."
454
  msgstr "Aktivieren Sie diese Option, damit Ihre Mitglieder Ihr Konto mit sozialen Netzwerken koppeln können."
455
 
456
- #: includes/admin.php:981
457
  msgid "Yes, show the Social Link buttons"
458
  msgstr "Ja, zeige Social Link an"
459
 
460
- #: includes/admin.php:982
461
  msgid "No, do not show the Social Link buttons"
462
  msgstr "Nein, Social Link nicht anzeigen"
463
 
464
- #: includes/admin.php:991
465
  msgid "Login Page Settings"
466
  msgstr "Einstellungen: Login-Seite"
467
 
468
- #: includes/admin.php:996
469
  msgid "Do you want to display Social Login on the login form of your blog?"
470
  msgstr "Das Plugin auf der Login-Seite Ihres Blogs anzeigen?"
471
 
472
- #: includes/admin.php:1004
473
  msgid "Yes, display the social network buttons below the login form"
474
  msgstr "Ja, die Icons der sozialen Netzwerke auf der Login-Seite anzeigen"
475
 
476
- #: includes/admin.php:1005
477
  msgid "No, disable social network buttons in the login form"
478
  msgstr "Nein, keine Icons auf der Login-Seite anzeigen"
479
 
480
- #: includes/admin.php:1010
481
  msgid "Where should users be redirected to after having logged in with Social Login on the login page?"
482
  msgstr "Wohin sollen Nutzer weitergeleitet werden, nachdem Sie sich Social Login auf der Login-Seite eingeloggt haben?"
483
 
484
- #: includes/admin.php:1018
485
- #: includes/admin.php:1055
486
  #: includes/admin.php:1079
487
- #: includes/admin.php:1096
 
488
  msgid "Redirect users to the homepage of my blog"
489
  msgstr "Weiterleitung zur Hauptseite meines Blogs"
490
 
491
- #: includes/admin.php:1019
492
- #: includes/admin.php:1056
493
  #: includes/admin.php:1080
494
- #: includes/admin.php:1097
 
495
  msgid "Redirect users to their account dashboard"
496
  msgstr "Weiterleitung zur Profilseite des Nutzers"
497
 
498
- #: includes/admin.php:1020
499
- #: includes/admin.php:1057
500
  #: includes/admin.php:1081
501
- #: includes/admin.php:1098
 
502
  msgid "Redirect users to the following url"
503
  msgstr "Weiterleitung zu dieser URL"
504
 
505
- #: includes/admin.php:1028
506
  msgid "Registration Page Settings"
507
  msgstr "Einstellungen: Anmelden-Seite"
508
 
509
- #: includes/admin.php:1033
510
  msgid "Do you want to display Social Login on the registration form of your blog?"
511
  msgstr "Das Plugin auf der Anmelden-Seite Ihres Blogs anzeigen?"
512
 
513
- #: includes/admin.php:1041
514
  msgid "Yes, display the social network buttons below the registration form"
515
  msgstr "Ja, die Icons der sozialen Netzwerke auf der Anmelden-Seite anzeigen"
516
 
517
- #: includes/admin.php:1042
518
  msgid "No, disable social network buttons in the registration form"
519
  msgstr "Nein, keine Icons auf der Anmelden-Seite anzeigen"
520
 
521
- #: includes/admin.php:1047
522
  msgid "Where should users be redirected to after having registered with Social Login on the registration page?"
523
  msgstr "Wohin sollen Nutzer weitergeleitet werden, nachdem sie ein Konto mit einem sozialen Netzwerk angelegt haben?"
524
 
525
- #: includes/admin.php:1065
526
  msgid "Widget &amp; Shortcode Settings"
527
  msgstr "Widget &amp; Shortcode Einstellungen"
528
 
529
- #: includes/admin.php:1070
530
  msgid "Redirect users to this page after they have logged in with Social Login embedded by Widget/Shortcode:"
531
  msgstr "Benutzer zu dieser Seite weiterleiten nachdem sie im Social Login Widget/Shortcode eingloggt haben:"
532
 
533
- #: includes/admin.php:1078
534
- #: includes/admin.php:1095
535
  msgid "Redirect users back to the current page"
536
  msgstr "Weiterleitung zurück zur aktuellen Seite"
537
 
538
- #: includes/admin.php:1087
539
  msgid "Redirect users to this page after they have registered with Social Login embedded by Widget/Shortcode:"
540
  msgstr "Benutzer zu dieser Seite weiterleiten nachdem sie über das Social Login Widget/Shortcode registriert haben:"
541
 
542
- #: includes/user_interface.php:77
543
- #: includes/user_interface.php:665
544
  msgid "Please enable at least one social network!"
545
  msgstr "Bitte aktivieren Sie mindestens ein soziales Netzwerk!"
546
 
547
- #: includes/user_interface.php:125
548
- #: includes/user_interface.php:163
549
  #, php-format
550
  msgid "You have successfully linked your %s account."
551
  msgstr "Sie haben Ihr %s Konto erfolgreich hinzugefügt."
552
 
553
- #: includes/user_interface.php:157
554
- #: includes/user_interface.php:248
555
  #, php-format
556
  msgid "This %s account is already used by another user of this website."
557
  msgstr "Dieses %s Konto wird bereit von einem anderen Nutzer verwendet."
558
 
559
- #: includes/user_interface.php:188
560
  #, php-format
561
  msgid "You have successfully unlinked your %s account."
562
  msgstr "Sie haben die Verbindung mit %s Konto getrennt."
563
 
564
- #: includes/user_interface.php:236
565
  msgid "You might no longer be able to login to this website if you don't link at least one social network."
566
  msgstr "Sie können sich womöglich nicht mehr einloggen, falls Sie nicht mindestens ein soziales Netzerk koppeln."
567
 
568
- #: includes/user_interface.php:288
569
  msgid "Connect your account to one or more social networks"
570
  msgstr "Verbinden Sie Ihr Konto mit einem oder mehreren sozialen Netzwerken"
571
 
572
- #: includes/user_interface.php:314
573
- msgid "Social Networks"
574
- msgstr "Soziale Netzwerke"
575
-
576
- #: includes/user_interface.php:736
577
  msgid "Please enter your email address"
578
  msgstr "Bitte geben Sie Ihre E-Mail-Adresse ein"
579
 
580
- #: includes/user_interface.php:742
581
  msgid "This email is not valid"
582
  msgstr "Diese E-Mail-Adresse ist ungültig"
583
 
584
- #: includes/user_interface.php:747
585
  msgid "This email is already used by another account"
586
  msgstr "Diese E-Mail-Adresse wird bereits verwendet"
587
 
588
- #: includes/user_interface.php:783
589
  #, php-format
590
  msgid "You have successfully connected with %s!"
591
  msgstr "Sie haben Sich erfolgreicht mit %s angemeldet!"
592
 
593
- #: includes/user_interface.php:795
594
- msgid "Your email address"
595
- msgstr "Ihre E-Mail-Adresse"
596
 
597
- #: includes/user_interface.php:807
598
- msgid "Confirm my email address"
599
- msgstr "Bitte bestätigen Sie Ihre E-Mail-Adresse"
600
 
601
  #: includes/widget.php:14
602
  msgid "Allow your visitors to login and register with social networks like Twitter, Facebook, LinkedIn, Hyves, Google and Yahoo."
@@ -646,6 +652,22 @@ msgstr "Soziales Netzwerk: %s"
646
  msgid "[%s] New User Registration"
647
  msgstr "[%s] Neue Benutzeranmeldung"
648
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
649
  #~ msgid "Basic Settings"
650
  #~ msgstr "Grundeinstellungen"
651
 
2
  msgstr ""
3
  "Project-Id-Version: Social Login\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-05-10 16:15+0100\n"
6
+ "PO-Revision-Date: 2013-05-10 16:15+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:59
26
+ #: includes/admin.php:70
27
+ #: includes/admin.php:569
28
+ #: includes/admin.php:792
29
+ msgid "Setup"
30
+ msgstr "Einrichten"
31
 
32
+ #: includes/communication.php:181
33
  msgid "This Social Network account may not be used to register"
34
  msgstr "Dieses Konto kann nicht zur Anmeldung genutzt werden"
35
 
37
  msgid "Registration"
38
  msgstr "Registriert mit"
39
 
40
+ #: includes/admin.php:47
41
  msgid "Registration Form"
42
  msgstr "Anmeldeformular"
43
 
44
+ #: includes/admin.php:63
45
+ #: includes/admin.php:570
46
+ #: includes/admin.php:793
47
+ msgid "Settings"
48
+ msgstr "Einstellungen"
49
 
50
+ #: includes/admin.php:116
51
+ #, fuzzy
52
+ msgid "Thank you for using Social Login!"
53
  msgstr "Danke, dass Sie Social Login installiert haben!"
54
 
55
+ #: includes/admin.php:116
56
+ #, fuzzy, php-format
57
+ msgid "Please complete the <strong><a href=\"%s\">Social Login Setup</a></strong> to enable the plugin."
58
  msgstr "Bitte rufen Sie die Seite <strong><a href=\"%s\">Einstellungen\\Social Login</a></strong> auf, um das Plugin zu konfigurieren."
59
 
60
+ #: includes/admin.php:290
61
  msgid "Contacting API - please wait this may take a few minutes ..."
62
  msgstr "Teste Einstellungen - Dies kann einige Minutern dauern ..."
63
 
64
+ #: includes/admin.php:291
65
  msgid "The settings are correct - do not forget to save your changes!"
66
  msgstr "Die Einstellungen sind korrekt! Vergessen Sie nicht abzuspeichern!"
67
 
68
+ #: includes/admin.php:292
69
  msgid "Please fill out each of the fields above."
70
  msgstr "Bitte füllen Sie alle Felder aus."
71
 
72
+ #: includes/admin.php:293
73
  msgid "The subdomain does not exist. Have you filled it out correctly?"
74
  msgstr "Subdomain wurde nicht gefunden. Haben Sie sie richtig ausgefüllt?"
75
 
76
+ #: includes/admin.php:294
77
  msgid "The subdomain has a wrong syntax!"
78
  msgstr "Die Subdomain ist ungültig!"
79
 
80
+ #: includes/admin.php:295
81
  msgid "Could not contact API. Are outbound requests on port 443 allowed?"
82
  msgstr "Keine Verbindung zur API. Eventuell blockiert Ihre Firewall Anfragen auf Port 443."
83
 
84
+ #: includes/admin.php:296
85
  msgid "The API subdomain is correct, but one or both keys are invalid"
86
  msgstr "Die API-Subdomain ist korrekt, aber die Schlüssel stimmen nicht."
87
 
88
+ #: includes/admin.php:297
89
  msgid "Connection handler does not work, try using the Autodetection"
90
  msgstr "Verbindungsfehler! Bitte nutzen Sie die automatische Erkennung"
91
 
92
+ #: includes/admin.php:298
93
  msgid "Detected CURL on Port 443 - do not forget to save your changes!"
94
  msgstr "PHP CURL auf Port 443 gefunden! Vergessen Sie nicht abzuspeichern!"
95
 
96
+ #: includes/admin.php:299
97
  msgid "Detected CURL on Port 80 - do not forget to save your changes!"
98
  msgstr "PHP CURL auf Port 80 gefunden! Vergessen Sie nicht abzuspeichern!"
99
 
100
+ #: includes/admin.php:300
101
  msgid "Detected FSOCKOPEN on Port 443 - do not forget to save your changes!"
102
  msgstr "PHP FSOCKOPEN auf Port 443 gefunden! Vergessen Sie nicht abzuspeichern!"
103
 
104
+ #: includes/admin.php:301
105
  msgid "Detected FSOCKOPEN on Port 80 - do not forget to save your changes!"
106
  msgstr "PHP FSOCKOPEN auf Port 80 gefunden! Vergessen Sie nicht abzuspeichern!"
107
 
108
+ #: includes/admin.php:302
109
  #, php-format
110
  msgid "Autodetection Error - our <a href=\"%s\" target=\"_blank\">documentation</a> helps you fix this issue."
111
  msgstr "Verbindungsfehler - in unserer <a href=\"%s\" target=\"_blank\">Dokumentation</a> finden Sie die Lösung."
112
 
113
+ #: includes/admin.php:577
114
  msgid "Allow your visitors to comment, login and register with 20+ Social Networks like for example Twitter, Facebook, LinkedIn, Hyves, VKontakte, Google or Yahoo."
115
  msgstr "Erlauben Sie Ihren Besuchern, sich mit 20+ Sozialen Netzwerk wie z.B. Twitter, Facebook, LinkedIn, Hyves, VKontakte, Google oder Yahoo anzumelden, und Kommentare zu hinterlassen."
116
 
117
+ #: includes/admin.php:578
118
  msgid "Draw a larger audience and increase your user engagement in a few simple steps."
119
  msgstr "Steigern Sie die Beteilung Ihrer Nutzer auf einfachste Art und Weise."
120
 
121
+ #: includes/admin.php:582
122
  msgid "Get Started!"
123
  msgstr "Los gehts!"
124
 
125
+ #: includes/admin.php:585
126
  #, php-format
127
  msgid "To be able to use this plugin you first of all need to create a free account at %s and setup a Site."
128
  msgstr "Um dieses Plugin nutzen zu können, müssen Sie sich zunächst kostenlos ein Konto bei %s anmelden."
129
 
130
+ #: includes/admin.php:586
131
  msgid "After having created your account and setup your Site, please enter the Site settings in the form below."
132
  msgstr "Nachdem Sie Ihr Konto angemeldet haben, müssen Sie die API-Daten in das nachfolgende Formular eintragen."
133
 
134
+ #: includes/admin.php:587
135
  msgid "Don't worry the setup takes only a couple of minutes!"
136
  msgstr "Keine Sorge! Die Einrichtung dauert nur wenige Minuten."
137
 
138
+ #: includes/admin.php:590
139
  msgid "Click here to setup your free account"
140
  msgstr "Kostenloses Konto anmelden"
141
 
142
+ #: includes/admin.php:593
143
  #, php-format
144
  msgid "You are in good company! This plugin is used on more than %s websites!"
145
  msgstr "Mehr als %s Webseiten nutzen dieses Plugin. Seien Sie mit dabei!"
146
 
147
+ #: includes/admin.php:604
148
  msgid "Your API Account is setup correctly"
149
  msgstr "Die API-Daten sind korrekt"
150
 
151
+ #: includes/admin.php:607
152
  msgid "Login to your account to manage your providers and access your Social Insights."
153
  msgstr "Loggen Sie sich in Ihr Konto ein, um Einstellungen vorzunehmen und Statistiken einzusehen."
154
 
155
+ #: includes/admin.php:608
156
  msgid "Determine which social networks are popular amongst your users and tailor your registration experience to increase your users' engagement."
157
  msgstr "Finden Sie heraus, welche sozialen Netzwerke unter Ihren Besuchern beliebt sind, und steigern Sie die Beteilung Ihrer Besucher."
158
 
159
+ #: includes/admin.php:611
160
  msgid "Click here to login to your account"
161
  msgstr "Klicken Sie hier, um sich in Ihr Konto einloggen"
162
 
163
+ #: includes/admin.php:619
164
  msgid "Help, Updates &amp; Documentation"
165
  msgstr "Hilfe, Updates &amp; Dokumentation"
166
 
167
+ #: includes/admin.php:622
168
  #, php-format
169
  msgid "<a target=\"_blank\" href=\"%s\">Follow us on Twitter</a> to stay informed about updates"
170
  msgstr "<a target=\"_blank\" href=\"%s\">Folgen Sie uns auf Twitter</a>, um auf dem Laufenden zu bleiben"
171
 
172
+ #: includes/admin.php:623
173
  #, php-format
174
  msgid "<a target=\"_blank\" href=\"%s\">Read the online documentation</a> for more information about this plugin"
175
  msgstr "<a target=\"_blank\" href=\"%s\">Lesen Sie unsere Dokumentation</a> für zusätzliche Information"
176
 
177
+ #: includes/admin.php:624
178
  #, php-format
179
  msgid "<a target=\"_blank\" href=\"%s\">Contact us</a> if you have feedback or need assistance"
180
  msgstr "<a target=\"_blank\" href=\"%s\">Schreiben Sie uns</a>, falls Sie Hilfe benötigen"
181
 
182
+ #: includes/admin.php:625
183
+ #, fuzzy, php-format
184
+ msgid "We also have <a target=\"_blank\" href=\"%s\">turnkey plugins</a> for Drupal, PrestaShop, Joomla, phpBB andy many others ..."
185
  msgstr "Wir bieten auch Module für <a target=\"_blank\" href=\"%s\">Drupal, phpBB und Joomla</a> an"
186
 
187
+ #: includes/admin.php:634
188
+ #: includes/admin.php:817
189
  msgid "Your modifications have been saved successfully!"
190
  msgstr "Ihre Einstellungen wurden erfolgreich gespeichert!"
191
 
192
+ #: includes/admin.php:646
193
+ #: includes/admin.php:654
194
  msgid "API Connection Handler"
195
  msgstr "API Kommunikation"
196
 
197
+ #: includes/admin.php:658
198
  msgid "Use PHP CURL to communicate with the API"
199
  msgstr "PHP CURL verwenden"
200
 
201
+ #: includes/admin.php:658
202
+ #: includes/admin.php:678
203
+ #: includes/admin.php:851
204
+ #: includes/admin.php:866
 
205
  #: includes/admin.php:879
206
+ #: includes/admin.php:900
207
+ #: includes/admin.php:916
208
  #: includes/admin.php:930
209
+ #: includes/admin.php:952
210
+ #: includes/admin.php:967
211
+ #: includes/admin.php:982
212
+ #: includes/admin.php:1005
213
+ #: includes/admin.php:1026
214
  #: includes/admin.php:1041
215
+ #: includes/admin.php:1064
216
+ #: includes/admin.php:1080
217
+ #: includes/admin.php:1103
218
+ #: includes/admin.php:1121
219
  msgid "Default"
220
  msgstr "Standard"
221
 
222
+ #: includes/admin.php:659
223
  msgid "Using CURL is recommended but it might be disabled on some servers."
224
  msgstr "Empfohlene Einstellung, auf manchen Serven aber deaktiviert."
225
 
226
+ #: includes/admin.php:665
227
  msgid "Use PHP FSOCKOPEN to communicate with the API"
228
  msgstr "PHP FSOCKOPEN verwenden"
229
 
230
+ #: includes/admin.php:666
231
  msgid "Try using FSOCKOPEN if you encounter any problems with CURL."
232
  msgstr "Verwenden Sie FSOCKEN wenn Probleme mit CURL auftreten sollten."
233
 
234
+ #: includes/admin.php:674
235
  msgid "API Connection Port"
236
  msgstr "API Verbindungs Port"
237
 
238
+ #: includes/admin.php:678
239
  msgid "Communication via HTTPS on port 443"
240
  msgstr "Verbindung auf HTTPS Port 443"
241
 
242
+ #: includes/admin.php:679
243
  msgid "Using port 443 is secure but you might need OpenSSL"
244
  msgstr "Die Verbindung auf Port 443 ist sicherer benötigt aber ggfs. OpenSSL"
245
 
246
+ #: includes/admin.php:685
247
  msgid "Communication via HTTP on port 80"
248
  msgstr "Verbindung auf HTTP Port 80"
249
 
250
+ #: includes/admin.php:686
251
  msgid "Using port 80 is a bit faster, doesn't need OpenSSL but is less secure"
252
  msgstr "Die Verbindung auf Port 80 ist etwas schneller aber nicht ganz so sicher"
253
 
254
+ #: includes/admin.php:691
255
  msgid "Autodetect API Connection"
256
  msgstr "Automatisch erkennen"
257
 
258
+ #: includes/admin.php:701
259
  msgid "API Settings"
260
  msgstr "API Einstellungen"
261
 
262
+ #: includes/admin.php:703
263
  msgid "Click here to create and view your API Credentials"
264
  msgstr "Klicken Sie hier, um Ihre API-Daten einzusehen"
265
 
266
+ #: includes/admin.php:708
267
  msgid "API Subdomain"
268
  msgstr "API Subdomain"
269
 
270
+ #: includes/admin.php:716
271
  msgid "API Public Key"
272
  msgstr "API Public Key"
273
 
274
+ #: includes/admin.php:724
275
  msgid "API Private Key"
276
  msgstr "API Private Key"
277
 
278
+ #: includes/admin.php:732
279
  msgid "Verify API Settings"
280
  msgstr "API-Einstellungen überprüfen"
281
 
282
+ #: includes/admin.php:742
283
  msgid "Enable the social networks/identity providers of your choice"
284
  msgstr "Wählen Sie die sozialen Netzwerke aus:"
285
 
286
+ #: includes/admin.php:762
287
  #, php-format
288
  msgid "To enable cyrillic usernames, you might need <a target=\"_blank\" href=\"%s\">this plugin</a>"
289
  msgstr "Um kyrillische Zeichen zu verwenden, brauchen Sie <a target=\"_blank\" href=\"%s\">dieses Plugin</a>"
290
 
291
+ #: includes/admin.php:773
292
+ #: includes/admin.php:1131
293
  msgid "Save Changes"
294
  msgstr "Einstellungen speichern"
295
 
296
+ #: includes/admin.php:803
297
  msgid "Logout to see the plugin in action!"
298
  msgstr "Sie müssen ausloggen, um das Plugin testen zu können."
299
 
300
+ #: includes/admin.php:807
301
  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."
302
  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. "
303
 
304
+ #: includes/admin.php:809
305
  msgid "You therefore have to logout to see the plugin in action."
306
  msgstr "Sie müssen Sich aus diesem Grund ausloggen, um das Plugin testen zu können."
307
 
308
+ #: includes/admin.php:825
309
  msgid "General Settings"
310
  msgstr "Allgemeine Einstellungen"
311
 
312
+ #: includes/admin.php:830
313
  msgid "Enter the description to be displayed above the Social Login buttons (leave empty for none):"
314
  msgstr "Welcher Text soll über den Icons der sozialen Netzwerke angezeigt werden (ggf. leer lassen) ?"
315
 
316
+ #: includes/admin.php:836
317
  msgid "Connect with:"
318
  msgstr "Einloggen mit:"
319
 
320
+ #: includes/admin.php:843
321
  msgid "Do you want to use the default or the small social network buttons?"
322
  msgstr "Wollen Sie die standard -oder kleinere Icons für soziale Netzwerke verwenden?"
323
 
324
+ #: includes/admin.php:851
325
  #, php-format
326
  msgid "Use the default social network buttons (%s)"
327
  msgstr "Standard-Icons verwenden (%s)"
328
 
329
+ #: includes/admin.php:852
330
  #, php-format
331
  msgid "Use the small social network buttons (%s)"
332
  msgstr "Kleine Icons verwenden (%s)"
333
 
334
+ #: includes/admin.php:857
335
  msgid "Do you want to display the social networks used to connect in the user list of the administration area ?"
336
  msgstr "Sollen die verwendeten sozialen Netzwerke in der Benutzerliste angezeigt werden?"
337
 
338
+ #: includes/admin.php:865
339
  msgid "Yes, add a new column to the user list and display the social network that the user connected with"
340
  msgstr "Ja, eine weitere Spalte in der Benutzerliste anzeigen"
341
 
342
+ #: includes/admin.php:866
343
  msgid "No, no not display the social networks in the user list"
344
  msgstr "Nein, soziale Netzwerke nicht anzeigen"
345
 
346
+ #: includes/admin.php:871
347
  msgid "Do you want to receive an email whenever a new user registers with Social Login ?"
348
  msgstr "Wollen Sie per Email benachrichtigt werden, sobald ein Benutzer sich mit Social Login anmeldet?"
349
 
350
+ #: includes/admin.php:879
351
  msgid "Yes, send me an email whenever a new user registers with Social Login"
352
  msgstr "Ja, ich möchte eine Email erhalten, wenn jemand sich mit Social Login anmeldet"
353
 
354
+ #: includes/admin.php:880
355
  msgid "No, do not send me any emails"
356
  msgstr "Nein, keine Benachrichtigung per Email versenden"
357
 
358
+ #: includes/admin.php:887
359
  msgid "User Settings"
360
  msgstr "Benutzer Einstellungen"
361
 
362
+ #: includes/admin.php:892
363
  msgid "If the user's social network profile has no email address, should we ask the user to enter it manually?"
364
  msgstr "Müssen Benutzer Ihre Email Address manuell eingeben falls sie nicht im Sozialen Profil vorhanden ist?"
365
 
366
+ #: includes/admin.php:900
367
  msgid "No, simplify the registration by automatically creating a placeholder email"
368
  msgstr "Nein, in diesem Fall eine Platzhalter-Email anlegen (vereinfach die Registrierung)"
369
 
370
+ #: includes/admin.php:901
371
  msgid "Yes, require the user to enter his email address manually and display this message:"
372
  msgstr "Ja, Benutzer mit folgendem Text auffordern, ihre Email-Adresse einzugeben:"
373
 
374
+ #: includes/admin.php:902
375
+ #: includes/user_interface.php:833
376
  #, php-format
377
  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."
378
  msgstr "<strong>Wir konnten Ihre E-Mail-Adresse leider nicht über Ihr %s Konto ermitteln.</strong> Bitte geben Sie Ihre Email-Adresse nachfolgend an."
379
 
380
+ #: includes/admin.php:903
381
  #, php-format
382
  msgid "HTML is allowed, the placeholder %s is replaced by the name of the social network used to connect."
383
  msgstr "HTML ist erlaubt, der Platzhalter %s wird durch den Namen des sozialen Netzwerks ersetzt."
384
 
385
+ #: includes/admin.php:908
386
  msgid "If the user's social network profile has a verified email, should we try to link it to an existing account?"
387
  msgstr "Sollen soziale Profile mit überprüfter Email mit vorhandenen Blog-Nutzern verknüpft werden?"
388
 
389
+ #: includes/admin.php:916
390
  msgid "Yes, try to link verified social network profiles to existing blog accounts"
391
  msgstr "Ja, verknüpfe soziale Profile gegebenenfalls mit vorhanden Nutzern"
392
 
393
+ #: includes/admin.php:917
394
  msgid "No, disable account linking"
395
  msgstr "Nein, keine Verknüpfung"
396
 
397
+ #: includes/admin.php:922
398
+ msgid "If the user's social network profile has an avatar, should this avatar be used as default avatar for the user?"
399
+ msgstr "Sollen die Benutzerbilder der sozialen Netwerke gegebenenfalls als Avatare verwendet werden?"
400
+
401
+ #: includes/admin.php:930
402
+ msgid "No, do not use avatars from social networks"
403
+ msgstr "Nein, keine Benutzerbilder der sozialen Netzwerke verwenden"
404
 
405
+ #: includes/admin.php:931
406
+ #, fuzzy
407
+ msgid "Yes, use small avatars from social networks if available"
408
+ msgstr "Ja, verwende Benutzerbilder (kleines Format) der sozialen Netzwerke"
409
 
410
+ #: includes/admin.php:932
411
+ #, fuzzy
412
+ msgid "Yes, use large avatars from social networks if available"
413
+ msgstr "Ja, verwende Benutzerbilder (grosses Format) der sozialen Netzwerke"
414
 
415
+ #: includes/admin.php:939
416
  msgid "Comment Settings"
417
  msgstr "Einstellungen: Kommentare"
418
 
419
+ #: includes/admin.php:944
420
  msgid "Show the Social Login buttons in the comment area?"
421
  msgstr "Das Plugin über dem Kommentare-Formular anzeigen?"
422
 
423
+ #: includes/admin.php:952
424
+ #: includes/admin.php:967
425
  msgid "Yes, show the Social Login buttons"
426
  msgstr "Ja, zeige das Plugin an"
427
 
428
+ #: includes/admin.php:953
429
+ #: includes/admin.php:968
430
  msgid "No, do not show the Social Login buttons"
431
  msgstr "Nein, Plugin nicht anzeigen"
432
 
433
+ #: includes/admin.php:958
434
  msgid "Show the Social Login buttons in the comment area if comments are disabled for guests?"
435
  msgstr "Login mit einem sozialen Netzwerk anbieten falls Kommentare für Gäste deaktiviert sind?"
436
 
437
+ #: includes/admin.php:966
438
  msgid "The buttons will be displayed below the \"You must be logged in to leave a comment\" notice."
439
  msgstr "Die Icons werden unter \"Du musst angemeldet sein, um einen Kommentar abzugeben\" angezeigt."
440
 
441
+ #: includes/admin.php:973
442
  msgid "Automatically approve comments left by users that connected by using Social Login?"
443
  msgstr "Kommentare automatisch freischalten, falls dessen Autor sich mit SocialLogin eingeloggt hat?"
444
 
445
+ #: includes/admin.php:981
446
  msgid "Yes, automatically approve comments made by users that connected with Social Login"
447
  msgstr "Ja, Kommentare automatisch freischalten"
448
 
449
+ #: includes/admin.php:982
450
  msgid "No, do not automatically approve"
451
  msgstr "Nein, Kommentare nicht automatisch freischalten"
452
 
453
+ #: includes/admin.php:991
454
  msgid "Profile Settings"
455
  msgstr "Mitgliederprofil Einstellungen"
456
 
457
+ #: includes/admin.php:996
458
  msgid "Show the Social Link buttons in the user profile?"
459
  msgstr "Social Link im Mitgliederprofil anzeigen?"
460
 
461
+ #: includes/admin.php:1001
462
  msgid "Keep this option enabled to allow each user to connect multiple social networks to his own profile."
463
  msgstr "Aktivieren Sie diese Option, damit Ihre Mitglieder Ihr Konto mit sozialen Netzwerken koppeln können."
464
 
465
+ #: includes/admin.php:1005
466
  msgid "Yes, show the Social Link buttons"
467
  msgstr "Ja, zeige Social Link an"
468
 
469
+ #: includes/admin.php:1006
470
  msgid "No, do not show the Social Link buttons"
471
  msgstr "Nein, Social Link nicht anzeigen"
472
 
473
+ #: includes/admin.php:1013
474
  msgid "Login Page Settings"
475
  msgstr "Einstellungen: Login-Seite"
476
 
477
+ #: includes/admin.php:1018
478
  msgid "Do you want to display Social Login on the login form of your blog?"
479
  msgstr "Das Plugin auf der Login-Seite Ihres Blogs anzeigen?"
480
 
481
+ #: includes/admin.php:1026
482
  msgid "Yes, display the social network buttons below the login form"
483
  msgstr "Ja, die Icons der sozialen Netzwerke auf der Login-Seite anzeigen"
484
 
485
+ #: includes/admin.php:1027
486
  msgid "No, disable social network buttons in the login form"
487
  msgstr "Nein, keine Icons auf der Login-Seite anzeigen"
488
 
489
+ #: includes/admin.php:1032
490
  msgid "Where should users be redirected to after having logged in with Social Login on the login page?"
491
  msgstr "Wohin sollen Nutzer weitergeleitet werden, nachdem Sie sich Social Login auf der Login-Seite eingeloggt haben?"
492
 
493
+ #: includes/admin.php:1041
 
494
  #: includes/admin.php:1079
495
+ #: includes/admin.php:1104
496
+ #: includes/admin.php:1122
497
  msgid "Redirect users to the homepage of my blog"
498
  msgstr "Weiterleitung zur Hauptseite meines Blogs"
499
 
500
+ #: includes/admin.php:1042
 
501
  #: includes/admin.php:1080
502
+ #: includes/admin.php:1105
503
+ #: includes/admin.php:1123
504
  msgid "Redirect users to their account dashboard"
505
  msgstr "Weiterleitung zur Profilseite des Nutzers"
506
 
507
+ #: includes/admin.php:1043
 
508
  #: includes/admin.php:1081
509
+ #: includes/admin.php:1106
510
+ #: includes/admin.php:1124
511
  msgid "Redirect users to the following url"
512
  msgstr "Weiterleitung zu dieser URL"
513
 
514
+ #: includes/admin.php:1051
515
  msgid "Registration Page Settings"
516
  msgstr "Einstellungen: Anmelden-Seite"
517
 
518
+ #: includes/admin.php:1056
519
  msgid "Do you want to display Social Login on the registration form of your blog?"
520
  msgstr "Das Plugin auf der Anmelden-Seite Ihres Blogs anzeigen?"
521
 
522
+ #: includes/admin.php:1064
523
  msgid "Yes, display the social network buttons below the registration form"
524
  msgstr "Ja, die Icons der sozialen Netzwerke auf der Anmelden-Seite anzeigen"
525
 
526
+ #: includes/admin.php:1065
527
  msgid "No, disable social network buttons in the registration form"
528
  msgstr "Nein, keine Icons auf der Anmelden-Seite anzeigen"
529
 
530
+ #: includes/admin.php:1070
531
  msgid "Where should users be redirected to after having registered with Social Login on the registration page?"
532
  msgstr "Wohin sollen Nutzer weitergeleitet werden, nachdem sie ein Konto mit einem sozialen Netzwerk angelegt haben?"
533
 
534
+ #: includes/admin.php:1089
535
  msgid "Widget &amp; Shortcode Settings"
536
  msgstr "Widget &amp; Shortcode Einstellungen"
537
 
538
+ #: includes/admin.php:1094
539
  msgid "Redirect users to this page after they have logged in with Social Login embedded by Widget/Shortcode:"
540
  msgstr "Benutzer zu dieser Seite weiterleiten nachdem sie im Social Login Widget/Shortcode eingloggt haben:"
541
 
542
+ #: includes/admin.php:1103
543
+ #: includes/admin.php:1121
544
  msgid "Redirect users back to the current page"
545
  msgstr "Weiterleitung zurück zur aktuellen Seite"
546
 
547
+ #: includes/admin.php:1112
548
  msgid "Redirect users to this page after they have registered with Social Login embedded by Widget/Shortcode:"
549
  msgstr "Benutzer zu dieser Seite weiterleiten nachdem sie über das Social Login Widget/Shortcode registriert haben:"
550
 
551
+ #: includes/user_interface.php:88
552
+ #: includes/user_interface.php:714
553
  msgid "Please enable at least one social network!"
554
  msgstr "Bitte aktivieren Sie mindestens ein soziales Netzwerk!"
555
 
556
+ #: includes/user_interface.php:133
557
+ #: includes/user_interface.php:171
558
  #, php-format
559
  msgid "You have successfully linked your %s account."
560
  msgstr "Sie haben Ihr %s Konto erfolgreich hinzugefügt."
561
 
562
+ #: includes/user_interface.php:165
563
+ #: includes/user_interface.php:256
564
  #, php-format
565
  msgid "This %s account is already used by another user of this website."
566
  msgstr "Dieses %s Konto wird bereit von einem anderen Nutzer verwendet."
567
 
568
+ #: includes/user_interface.php:196
569
  #, php-format
570
  msgid "You have successfully unlinked your %s account."
571
  msgstr "Sie haben die Verbindung mit %s Konto getrennt."
572
 
573
+ #: includes/user_interface.php:244
574
  msgid "You might no longer be able to login to this website if you don't link at least one social network."
575
  msgstr "Sie können sich womöglich nicht mehr einloggen, falls Sie nicht mindestens ein soziales Netzerk koppeln."
576
 
577
+ #: includes/user_interface.php:294
578
  msgid "Connect your account to one or more social networks"
579
  msgstr "Verbinden Sie Ihr Konto mit einem oder mehreren sozialen Netzwerken"
580
 
581
+ #: includes/user_interface.php:800
582
+ #: includes/user_interface.php:859
 
 
 
583
  msgid "Please enter your email address"
584
  msgstr "Bitte geben Sie Ihre E-Mail-Adresse ein"
585
 
586
+ #: includes/user_interface.php:806
587
  msgid "This email is not valid"
588
  msgstr "Diese E-Mail-Adresse ist ungültig"
589
 
590
+ #: includes/user_interface.php:811
591
  msgid "This email is already used by another account"
592
  msgstr "Diese E-Mail-Adresse wird bereits verwendet"
593
 
594
+ #: includes/user_interface.php:846
595
  #, php-format
596
  msgid "You have successfully connected with %s!"
597
  msgstr "Sie haben Sich erfolgreicht mit %s angemeldet!"
598
 
599
+ #: includes/user_interface.php:871
600
+ msgid "Confirm"
601
+ msgstr "Bestätigen"
602
 
603
+ #: includes/user_interface.php:872
604
+ msgid "Cancel"
605
+ msgstr "Abbrechen"
606
 
607
  #: includes/widget.php:14
608
  msgid "Allow your visitors to login and register with social networks like Twitter, Facebook, LinkedIn, Hyves, Google and Yahoo."
652
  msgid "[%s] New User Registration"
653
  msgstr "[%s] Neue Benutzeranmeldung"
654
 
655
+ #, fuzzy
656
+ #~ msgid "Pleasen enter your email address"
657
+ #~ msgstr "Bitte geben Sie Ihre E-Mail-Adresse ein"
658
+
659
+ #~ msgid "Your email address"
660
+ #~ msgstr "Ihre E-Mail-Adresse"
661
+
662
+ #~ msgid "Confirm my email address"
663
+ #~ msgstr "Bitte bestätigen Sie Ihre E-Mail-Adresse"
664
+
665
+ #~ msgid "No, display the default avatars"
666
+ #~ msgstr "Nein, zeige die Standard-Avatare"
667
+
668
+ #~ msgid "Social Networks"
669
+ #~ msgstr "Soziale Netzwerke"
670
+
671
  #~ msgid "Basic Settings"
672
  #~ msgstr "Grundeinstellungen"
673
 
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: 4.0
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', '4.0');
15
 
16
  /**
17
  * Check technical requirements before activating the plugin (Wordpress 3.0 or newer required)
@@ -30,9 +30,9 @@ register_activation_hook (__FILE__, 'oa_social_login_activate');
30
 
31
 
32
  /**
33
- * Add Settings Link
34
  **/
35
- function oa_social_login_add_settings_link ($links, $file)
36
  {
37
  static $oa_social_login_plugin = null;
38
 
@@ -43,12 +43,12 @@ function oa_social_login_add_settings_link ($links, $file)
43
 
44
  if ($file == $oa_social_login_plugin)
45
  {
46
- $settings_link = '<a href="admin.php?page=oa_social_login_setup">' . __ ('Settings') . '</a>';
47
  array_unshift ($links, $settings_link);
48
  }
49
  return $links;
50
  }
51
- add_filter ('plugin_action_links', 'oa_social_login_add_settings_link', 10, 2);
52
 
53
 
54
  /**
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: 4.3
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', '4.3');
15
 
16
  /**
17
  * Check technical requirements before activating the plugin (Wordpress 3.0 or newer required)
30
 
31
 
32
  /**
33
+ * Add Setup Link
34
  **/
35
+ function oa_social_login_add_setup_link ($links, $file)
36
  {
37
  static $oa_social_login_plugin = null;
38
 
43
 
44
  if ($file == $oa_social_login_plugin)
45
  {
46
+ $settings_link = '<a href="admin.php?page=oa_social_login_setup">' . __ ('Setup') . '</a>';
47
  array_unshift ($links, $settings_link);
48
  }
49
  return $links;
50
  }
51
+ add_filter ('plugin_action_links', 'oa_social_login_add_setup_link', 10, 2);
52
 
53
 
54
  /**
readme.txt CHANGED
@@ -1,16 +1,16 @@
1
  === Social Login ===
2
  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.5.1
6
- Stable tag: 4.0
7
 
8
  Allow your visitors to comment and login with social networks like Twitter, Facebook, Paypal, LinkedIn, LiveJournal, OpenID, VKontakte, Google, Yahoo
9
 
10
  == Description ==
11
 
12
- The Social Login Plugin is a professional though free Wordpress (BuddyPress compatible) Plugin in English/German that allows your visitors to comment,
13
- login and register with social networks like Twitter, Facebook, LinkedIn, Paypal, LiveJournal, Hyves, Вконтакте, Google or Yahoo.
14
  <strong>Make your blog social!</strong><br />
15
 
16
  <strong>Choose where to add the Social Login Plugin:</strong>
@@ -19,6 +19,7 @@ login and register with social networks like Twitter, Facebook, LinkedIn, Paypal
19
  <li>On the login page</li>
20
  <li>On the registration page</li>
21
  <li>In your sidebar</li>
 
22
  </ul>
23
 
24
  <strong>Optionally add the Social Login widget:</strong>
@@ -120,6 +121,15 @@ http://docs.oneall.com/plugins/guide/social-login-wordpress/
120
 
121
  == Changelog ==
122
 
 
 
 
 
 
 
 
 
 
123
  = 4.0 =
124
  * Social Link Service added
125
  * Optimized for WordPress 3.5
@@ -253,6 +263,9 @@ http://docs.oneall.com/plugins/guide/social-login-wordpress/
253
 
254
  <strong>Used by thousands of users around the world!</strong>
255
 
 
 
 
256
  <em>You have no idea how it THRILLED me to integrate oneall. It was SO amazingly easy, your team has simplified the whole process of signing up for
257
  authorization on multiple social media sites. I HAD NO QUESTIONS/STEPS THAT YOU HADN'T ALREADY ANTICIPATED. It saved me HOURS of work!</em>
258
  <strong>Kelly C.</strong>
1
  === Social Login ===
2
  Contributors: ClaudeSchlesser
3
+ Tags: social login, social connect, facebook login, linkedin, livejournal, google, yahoo, twitter login, openid, paypal, google, vkontakte, hyves, widget, plugin, social network login, comments
4
  Requires at least: 3.0
5
  Tested up to: 3.5.1
6
+ Stable tag: 4.3
7
 
8
  Allow your visitors to comment and login with social networks like Twitter, Facebook, Paypal, LinkedIn, LiveJournal, OpenID, VKontakte, Google, Yahoo
9
 
10
  == Description ==
11
 
12
+ Social Login is a professionally developed and free Wordpress (BuddyPress compatible) plugin that allows your visitors to comment,
13
+ login and register with 20+ Social Networks like for example Facebook, Twitter, Google, LinkedIn, Paypal, LiveJournal, Hyves, Вконтакте and Yahoo.<br /><br />
14
  <strong>Make your blog social!</strong><br />
15
 
16
  <strong>Choose where to add the Social Login Plugin:</strong>
19
  <li>On the login page</li>
20
  <li>On the registration page</li>
21
  <li>In your sidebar</li>
22
+ <li>With a shortcode</li>
23
  </ul>
24
 
25
  <strong>Optionally add the Social Login widget:</strong>
121
 
122
  == Changelog ==
123
 
124
+ = 4.3 =
125
+ * Social Network Avatars improved
126
+ * Social Link shortcode/hook/action added
127
+ * Administration: Tabs for Social Login added
128
+ * Administration: Column Registration in the user list fixed
129
+ * Redirection filters added
130
+ * Settings security improved
131
+ * Button to cancel email confirmation added
132
+
133
  = 4.0 =
134
  * Social Link Service added
135
  * Optimized for WordPress 3.5
263
 
264
  <strong>Used by thousands of users around the world!</strong>
265
 
266
+ <em>Loving the service, seen a massive increase in painless signups to my blog. Thanks!</em>
267
+ <strong>Richard B.</strong>
268
+
269
  <em>You have no idea how it THRILLED me to integrate oneall. It was SO amazingly easy, your team has simplified the whole process of signing up for
270
  authorization on multiple social media sites. I HAD NO QUESTIONS/STEPS THAT YOU HADN'T ALREADY ANTICIPATED. It saved me HOURS of work!</em>
271
  <strong>Kelly C.</strong>