Im using gigya plugin, and it doesnt record the email of a user when it login using faceebook, or similars. So the comments made in the blog appears in the activity stream appeares like it was done only by one user.
So in the file bp-blogs.php in the function bp_blogs_record_comment I want to change how they get the user. Currently is like this:
/* Get the user_id from the author email. */
$user = get_user_by_email( $comment->comment_author_email );
$user_id = (int)$user->ID;
So how could I make it to get the user in a different way?
The topic ‘Change get_user_by_email to record comments in activity stream’ is closed to new replies.
claud925
@claud925
14 years, 7 months ago
Im using buddypress 1.2.3 and wordpress 2.9.2
Im using gigya plugin, and it doesnt record the email of a user when it login using faceebook, or similars. So the comments made in the blog appears in the activity stream appeares like it was done only by one user.
So in the file bp-blogs.php in the function bp_blogs_record_comment I want to change how they get the user. Currently is like this:
/* Get the user_id from the author email. */
$user = get_user_by_email( $comment->comment_author_email );
$user_id = (int)$user->ID;
So how could I make it to get the user in a different way?