Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hiding the IP addresses


  • koreancandy
    Participant

    @koreancandy

    I have been through some old posts on here to find a way of hiding the ip addresses shown under each user that makes a post in the comments, but none of them work.

    I wish for them to not be displayed as there are mods and admins that I don’t think should be able to see them.

    Please can you tell me how I can hide the IP addresses?

    It won’t cause spam users as I used a plugin that shows me spammers and sploggers.

    Thank you

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

  • koreancandy
    Participant

    @koreancandy

    I have tried all of the old advice that you have given other users with the same problem but they are out of date.


    Darren1981
    Participant

    @darren1981

    .your_ip_related_class {
    display: none !important;
    }

    That should work.. just make sure you change “.your_ip_related_class” to the correct CSS class.


    koreancandy
    Participant

    @koreancandy

    Thank you,

    Sorry where do I put this?


    koreancandy
    Participant

    @koreancandy

    Sorry to be a pain, I am not sure where to add this code


    zilveer
    Participant

    @zilveer

    You will need to add that code to your template CSS-file.

    The quickest thing would be to add it to your theme’s `style.css`.


    koreancandy
    Participant

    @koreancandy

    Thank you very much for your help.

    I have added the code you gave me into my themes style.css and nothing changes, Admins can still see the IP addresses of users 🙁


    Vinod Dalvi
    Participant

    @vinod-dalvi

    You can remove ip address by using the below custom code in the functions.php file of your child theme or in another custom plugin.

    function vvd_no_view_ip( $author_ip, $r, $args ){
    	return __return_empty_string();	
    }
    add_filter('bbp_get_author_ip','vvd_no_view_ip', 10, 3 );
Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Skip to toolbar