Please or Register to create posts and topics.

How do I suppress all displays of member email addresses for non-admin members?

PreviousPage 2 of 2

Hello @richardb97

I am glad to hear that I could help you. I am aware that there might be privacy-concerns in some setup-scenarios but currently this is the only possible solution to ensure uniqueness while using the mentioning-functionality.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Sorry to abuse the thread but how can i display the email address from the users?

Thanks in advance.

Where do you want to display email addresses?  In the profile?

@mochkal, this will add the email address to the author info beside each post.  You would have to edit to format it as a hyperlinked email address or adjust the size, etc.

// Add email to post author info beside each post
add_action( 'asgarosforum_after_post_author', 'af_add_email_to_author_post_info' );
function af_add_email_to_author_post_info( $author_id ) {
  $author_data = get_userdata( $author_id );
  $author_email = $author_data->user_email;
  echo '<small>'.$author_email.'</small>';
}

 

mochkal has reacted to this post.
mochkal

@jim

awesome thanks a lot.

PreviousPage 2 of 2