Social Login - Version 6.3.1

Version Description

  • Added relative login redirect URL feature
Download this release

Release Info

Developer cyberlord92
Plugin Icon 128x128 Social Login
Version 6.3.1
Comparing to
See all releases

Code changes from version 6.3.0 to 6.3.1

class-mo-openid-login-widget.php CHANGED
@@ -2438,6 +2438,8 @@ if(mo_openid_is_customer_registered()) {
2438
  $redirect_url = admin_url();
2439
  } else if( $option == 'custom' ) {
2440
  $redirect_url = get_option('mo_openid_login_redirect_url');
 
 
2441
  }
2442
 
2443
  if(strpos($redirect_url,'?') !== FALSE) {
2438
  $redirect_url = admin_url();
2439
  } else if( $option == 'custom' ) {
2440
  $redirect_url = get_option('mo_openid_login_redirect_url');
2441
+ }else if($option == 'relative') {
2442
+ $redirect_url = site_url() . (null !== get_option('mo_openid_relative_login_redirect_url')?get_option('mo_openid_relative_login_redirect_url'):'');
2443
  }
2444
 
2445
  if(strpos($redirect_url,'?') !== FALSE) {
miniorange_openid_sso_settings.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Social Login, Social Sharing by miniOrange
5
  * Plugin URI: https://www.miniorange.com
6
  * Description: Allow your users to login, comment and share with Facebook, Google, Twitter, LinkedIn etc using customizable buttons.
7
- * Version: 6.3.0
8
  * Author: miniOrange
9
  * Author URI: https://www.miniorange.com
10
  * License: GPL2
@@ -495,6 +495,7 @@ class Miniorange_OpenID_SSO {
495
  }
496
 
497
  function miniorange_openid_save_settings(){
 
498
  if ( current_user_can( 'manage_options' )){
499
  if(is_admin() && get_option('Activated_Plugin')=='Plugin-Slug') {
500
 
@@ -727,6 +728,7 @@ class Miniorange_OpenID_SSO {
727
  }
728
  }
729
  else if( isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_enable_apps" ) {
 
730
  if(mo_openid_is_customer_registered()) {
731
  update_option( 'mo_openid_google_enable', isset( $_POST['mo_openid_google_enable']) ? $_POST['mo_openid_google_enable'] : 0);
732
  update_option( 'mo_openid_salesforce_enable', isset( $_POST['mo_openid_salesforce_enable']) ? $_POST['mo_openid_salesforce_enable'] : 0);
@@ -762,6 +764,7 @@ class Miniorange_OpenID_SSO {
762
  //Redirect URL
763
  update_option( 'mo_openid_login_redirect', $_POST['mo_openid_login_redirect']);
764
  update_option( 'mo_openid_login_redirect_url', $_POST['mo_openid_login_redirect_url'] );
 
765
 
766
  //Logout Url
767
  update_option( 'mo_openid_logout_redirection_enable', isset( $_POST['mo_openid_logout_redirection_enable']) ? $_POST['mo_openid_logout_redirection_enable'] : 0);
4
  * Plugin Name: Social Login, Social Sharing by miniOrange
5
  * Plugin URI: https://www.miniorange.com
6
  * Description: Allow your users to login, comment and share with Facebook, Google, Twitter, LinkedIn etc using customizable buttons.
7
+ * Version: 6.3.1
8
  * Author: miniOrange
9
  * Author URI: https://www.miniorange.com
10
  * License: GPL2
495
  }
496
 
497
  function miniorange_openid_save_settings(){
498
+
499
  if ( current_user_can( 'manage_options' )){
500
  if(is_admin() && get_option('Activated_Plugin')=='Plugin-Slug') {
501
 
728
  }
729
  }
730
  else if( isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_enable_apps" ) {
731
+
732
  if(mo_openid_is_customer_registered()) {
733
  update_option( 'mo_openid_google_enable', isset( $_POST['mo_openid_google_enable']) ? $_POST['mo_openid_google_enable'] : 0);
734
  update_option( 'mo_openid_salesforce_enable', isset( $_POST['mo_openid_salesforce_enable']) ? $_POST['mo_openid_salesforce_enable'] : 0);
764
  //Redirect URL
765
  update_option( 'mo_openid_login_redirect', $_POST['mo_openid_login_redirect']);
766
  update_option( 'mo_openid_login_redirect_url', $_POST['mo_openid_login_redirect_url'] );
767
+ update_option( 'mo_openid_relative_login_redirect_url', isset( $_POST['mo_openid_relative_login_redirect_url']) ? $_POST['mo_openid_relative_login_redirect_url'] : "" );
768
 
769
  //Logout Url
770
  update_option( 'mo_openid_logout_redirection_enable', isset( $_POST['mo_openid_logout_redirection_enable']) ? $_POST['mo_openid_logout_redirection_enable'] : 0);
miniorange_openid_sso_settings_page.php CHANGED
@@ -680,10 +680,19 @@ function mo_openid_apps_config() {
680
  <td>
681
  <input type="radio" id="login_redirect_customurl" name="mo_openid_login_redirect" value="custom"
682
  <?php checked( get_option('mo_openid_login_redirect') == 'custom' );?> />Custom URL
683
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
684
  <input type="url" id="login_redirect_url" style="width:50%" name="mo_openid_login_redirect_url" value="<?php echo get_option('mo_openid_login_redirect_url')?>" />
685
  </td>
686
  </tr>
 
 
 
 
 
 
 
 
 
687
  <tr><td>&nbsp;</td></tr>
688
  <tr>
689
  <td>
680
  <td>
681
  <input type="radio" id="login_redirect_customurl" name="mo_openid_login_redirect" value="custom"
682
  <?php checked( get_option('mo_openid_login_redirect') == 'custom' );?> />Custom URL
683
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
684
  <input type="url" id="login_redirect_url" style="width:50%" name="mo_openid_login_redirect_url" value="<?php echo get_option('mo_openid_login_redirect_url')?>" />
685
  </td>
686
  </tr>
687
+ <tr>
688
+ <td>
689
+ <input type="radio" id="login_redirect_relativeurl" name="mo_openid_login_redirect" value="relative"
690
+ <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?> <?php checked( get_option('mo_openid_login_redirect') == 'relative' );?> />Relative URL
691
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo site_url();?>
692
+ <input type="text" id="login_redirect_url" style="width:50%" name="mo_openid_relative_login_redirect_url" value="<?php echo get_option('mo_openid_relative_login_redirect_url')?>" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?>/>
693
+ </td>
694
+ </tr>
695
+
696
  <tr><td>&nbsp;</td></tr>
697
  <tr>
698
  <td>
readme.txt CHANGED
@@ -4,18 +4,21 @@ Donate link: https://www.miniorange.com
4
  Tags: social login, social, facebook, twitter, login
5
  Requires at least: 2.0.2
6
  Tested up to: 4.9.4
7
- Stable tag: 6.3.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Social Login enables social login, sharing, comment using social apps like Google, Facebook, Twitter, Vkontakte, LinkedIn & more. QUICKEST setup.
12
 
13
  == Description ==
 
 
 
14
  = Free Social Login Features =
15
 
16
- * Enable Social Login with Facebook, Google, Twitter, Vkontakte, LinkedIn, Instagram, Amazon, Windows Live & Salesforce
17
  * **NO SETUP required for default apps.**
18
- * Additional option to enable your own social application with APP ID and APP Secret for Facebook, Google, Twitter.
19
  * **Preview is available for Social Login icons**
20
  * **Icon Customizations** - customize shape, theme, space & size of social login icons.
21
  * **Account Linking** - Link social account to WordPress account
@@ -29,14 +32,14 @@ Social Login enables social login, sharing, comment using social apps like Googl
29
  * Enable/disable user registration.
30
  * Customize Login Redirect URL.
31
  * Customize Logout Redirect URL.
32
- * Customizable Text For Login Icons.
33
  * SHORTCODE available for social login.
34
  * **Support** using email and in-plugin support form.
35
 
36
  = Free Social Sharing & Social Comments Features =
37
  * Share with social media applications - Facebook, Twitter, Google+, Pinterest, Reddit, Vkontakte, Tumblr, StumbleUpon, LinkedIn, Pocket, Digg, Delicious, Odnoklassniki, Email, Print, Whatsapp
38
  * **Icon Customizations** - customize shape, theme, space & size of social login icons.
39
- * Preview customization of social sharing applications in WordPress admin panel.
40
  * **bbPress display options** - Enable Social Sharing on bbPress Forum, Topic and Reply Pages.
41
  * Add Social Comments using Facebook and Google.
42
  * Add social sharing icons on homepage, posts, feeds, content pages, WooCommerce product page etc.
@@ -50,7 +53,7 @@ Social Login enables social login, sharing, comment using social apps like Googl
50
  * **Enable your own application with APP ID and APP Secret for Facebook, Google, Twitter, Vkontakte, LinkedIn, Instagram, Amazon, Windows Live & Salesforce **[Premium]**
51
  * **Woocommerce Integration [Premium]** - Auto-fill first name, last name and email in billing details of a user logging in with social media.
52
  * **BuddyPress Integration [Premium]** - Sync profile picture from social application to BuddyPress avatar. Sync user social profile to BuddyPress custom fields.
53
- * **Test Configuration [Premium]**
54
  * **Social Login Opens in a New Window [Premium]** - Social Login opens in a new window instead of the same window.
55
  * **Domain restriction [Premium]** - Option to restrict login/registration for users with a domain specified in the admin dashboard.
56
  * **MailChimp Integration [Premium]** - A user is added as a subscriber to a mailing list in MailChimp when that user registers using Social Login. First name, last name and email are also captured for that user in the Mailing List. Option is available to download csv file that has list of emails of all users in WordPress.
@@ -162,6 +165,9 @@ Please email us at info@miniorange.com. You can also submit your query from the
162
 
163
 
164
  == Changelog ==
 
 
 
165
  = 6.3.0 =
166
  * Added payment link to Standard Plan
167
  * Minor bug fix in login script
@@ -477,6 +483,9 @@ Please email us at info@miniorange.com. You can also submit your query from the
477
  * First version of Social Login, Social Sharing plugin.
478
 
479
  == Upgrade Notice ==
 
 
 
480
  = 6.3.0 =
481
  * Added payment link to Standard Plan
482
  * Minor bug fix in login script
4
  Tags: social login, social, facebook, twitter, login
5
  Requires at least: 2.0.2
6
  Tested up to: 4.9.4
7
+ Stable tag: 6.3.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Social Login enables social login, sharing, comment using social apps like Google, Facebook, Twitter, Vkontakte, LinkedIn & more. QUICKEST setup.
12
 
13
  == Description ==
14
+
15
+ Social Login enables social login, sharing, comment using social apps like Google, Facebook, Twitter, Vkontakte, LinkedIn, Windows Live, Instagram, Amazon, Salesforce.
16
+
17
  = Free Social Login Features =
18
 
19
+ * Social Login with Facebook, Google, Twitter, Vkontakte, LinkedIn, Instagram, Amazon, Windows Live & Salesforce
20
  * **NO SETUP required for default apps.**
21
+ * Setup your own social application with APP ID and APP Secret for Facebook, Google, Twitter.
22
  * **Preview is available for Social Login icons**
23
  * **Icon Customizations** - customize shape, theme, space & size of social login icons.
24
  * **Account Linking** - Link social account to WordPress account
32
  * Enable/disable user registration.
33
  * Customize Login Redirect URL.
34
  * Customize Logout Redirect URL.
35
+ * Customizable Text For Social Login Icons.
36
  * SHORTCODE available for social login.
37
  * **Support** using email and in-plugin support form.
38
 
39
  = Free Social Sharing & Social Comments Features =
40
  * Share with social media applications - Facebook, Twitter, Google+, Pinterest, Reddit, Vkontakte, Tumblr, StumbleUpon, LinkedIn, Pocket, Digg, Delicious, Odnoklassniki, Email, Print, Whatsapp
41
  * **Icon Customizations** - customize shape, theme, space & size of social login icons.
42
+ * **Preview is available for Social Sharing icons**
43
  * **bbPress display options** - Enable Social Sharing on bbPress Forum, Topic and Reply Pages.
44
  * Add Social Comments using Facebook and Google.
45
  * Add social sharing icons on homepage, posts, feeds, content pages, WooCommerce product page etc.
53
  * **Enable your own application with APP ID and APP Secret for Facebook, Google, Twitter, Vkontakte, LinkedIn, Instagram, Amazon, Windows Live & Salesforce **[Premium]**
54
  * **Woocommerce Integration [Premium]** - Auto-fill first name, last name and email in billing details of a user logging in with social media.
55
  * **BuddyPress Integration [Premium]** - Sync profile picture from social application to BuddyPress avatar. Sync user social profile to BuddyPress custom fields.
56
+ * **Test Configuration [Premium]** - Test configuration of your app in admin panel before making your app live.
57
  * **Social Login Opens in a New Window [Premium]** - Social Login opens in a new window instead of the same window.
58
  * **Domain restriction [Premium]** - Option to restrict login/registration for users with a domain specified in the admin dashboard.
59
  * **MailChimp Integration [Premium]** - A user is added as a subscriber to a mailing list in MailChimp when that user registers using Social Login. First name, last name and email are also captured for that user in the Mailing List. Option is available to download csv file that has list of emails of all users in WordPress.
165
 
166
 
167
  == Changelog ==
168
+ = 6.3.1 =
169
+ * Added relative login redirect URL feature
170
+
171
  = 6.3.0 =
172
  * Added payment link to Standard Plan
173
  * Minor bug fix in login script
483
  * First version of Social Login, Social Sharing plugin.
484
 
485
  == Upgrade Notice ==
486
+ = 6.3.1 =
487
+ * Added relative login redirect URL feature
488
+
489
  = 6.3.0 =
490
  * Added payment link to Standard Plan
491
  * Minor bug fix in login script
uninstall.php CHANGED
@@ -138,4 +138,5 @@
138
  delete_option( 'mo_openid_bp_before_register_page');
139
  delete_option( 'mo_openid_bp_before_account_details_fields');
140
  delete_option( 'mo_openid_bp_after_register_page');
 
141
  ?>
138
  delete_option( 'mo_openid_bp_before_register_page');
139
  delete_option( 'mo_openid_bp_before_account_details_fields');
140
  delete_option( 'mo_openid_bp_after_register_page');
141
+ delete_option('mo_openid_relative_login_redirect_url');
142
  ?>