Skip to:
Content
Pages
Categories
Search
Top
Bottom

see email of forum user as Super-Administrator


  • haddly
    Participant

    @haddly

    Hi there,
    The person in charge of my forum would like to see the email address of the user that makes a post. Is it possible to do this without giving him full admin access to wordpress site?
    thx

Viewing 4 replies - 1 through 4 (of 4 total)

  • Robin W
    Moderator

    @robin-w

    what bbpress role does the person have? if admin, and they see the ip address in replies, you could put the email under this using

    add_action ('bbp_theme_after_reply_author_admin_details', 'rew_show_email') ;
    
    function rew_show_email () {
    $user_id_rew = bbp_get_reply_author_id () ;
    $user_info_rew = get_userdata($user_id_rew);
    $email = $user_info_rew->user_email;
    echo 'Email: '.$email ;
    }
    

    put this in your functions file

    https://codex.bbpress.org/functions-files-and-child-themes-explained/


    haddly
    Participant

    @haddly

    Hi,
    thanks for your reply. I will try this out shortly and see if it works.


    haddly
    Participant

    @haddly

    Hi there, sorry it has taken so long to reply to this.
    The code you gave me works but the email address overlaps with the text in the post.
    Any idea how to fix that?
    Thanks again


    haddly
    Participant

    @haddly

    Hi, no need to reply to the last post, my administrator is happy will how it works.
    Thx

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar