Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide IP Address just from Moderators


  • samtime
    Participant

    @samtime

    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

    @robin-w

    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

    @samtime

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


    Robin W
    Moderator

    @robin-w

    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