Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide IP Address just from Moderators

  • @samtime

    Participant

    Hi, I would like to hide user’s IP addresses from moderators, but keep them visible for keymasters.
    Searching this topic I found solutions to hide the IP addresses for everyone, but not to keep it visible for keymasters.
    Any ideas?

    Thank you,
    Sam

    Using WordPress 5.3.2
    bbPress 2.6.3

Viewing 3 replies - 1 through 3 (of 3 total)
  • @robin-w

    Moderator

    you will need to amend a template, so need to be able to edit and ftp files.

    If so, then

    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-reply.php

    transfer this to your pc and edit

    change line 46 from

    <?php if ( current_user_can( 'moderate', bbp_get_reply_id() ) ) : ?>
    to

    <?php if ( bbp_is_user_keymaster() ) : ?>

    and save

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/loop-single-reply.php

    bbPress will now use this template instead of the original and only keymasters will see the ip address

    @samtime

    Participant

    Robin, you’re magic! That did the trick, thanks so much 🙂

    @robin-w

    Moderator

    great – glad you are fixed

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