Version Description
- [Bugfix] Social Login icons were not working on the websites in language other than English, in some cases
- [Improvement] LiveJournal login page is excluded from search engine indexing
Download this release
Release Info
Developer | the_champ |
Plugin | WordPress Social Share, Social Login and Social Comments Plugin – Super Socializer |
Version | 7.8.16 |
Comparing to | |
See all releases |
Code changes from version 7.8.15 to 7.8.16
- inc/social_login.php +2 -2
- readme.txt +10 -2
- super_socializer.php +46 -37
inc/social_login.php
CHANGED
@@ -32,9 +32,9 @@ function the_champ_login_button($widget = false){
|
|
32 |
}
|
33 |
// class
|
34 |
$html .= 'class="theChampLogin theChamp'. ucfirst($provider) .'Background theChamp'. ucfirst($provider) .'Login" ';
|
35 |
-
$html .= 'alt="
|
36 |
$html .= ucfirst($provider);
|
37 |
-
$html .= '" title="
|
38 |
$html .= ucfirst($provider);
|
39 |
if(current_filter() == 'comment_form_top' || current_filter() == 'comment_form_must_log_in_after'){
|
40 |
$html .= '" onclick="theChampCommentFormLogin = true; theChampInitiateLogin(this)" >';
|
32 |
}
|
33 |
// class
|
34 |
$html .= 'class="theChampLogin theChamp'. ucfirst($provider) .'Background theChamp'. ucfirst($provider) .'Login" ';
|
35 |
+
$html .= 'alt="Login with ';
|
36 |
$html .= ucfirst($provider);
|
37 |
+
$html .= '" title="Login with ';
|
38 |
$html .= ucfirst($provider);
|
39 |
if(current_filter() == 'comment_form_top' || current_filter() == 'comment_form_must_log_in_after'){
|
40 |
$html .= '" onclick="theChampCommentFormLogin = true; theChampInitiateLogin(this)" >';
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.heateor.com/donate?action=Super+Socializer
|
|
4 |
Tags: social login, social share, social commenting, social comments, social plugin, profile data, social analytics, online identity, social profile storage, single sign-on, social media, facebook login
|
5 |
Requires at least: 2.5.0
|
6 |
Tested up to: 4.7.3
|
7 |
-
Stable tag: 7.8.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
The unique Social Plugin to let you integrate Social Login, Social Share and Social Comments at your website
|
@@ -204,6 +204,10 @@ Yes, we can help you with it. Just drop an email at support@heateor.com
|
|
204 |
8. **Social Commenting**: Disqus Commenting selected
|
205 |
|
206 |
== Changelog ==
|
|
|
|
|
|
|
|
|
207 |
= 7.8.15 =
|
208 |
* [Bugfix] Linkedin Login icon was not appearing in some cases
|
209 |
|
@@ -1180,4 +1184,8 @@ Yes, we can help you with it. Just drop an email at support@heateor.com
|
|
1180 |
* [Improvement] "Login with" text appearing on hovering mouse over Social Login icons was not being translated
|
1181 |
|
1182 |
= 7.8.15 =
|
1183 |
-
* [Bugfix] Linkedin Login icon was not appearing in some cases
|
|
|
|
|
|
|
|
4 |
Tags: social login, social share, social commenting, social comments, social plugin, profile data, social analytics, online identity, social profile storage, single sign-on, social media, facebook login
|
5 |
Requires at least: 2.5.0
|
6 |
Tested up to: 4.7.3
|
7 |
+
Stable tag: 7.8.16
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
The unique Social Plugin to let you integrate Social Login, Social Share and Social Comments at your website
|
204 |
8. **Social Commenting**: Disqus Commenting selected
|
205 |
|
206 |
== Changelog ==
|
207 |
+
= 7.8.16 =
|
208 |
+
* [Bugfix] Social Login icons were not working on the websites in language other than English, in some cases
|
209 |
+
* [Improvement] LiveJournal login page is excluded from search engine indexing
|
210 |
+
|
211 |
= 7.8.15 =
|
212 |
* [Bugfix] Linkedin Login icon was not appearing in some cases
|
213 |
|
1184 |
* [Improvement] "Login with" text appearing on hovering mouse over Social Login icons was not being translated
|
1185 |
|
1186 |
= 7.8.15 =
|
1187 |
+
* [Bugfix] Linkedin Login icon was not appearing in some cases
|
1188 |
+
|
1189 |
+
= 7.8.16 =
|
1190 |
+
* [Bugfix] Social Login icons were not working on the websites in language other than English, in some cases
|
1191 |
+
* [Improvement] LiveJournal login page is excluded from search engine indexing
|
super_socializer.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Super Socializer
|
4 |
Plugin URI: http://super-socializer-wordpress.heateor.com
|
5 |
Description: A complete 360 degree solution to provide all the social features like Social Login, Social Commenting, Social Sharing and more.
|
6 |
-
Version: 7.8.
|
7 |
Author: Team Heateor
|
8 |
Author URI: https://www.heateor.com
|
9 |
Text Domain: Super-Socializer
|
@@ -11,7 +11,7 @@ Domain Path: /languages
|
|
11 |
License: GPL2+
|
12 |
*/
|
13 |
defined('ABSPATH') or die("Cheating........Uh!!");
|
14 |
-
define('THE_CHAMP_SS_VERSION', '7.8.
|
15 |
|
16 |
require 'helper.php';
|
17 |
|
@@ -388,50 +388,52 @@ function the_champ_connect(){
|
|
388 |
*/
|
389 |
function the_champ_livejournal_auth(){
|
390 |
require('library/LiveJournalLogin/class.openid.v3.php');
|
391 |
-
$
|
392 |
if(isset($_GET['action']) && $_GET['action'] == 'auth'){
|
393 |
?>
|
394 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
395 |
<html>
|
396 |
<head>
|
397 |
-
<title>
|
398 |
<style>
|
399 |
-
#
|
400 |
border: 1px solid gray;
|
401 |
display: inline;
|
402 |
}
|
403 |
-
#
|
404 |
font-family: "Trebuchet MS";
|
405 |
font-size: 12px;
|
406 |
}
|
407 |
-
#
|
408 |
color: #FF6200;
|
409 |
padding-right: 5px;
|
410 |
float: left;
|
411 |
}
|
412 |
-
#
|
413 |
background-color: #fff;
|
414 |
background-position: 0 50%;
|
415 |
color: #000;
|
416 |
width: 220px;
|
417 |
margin-right: 10px;
|
418 |
}
|
419 |
-
#
|
420 |
color: silver;
|
421 |
}
|
422 |
-
#
|
423 |
color: #5e5e5e;
|
424 |
}
|
425 |
</style>
|
|
|
|
|
426 |
</head>
|
427 |
|
428 |
<body>
|
429 |
<center>
|
430 |
<div style="display:table-cell;vertical-align:middle;height:350px;">
|
431 |
<div style="margin:auto;">
|
432 |
-
<fieldset id="
|
433 |
<legend>LiveJournal <?php _e('Login', 'Super-Socializer'); ?></legend>
|
434 |
-
<form action="<?php echo remove_query_arg('action', $
|
435 |
<input type="hidden" name="openid_action" value="SuperSocializerLogin">
|
436 |
<div><input type="text" name="openid_url" class="openid_login"><input type="submit" name="login" value="<?php _e('Login', 'Super-Socializer'); ?>"></div>
|
437 |
<div style="text-align:left;"><?php _e('Enter your LiveJournal username', 'Super-Socializer'); ?></div>
|
@@ -445,44 +447,44 @@ function the_champ_livejournal_auth(){
|
|
445 |
</html>
|
446 |
<?php
|
447 |
}elseif(isset($_POST['openid_action']) && $_POST['openid_action'] == "SuperSocializerLogin"){ // Get identity from user and redirect browser to OpenID Server
|
448 |
-
$
|
449 |
-
$
|
450 |
-
$
|
451 |
-
$
|
452 |
-
$
|
453 |
-
if
|
454 |
-
$
|
455 |
-
$
|
456 |
}else{
|
457 |
-
$error = $
|
458 |
echo "ERROR CODE: " . $error['code'] . "<br>";
|
459 |
echo "ERROR DESCRIPTION: " . $error['description'] . "<br>";
|
460 |
}
|
461 |
exit;
|
462 |
}elseif(isset($_GET['openid_mode']) && $_GET['openid_mode'] == 'id_res'){ // Perform HTTP Request to OpenID server to validate key
|
463 |
-
$
|
464 |
-
$
|
465 |
-
$
|
466 |
-
if ($
|
467 |
-
$
|
468 |
if(isset($_GET['openid_claimed_id']) && $_GET['openid_claimed_id'] != ''){
|
469 |
-
$
|
470 |
-
$response = wp_remote_get( 'http://www.livejournal.com/allpics.bml?user=' . $
|
471 |
if( ! is_wp_error( $response ) && isset( $response['response']['code'] ) && 200 === $response['response']['code'] ){
|
472 |
$body = wp_remote_retrieve_body( $response );
|
473 |
if($body){
|
474 |
$userpicsHtmlParts = explode('http://l-userpic.livejournal.com', $body);
|
475 |
$userpicsId = explode("'", $userpicsHtmlParts[1]);
|
476 |
-
$
|
477 |
}
|
478 |
}
|
479 |
$profileData = array();
|
480 |
-
$profileData['username'] = $
|
481 |
$profileData['link'] = trim($_GET['openid_claimed_id']);
|
482 |
-
$profileData['avatar'] = $
|
483 |
-
$profileData['name'] = $
|
484 |
-
$profileData['first_name'] = $
|
485 |
-
$profileData['last_name'] = $
|
486 |
$redirection = isset($_GET['super_socializer_redirect_to']) && heateor_ss_validate_url($_GET['super_socializer_redirect_to']) !== false ? esc_url($_GET['super_socializer_redirect_to']) : '';
|
487 |
$response = the_champ_user_auth(the_champ_sanitize_profile_data($profileData, 'liveJournal'), 'liveJournal', $redirection);
|
488 |
if(is_array($response) && isset($response['message']) && $response['message'] == 'register' && (!isset($response['url']) || $response['url'] == '')){
|
@@ -498,15 +500,15 @@ function the_champ_livejournal_auth(){
|
|
498 |
}
|
499 |
the_champ_close_login_popup($redirectTo);
|
500 |
}
|
501 |
-
}else if($
|
502 |
-
$error = $
|
503 |
echo "ERROR CODE: " . $error['code'] . "<br>";
|
504 |
echo "ERROR DESCRIPTION: " . $error['description'] . "<br>";
|
505 |
}else{ // Signature Verification Failed
|
506 |
echo "INVALID AUTHORIZATION";
|
507 |
}
|
508 |
}elseif(isset($_GET['openid_mode']) && $_GET['openid_mode'] == 'cancel'){ // User Canceled the Request
|
509 |
-
the_champ_close_login_popup($
|
510 |
}
|
511 |
die;
|
512 |
}
|
@@ -1297,6 +1299,13 @@ function the_champ_addon_update_notification(){
|
|
1297 |
<p>Update "Social Login myCRED Integration" add-on for maximum compatibility with current version of Super Socialzer</p>
|
1298 |
</div>
|
1299 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1300 |
}
|
1301 |
|
1302 |
if(!get_option('heateor_ss_browser_notification_read')){
|
3 |
Plugin Name: Super Socializer
|
4 |
Plugin URI: http://super-socializer-wordpress.heateor.com
|
5 |
Description: A complete 360 degree solution to provide all the social features like Social Login, Social Commenting, Social Sharing and more.
|
6 |
+
Version: 7.8.16
|
7 |
Author: Team Heateor
|
8 |
Author URI: https://www.heateor.com
|
9 |
Text Domain: Super-Socializer
|
11 |
License: GPL2+
|
12 |
*/
|
13 |
defined('ABSPATH') or die("Cheating........Uh!!");
|
14 |
+
define('THE_CHAMP_SS_VERSION', '7.8.16');
|
15 |
|
16 |
require 'helper.php';
|
17 |
|
388 |
*/
|
389 |
function the_champ_livejournal_auth(){
|
390 |
require('library/LiveJournalLogin/class.openid.v3.php');
|
391 |
+
$currentPageUrl = the_champ_get_valid_url(html_entity_decode(esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"])));
|
392 |
if(isset($_GET['action']) && $_GET['action'] == 'auth'){
|
393 |
?>
|
394 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
395 |
<html>
|
396 |
<head>
|
397 |
+
<title>LiveJournal <?php _e('Login', 'Super-Socializer'); ?></title>
|
398 |
<style>
|
399 |
+
#ss_openid{
|
400 |
border: 1px solid gray;
|
401 |
display: inline;
|
402 |
}
|
403 |
+
#ss_openid, #ss_openid input{
|
404 |
font-family: "Trebuchet MS";
|
405 |
font-size: 12px;
|
406 |
}
|
407 |
+
#ss_openid legend{
|
408 |
color: #FF6200;
|
409 |
padding-right: 5px;
|
410 |
float: left;
|
411 |
}
|
412 |
+
#ss_openid input.openid_login{
|
413 |
background-color: #fff;
|
414 |
background-position: 0 50%;
|
415 |
color: #000;
|
416 |
width: 220px;
|
417 |
margin-right: 10px;
|
418 |
}
|
419 |
+
#ss_openid a{
|
420 |
color: silver;
|
421 |
}
|
422 |
+
#ss_openid a:hover{
|
423 |
color: #5e5e5e;
|
424 |
}
|
425 |
</style>
|
426 |
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
427 |
+
<meta name="robots" content="noindex,nofollow" />
|
428 |
</head>
|
429 |
|
430 |
<body>
|
431 |
<center>
|
432 |
<div style="display:table-cell;vertical-align:middle;height:350px;">
|
433 |
<div style="margin:auto;">
|
434 |
+
<fieldset id="ss_openid">
|
435 |
<legend>LiveJournal <?php _e('Login', 'Super-Socializer'); ?></legend>
|
436 |
+
<form action="<?php echo remove_query_arg('action', $currentPageUrl) ?>" method="post" onsubmit="this.login.disabled=true;">
|
437 |
<input type="hidden" name="openid_action" value="SuperSocializerLogin">
|
438 |
<div><input type="text" name="openid_url" class="openid_login"><input type="submit" name="login" value="<?php _e('Login', 'Super-Socializer'); ?>"></div>
|
439 |
<div style="text-align:left;"><?php _e('Enter your LiveJournal username', 'Super-Socializer'); ?></div>
|
447 |
</html>
|
448 |
<?php
|
449 |
}elseif(isset($_POST['openid_action']) && $_POST['openid_action'] == "SuperSocializerLogin"){ // Get identity from user and redirect browser to OpenID Server
|
450 |
+
$theChampOpenId = new SimpleOpenID;
|
451 |
+
$theChampOpenId->SetIdentity(sanitize_text_field($_POST['openid_url']).'.livejournal.com');
|
452 |
+
$theChampOpenId->SetTrustRoot($currentPageUrl);
|
453 |
+
$theChampOpenId->SetRequiredFields(array('email','fullname'));
|
454 |
+
$theChampOpenId->SetOptionalFields(array('dob','gender','postcode','country','language','timezone'));
|
455 |
+
if($theChampOpenId->GetOpenIDServer()){
|
456 |
+
$theChampOpenId->SetApprovedURL($currentPageUrl); // Send Response from OpenID server to this script
|
457 |
+
$theChampOpenId->Redirect(); // This will redirect user to OpenID Server
|
458 |
}else{
|
459 |
+
$error = $theChampOpenId->GetError();
|
460 |
echo "ERROR CODE: " . $error['code'] . "<br>";
|
461 |
echo "ERROR DESCRIPTION: " . $error['description'] . "<br>";
|
462 |
}
|
463 |
exit;
|
464 |
}elseif(isset($_GET['openid_mode']) && $_GET['openid_mode'] == 'id_res'){ // Perform HTTP Request to OpenID server to validate key
|
465 |
+
$theChampOpenId = new SimpleOpenID;
|
466 |
+
$theChampOpenId->SetIdentity($_GET['openid_identity']);
|
467 |
+
$theChampOpenIdValidationResult = $theChampOpenId->ValidateWithServer();
|
468 |
+
if ($theChampOpenIdValidationResult == true){ // OK HERE KEY IS VALID
|
469 |
+
$userpicUrl = '';
|
470 |
if(isset($_GET['openid_claimed_id']) && $_GET['openid_claimed_id'] != ''){
|
471 |
+
$usernameParts = explode('.', str_replace('http://', '', sanitize_text_field($_GET['openid_claimed_id'])));
|
472 |
+
$response = wp_remote_get( 'http://www.livejournal.com/allpics.bml?user=' . $usernameParts[0], array( 'timeout' => 15 ) );
|
473 |
if( ! is_wp_error( $response ) && isset( $response['response']['code'] ) && 200 === $response['response']['code'] ){
|
474 |
$body = wp_remote_retrieve_body( $response );
|
475 |
if($body){
|
476 |
$userpicsHtmlParts = explode('http://l-userpic.livejournal.com', $body);
|
477 |
$userpicsId = explode("'", $userpicsHtmlParts[1]);
|
478 |
+
$userpicUrl = 'http://l-userpic.livejournal.com' . $userpicsId[0];
|
479 |
}
|
480 |
}
|
481 |
$profileData = array();
|
482 |
+
$profileData['username'] = $usernameParts[0];
|
483 |
$profileData['link'] = trim($_GET['openid_claimed_id']);
|
484 |
+
$profileData['avatar'] = $userpicUrl;
|
485 |
+
$profileData['name'] = $usernameParts[0];
|
486 |
+
$profileData['first_name'] = $usernameParts[0];
|
487 |
+
$profileData['last_name'] = $usernameParts[0];
|
488 |
$redirection = isset($_GET['super_socializer_redirect_to']) && heateor_ss_validate_url($_GET['super_socializer_redirect_to']) !== false ? esc_url($_GET['super_socializer_redirect_to']) : '';
|
489 |
$response = the_champ_user_auth(the_champ_sanitize_profile_data($profileData, 'liveJournal'), 'liveJournal', $redirection);
|
490 |
if(is_array($response) && isset($response['message']) && $response['message'] == 'register' && (!isset($response['url']) || $response['url'] == '')){
|
500 |
}
|
501 |
the_champ_close_login_popup($redirectTo);
|
502 |
}
|
503 |
+
}else if($theChampOpenId->IsError() == true){ // Oops, WE GOT SOME ERROR
|
504 |
+
$error = $theChampOpenId->GetError();
|
505 |
echo "ERROR CODE: " . $error['code'] . "<br>";
|
506 |
echo "ERROR DESCRIPTION: " . $error['description'] . "<br>";
|
507 |
}else{ // Signature Verification Failed
|
508 |
echo "INVALID AUTHORIZATION";
|
509 |
}
|
510 |
}elseif(isset($_GET['openid_mode']) && $_GET['openid_mode'] == 'cancel'){ // User Canceled the Request
|
511 |
+
the_champ_close_login_popup($currentPageUrl);
|
512 |
}
|
513 |
die;
|
514 |
}
|
1299 |
<p>Update "Social Login myCRED Integration" add-on for maximum compatibility with current version of Super Socialzer</p>
|
1300 |
</div>
|
1301 |
<?php
|
1302 |
+
}elseif(defined('HEATEOR_SOCIAL_LOGIN_MYCRED_INTEGRATION_VERSION') && version_compare('1.2.7', HEATEOR_SOCIAL_LOGIN_MYCRED_INTEGRATION_VERSION) > 0){
|
1303 |
+
?>
|
1304 |
+
<div class="error notice">
|
1305 |
+
<h3>Social Login - myCRED Integration</h3>
|
1306 |
+
<p>Update "Social Login myCRED Integration" add-on for compatibility with LiveJournal Login of Super Socialzer</p>
|
1307 |
+
</div>
|
1308 |
+
<?php
|
1309 |
}
|
1310 |
|
1311 |
if(!get_option('heateor_ss_browser_notification_read')){
|