Miled
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Social Login] Forbiddenthat’s an issue with php sessions. can’t be fixed unless your webhost allows it.
wsl does not add a prefix to users name. you’re prolly using another plugin.
nope, there is no available options to do that from wsl settings. however you could customize those in the code.
http://hybridauth.sourceforge.net/wsl/developer-api-functions.html
Forum: Plugins
In reply to: [WordPress Social Login] All profile/author pictures vanished after updatedone
just soon. i can’t give an eta tho
Forum: Plugins
In reply to: [WordPress Social Login] can't see Social icon in Widgetscustomizr works for me. btw, wsl won’t show up for connected users.
first, i advise against querying wsl tables and especially wordpress usermeta, as those can change without notice (ex 2.1.6 and 2.2.2 ain’t compatible in that sense).
it’s better to create an new function in wsl.user.data.php, and submit it to the project on github. that way you can be sure it will be kept maintained for future wsl versions, at least for a little while.
now about steam, i think you already have solved the hard part.
for wsl 2.1.6 you may do something like this :
add_action( 'wsl_hook_process_login_before_redirect', 'wsl_import_steam_user_contacts_and_autofriend', 10, 3 ); function wsl_import_steam_user_contacts_and_autofriend( $user_id, $provider, $hybridauth_user_profile ) { global $wpdb; $steam_api_key = ''; $steam_uid_64 = $hybridauth_user_profile->identifier; $data = "http://api.steampowered.com/ISteamUser/GetFriendList/v0001/?key=$steam_api_key&steamid=$steam_uid_64&relationship=friend"; $data = file_get_contents($data); $data = json_decode($data); $user_contacts = ( $data and isset( $data->friendslist ) and isset( $data->friendslist->friends ) ) ? $data->friendslist->friends : array(); foreach( $user_contacts as $contact ) { $wpdb->insert( "{$wpdb->prefix}wsluserscontacts", array( "user_id" => $user_id, "provider" => $provider, "identifier" => $contact->steamid, "profile_url" => "http://steamcommunity.com/profiles/" . $contact->steamid ) ); } $sql = "SELECT DISTINCT user_id FROM {$wpdb->base_prefix}wslusersprofiles WHERE provider = 'Steam' AND identifier IN ( SELECT identifier FROM {$wpdb->prefix}wsluserscontacts WHERE provider = 'Steam' AND user_id = '$user_id' )"; $contacts_wp_ids = $wpdb->get_results( $sql ); // that's it.. now we have the contacts wp ids. do like you did with facebook }obviously, i didn’t test this function so there might be errors. but this the idea.
i found the issue. there’s a change that made wsl require PHP 5.3+, however you have PHP 5.2.17 on your server. hence the error.
i fixed that on the truck which made wsl compatible with PHP 5.2 again and i’ll release it soon.
email me your website info, and i’ll look into it.
from wsl admin section, go to the help tab (?), then ‘System information’
Forum: Plugins
In reply to: [WordPress Social Login] can't work on steam loginForum: Plugins
In reply to: [WordPress Social Login] All profile/author pictures vanished after updatecould you apply this patch, I’ll hotfix this soon
+++ b/includes/services/wsl.user.avatar.php @@ -69,6 +69,11 @@ function wsl_user_custom_avatar($avatar, $mixed, $size, $default, $alt) { $user_thumbnail = get_user_meta( $user_id, 'wsl_current_user_image', true ); + if( ! $user_thumbnail ) + { + $user_thumbnail = get_user_meta( $user_id, 'wsl_user_image', true ); + } + if( $user_thumbnail ) {Forum: Plugins
In reply to: [WordPress Social Login] Low quality avatar from facebookwsl also use linkedin api to display the user avatar as is but it could get distorted by the theme, that’s why I need more information to confirm the issue, so could you provide a screenshot or even better a link?
and again, resolved can mean many things :
fixed
works for me
won’t fix
invalid
not enough information
duplicate
…http://www.mediawiki.org/wiki/Bug_management/Bug_report_life_cycle
http://codex.wordpress.org/Using_the_Support_Forums#Getting_Your_Questions_Answered_on_the_Forum
actually there is more than one error on that example, let me explain.
by default, wsl will ask for the user public profile (id, name, gender, etc), friend list, email address, birthday, hometown, website and personal description.
and in case you want to ask for fewer permissions, the filter should be implemented like this:
function wsl_lower_facebook_permissons( $provider_scope, $provider ) { if( 'facebook' == strtolower( $provider ) ) // < strtolower { $provider_scope = 'email'; // should not be empty or it will be overwritten } return $provider_scope; } add_filter( 'wsl_hook_alter_provider_scope', 'wsl_lower_facebook_permissons', 10, 2 );this example above will requires wsl to just ask for user public profile, friend list and email address.
if you are wondering why it still asking for the friend list, well that’s because facebook considers your public profile and friendlist as part of your basic info and he gives it away whether you ask or not.
hope this helps.