Miled
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Social Login] Change User Avatarclosing as duplicate.
https://wordpress.org/support/topic/buddypress-and-user-avatar?replies=6#post-6163231
Forum: Plugins
In reply to: [WordPress Social Login] Avatar Sizeclosing as duplicate.
https://wordpress.org/support/topic/buddypress-and-user-avatar?replies=6#post-6163231
Forum: Plugins
In reply to: [WordPress Social Login] Buddypress and User Avatarfixed on trunk: r1012313 and scheduled for wsl 2.2.3.
starting from the next release, wsl will only overwrite gravatar avatars.
besides that i made few other enhancements:
1. wsl will default to bp_core_avatar_full_width() / bp_core_avatar_full_height() to display users avatars in buddypress
2. made wsl_bp_user_custom_avatar and wsl_get_wp_user_custom_avatar pluggable
3. added two filters hooks to overwrite the avatar html tag generated by wslForum: Plugins
In reply to: [WordPress Social Login] 500 Errorclosing this..
as discussed, this’s a known issue with wp engine.
Forum: Plugins
In reply to: [WordPress Social Login] Missing wslusersprofiles tablelength is 1000 bytes
i use latin1 for my tests which only give 514, and i completely forgot about uft8. many thanks for pointing this out!
anyway, idp_uid is now scheduled for removal next release and will be replaced.
mysql> EXPLAIN SELECT * FROM wp_wslusersprofiles WHERE provider = 'Google' AND identifier = '108839241301472312344'; +----+-------------+---------------------+-------+---------------+---------+---------+-------------+------+-------+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | +----+-------------+---------------------+-------+---------------+---------+---------+-------------+------+-------+ | 1 | SIMPLE | wp_wslusersprofiles | const | idp_uid | idp_uid | 514 | const,const | 1 | NULL | +----+-------------+---------------------+-------+---------------+---------+---------+-------------+------+-------+ 1 row in set (0.00 sec)P.S. On a related note, why is “id” not a primary key? THis question goes for both tables.
that’s due to few issues i encountered with dbdelta..
http://onetarek.com/wordpress/wordpress-dbdelta-database-error-multiple-primary-key-defined/Forum: Plugins
In reply to: [WordPress Social Login] button/icon for standard loginyes, but you will have to replace the “…” with the message you want to display.
alright. i’m not familiar with mycred, but here is how it should be implemented for wsl 2.1.6
/** * this will only kick in for NEW users. > If you already have an account, it won't work. * $user_id and $provider are already given by the hook. > no need to redefine them inside the function */ add_action( 'wsl_hook_process_login_after_create_wp_user', 'mycred_reward_wsl_users', 10, 3 ); function mycred_reward_wsl_users( $user_id, $provider, $hybridauth_user_profile) { if( $provider != 'Steam' ) { return; // assuming you only want to reward steam users } if( ! function_exists( 'mycred_add' ) ) { // oh well } mycred_add( 'registration', $user_id, 100, 'FragPoints for registering via Steam' ); }understandably when you migrate to wsl 2.2+, you will have to replace ‘wsl_hook_process_login_after_create_wp_user’ with ‘wsl_hook_process_login_after_wp_insert_user’.
quick follow up.
seems that you are using get_current_user_id in this line of your code:
$user_id = get_current_user_id();that’s wrong and won’t work.
both wsl_hook_process_login_after_create_wp_user and wsl_hook_process_login_after_wp_insert_user run just after a wordpress user has been inserted to the database but at that point the user is not connected yet so get_current_user_id will be null.
Forum: Plugins
In reply to: [WordPress Social Login] button/icon for standard loginthere are a couple of hooks to append and prepend html content to wsl widget: wsl_render_login_form_start and wsl_render_login_form_end.
you may call them like this :
add_action('wsl_render_login_form_end', 'append_content_to_wsl_widget' ); function append_content_to_wsl_widget(){ echo "..."; }i guess you are still using wsl 2.1.6?
anyway, for 2.1.6 you may use this hook (now depreciated and will be removed)
wsl_hook_process_login_after_create_wp_userin 2.2+ you may use this hook
wsl_hook_process_login_after_wp_insert_userEdit:
wsl_process_login_create_wp_user is not a “hookable” action, it’s a function.Forum: Plugins
In reply to: [WordPress Social Login] Buddypress and User Avatari assume you are using a previous version? things have changed in wsl 2.2.
there is now a new function to get the user avi:
https://plugins.trac.wordpress.org/browser/wordpress-social-login/tags/2.2.2/includes/services/wsl.user.data.php#L42wsl_hook_process_login_before_redirect has been depreciated and will be removed
https://plugins.trac.wordpress.org/browser/wordpress-social-login/tags/2.2.2/includes/services/wsl.authentication.php#L783https://wordpress.org/support/topic/does-this-work-with-existing-registered-buddypress-users
edit:
wsl will attempt to reconize users based on their emails (this only when users authenticate through Facebook, Google, Yahoo or Foursquare as these provides verified emails). if not, a new account will be created.
Forum: Plugins
In reply to: [WordPress Social Login] How can I do that WP social login looks like…Forum: Plugins
In reply to: [WordPress Social Login] Buddypress and User Avataryes, that’s how it is implemented:
i think i may add an if statement to only overwrite gravatar urls, however i’m open to other suggestions tho.
Forum: Plugins
In reply to: [WordPress Social Login] show provider namei have used wp-social-login-custom.php
hopefully someone more knowledgeable than me will answer this. i really don’t know why it didn’t work for you.