Social Login WordPress Plugin – AccessPress Social Login Lite - Version 1.0.3

Version Description

  • Made the Redirect uri's selectable for each social medias.
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 Social Login WordPress Plugin – AccessPress Social Login Lite
Version 1.0.3
Comparing to
See all releases

Code changes from version 1.0.2 to 1.0.3

accesspress-social-login-lite.php CHANGED
@@ -4,7 +4,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
4
  Plugin name: AccessPress Social Login Lite
5
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-login-lite/
6
  Description: A plugin to add various social logins to a site.
7
- version: 1.0.2
8
  Author: AccessPress Themes
9
  Author URI: https://accesspressthemes.com/
10
  Text Domain: apsl-lite
@@ -14,7 +14,7 @@ License: GPLv2 or later
14
 
15
  //Declearation of the necessary constants for plugin
16
  if(!defined ( 'APSL_VERSION' ) ){
17
- define ( 'APSL_VERSION', '1.0.2' );
18
  }
19
 
20
  if( !defined( 'APSL_IMAGE_DIR' ) ){
4
  Plugin name: AccessPress Social Login Lite
5
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-login-lite/
6
  Description: A plugin to add various social logins to a site.
7
+ version: 1.0.3
8
  Author: AccessPress Themes
9
  Author URI: https://accesspressthemes.com/
10
  Text Domain: apsl-lite
14
 
15
  //Declearation of the necessary constants for plugin
16
  if(!defined ( 'APSL_VERSION' ) ){
17
+ define ( 'APSL_VERSION', '1.0.3' );
18
  }
19
 
20
  if( !defined( 'APSL_IMAGE_DIR' ) ){
inc/backend/main-page.php CHANGED
@@ -94,7 +94,7 @@ if(isset($_SESSION['apsl_message'])){ ?>
94
  <li>Add the required informations and don't forget to make your app live. This is very important otherwise your app will not work for all users.</li>
95
  <li>Then Click the "Create App" button and follow the instructions, your new app will be created. </li>
96
  <li>Copy and Paste "App ID" and "App Secret" here.</li>
97
- <li>Site url: <?php echo site_url(); ?></li>
98
  </ul>
99
  </div>
100
  </div>
@@ -128,8 +128,8 @@ if(isset($_SESSION['apsl_message'])){ ?>
128
  <li>Click on Create New App button. A new application details form will appear. Please fill up the application details and click on "create your twitter application" button.</li>
129
  <li>Please note that before creating twiiter API application, You must add your mobile phone to your Twitter profile.</li>
130
  <li>After successful creation of the app. Please go to "Keys and Access Tokens" tabs and get Consumer key(API Key) and Consumer secret(API secret).</li>
131
- <li>Website: <?php echo site_url(); ?></li>
132
- <li>Callback URL: <?php echo site_url(); ?></li>
133
  </ul>
134
 
135
  </div>
@@ -167,8 +167,11 @@ if(isset($_SESSION['apsl_message'])){ ?>
167
  <li>Get the client ID and client secret.</li>
168
  <li>Now go to APIs > Social APIs > Google+ API and enable it. It is very important to enable it for the google login to work.</li>
169
  <li>Rediret uri setup:<br />
170
- Please use <?php echo site_url(); ?>/wp-login.php?apsl_login_id=google_check - for wordpress login page.<br />
171
- <?php echo site_url(); ?>/index.php?apsl_login_id=google_check - if you have used the shortcode or widget in frontend.
 
 
 
172
  </li>
173
  </ul>
174
  </div>
@@ -180,7 +183,7 @@ if(isset($_SESSION['apsl_message'])){ ?>
180
  echo "should not reach here";
181
  break;
182
 
183
- } ?>
184
  <?php endforeach; ?>
185
  </div>
186
  </div>
@@ -312,7 +315,7 @@ if(isset($_SESSION['apsl_message'])){ ?>
312
  <input type='radio' id='apsl_send_email_notification_no' class='apsl_send_email_notification_no' name='apsl_send_email_notification_options' value='no' <?php if(isset($options['apsl_send_email_notification_options'])){ checked( $options['apsl_send_email_notification_options'], 'no', 'true' ); } ?> /> <label for='apsl_send_email_notification_no'><?php _e('Do not send email notification to both user and site admin.', APSL_TEXT_DOMAIN ); ?></label><br /><br />
313
  <div class='apsl-info'>
314
  <span class='apsl-info-note'><?php _e('Note:', APSL_TEXT_DOMAIN ); ?></span> <br />
315
- <span class='apsl-info-content'>Please choose the options from where you want your users avatar to be loaded from. If you choose default wordpress avatar it will use the gravatar profile image if user have gravatar profile assocated with their registered email address.</span>
316
  </div>
317
  </div>
318
  </div>
94
  <li>Add the required informations and don't forget to make your app live. This is very important otherwise your app will not work for all users.</li>
95
  <li>Then Click the "Create App" button and follow the instructions, your new app will be created. </li>
96
  <li>Copy and Paste "App ID" and "App Secret" here.</li>
97
+ <li>Site url: <input type='text' value='<?php echo site_url(); ?>' readonly='readonly' /></li>
98
  </ul>
99
  </div>
100
  </div>
128
  <li>Click on Create New App button. A new application details form will appear. Please fill up the application details and click on "create your twitter application" button.</li>
129
  <li>Please note that before creating twiiter API application, You must add your mobile phone to your Twitter profile.</li>
130
  <li>After successful creation of the app. Please go to "Keys and Access Tokens" tabs and get Consumer key(API Key) and Consumer secret(API secret).</li>
131
+ <li>Website: <input type='text' value='<?php echo site_url(); ?>' readonly='readonly'/></li>
132
+ <li>Callback URL: <input type='text' value='<?php echo site_url(); ?>' readonly='readonly'/></li>
133
  </ul>
134
 
135
  </div>
167
  <li>Get the client ID and client secret.</li>
168
  <li>Now go to APIs > Social APIs > Google+ API and enable it. It is very important to enable it for the google login to work.</li>
169
  <li>Rediret uri setup:<br />
170
+ Please use <input type='text' value='<?php echo site_url(); ?>/wp-login.php?apsl_login_id=google_check' readonly='readonly'/> - for wordpress login page.<br />
171
+ Please use <input type='text' value='<?php echo site_url(); ?>/index.php?apsl_login_id=google_check' readonly='readonly'/> - if you have used the shortcode or widget in frontend.
172
+ </li>
173
+ <li>
174
+ Please note: Make sure to check the protocol "http://" or "https://" as google checks protocol as well. Better to add both URL in the list if you site is https so that google social login work properly for both https and http browser.
175
  </li>
176
  </ul>
177
  </div>
183
  echo "should not reach here";
184
  break;
185
 
186
+ } ?>
187
  <?php endforeach; ?>
188
  </div>
189
  </div>
315
  <input type='radio' id='apsl_send_email_notification_no' class='apsl_send_email_notification_no' name='apsl_send_email_notification_options' value='no' <?php if(isset($options['apsl_send_email_notification_options'])){ checked( $options['apsl_send_email_notification_options'], 'no', 'true' ); } ?> /> <label for='apsl_send_email_notification_no'><?php _e('Do not send email notification to both user and site admin.', APSL_TEXT_DOMAIN ); ?></label><br /><br />
316
  <div class='apsl-info'>
317
  <span class='apsl-info-note'><?php _e('Note:', APSL_TEXT_DOMAIN ); ?></span> <br />
318
+ <span class='apsl-info-content'>Here you can configure an options to send email notifications about user registration to site admin and user.</span>
319
  </div>
320
  </div>
321
  </div>
inc/frontend/shortcode.php CHANGED
@@ -5,24 +5,24 @@ if (is_user_logged_in()){
5
  global $current_user;
6
  $user_info = "<span class='display-name'>{$current_user->data->display_name}</span>&nbsp;";
7
  $user_info .= get_avatar( $current_user->ID, 20 );
8
-
9
  if(isset($options['apsl_custom_logout_redirect_options']) && $options['apsl_custom_logout_redirect_options'] !=''){
10
  if($options['apsl_custom_logout_redirect_options'] =='home'){
11
  $user_logout_url = wp_logout_url( home_url() );
12
  }else if($options['apsl_custom_logout_redirect_options'] =='current_page'){
13
- $user_logout_url = wp_logout_url( get_permalink() );
14
 
15
  }else if( $options['apsl_custom_logout_redirect_options'] == 'custom_page' ){
16
  if( $options['apsl_custom_logout_redirect_link'] !='' ){
17
  $logout_page = $options['apsl_custom_logout_redirect_link'];
18
  $user_logout_url = wp_logout_url($logout_page);
19
  }else{
20
- $user_logout_url = wp_logout_url( get_permalink() );
21
  }
22
  }
23
 
24
  }else{
25
- $user_logout_url = wp_logout_url(get_permalink());
26
  }
27
  ?><div class="user-login">Welcome <b><?php echo $user_info; ?></b>&nbsp;|&nbsp;<a href="<?php echo $user_logout_url; ?>" title="Logout">Logout</a></div>
28
  <?php
5
  global $current_user;
6
  $user_info = "<span class='display-name'>{$current_user->data->display_name}</span>&nbsp;";
7
  $user_info .= get_avatar( $current_user->ID, 20 );
8
+ $current_url = APSL_Lite_Login_Check_Class::curPageURL();
9
  if(isset($options['apsl_custom_logout_redirect_options']) && $options['apsl_custom_logout_redirect_options'] !=''){
10
  if($options['apsl_custom_logout_redirect_options'] =='home'){
11
  $user_logout_url = wp_logout_url( home_url() );
12
  }else if($options['apsl_custom_logout_redirect_options'] =='current_page'){
13
+ $user_logout_url = wp_logout_url( $current_url );
14
 
15
  }else if( $options['apsl_custom_logout_redirect_options'] == 'custom_page' ){
16
  if( $options['apsl_custom_logout_redirect_link'] !='' ){
17
  $logout_page = $options['apsl_custom_logout_redirect_link'];
18
  $user_logout_url = wp_logout_url($logout_page);
19
  }else{
20
+ $user_logout_url = wp_logout_url( $current_url );
21
  }
22
  }
23
 
24
  }else{
25
+ $user_logout_url = wp_logout_url( $current_url );
26
  }
27
  ?><div class="user-login">Welcome <b><?php echo $user_info; ?></b>&nbsp;|&nbsp;<a href="<?php echo $user_logout_url; ?>" title="Logout">Logout</a></div>
28
  <?php
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: social, login, social login, facebook, twitter, google, social connect, s
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.2
7
- Stable tag: 1.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -131,6 +131,9 @@ Yes. You can use the AccessPress social login lite anywhere by using shortcode i
131
  4. Backend Other settings Section.
132
 
133
  == Changelog ==
 
 
 
134
  = 1.0.2 =
135
  * Addition of the various backend options - Login redirect option, logout redirect option, avatar settings, email notification settings.
136
  * Addition of more user info to their profile.
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.2
7
+ Stable tag: 1.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
131
  4. Backend Other settings Section.
132
 
133
  == Changelog ==
134
+ = 1.0.3 =
135
+ * Made the Redirect uri's selectable for each social medias.
136
+
137
  = 1.0.2 =
138
  * Addition of the various backend options - Login redirect option, logout redirect option, avatar settings, email notification settings.
139
  * Addition of more user info to their profile.