Info
- 7 posts
- 5 voices
- Started 2 years ago by TonyVitabile
- Latest reply from Ipstenu
- This topic is resolved
How do I remove the poster's IP address from the post display?
-
- Posted 2 years ago #
I'm very happy with the way my bbPress them has turned out. I've even managed to fix my drop down menus so they work -- my function that spits out the
- ...
- tag for the level below. Once I fixed the placement of the tag, they worked great.
My problem at this point is when I view a topic, my IP address shows up beneath my gravatar. That's not in the code in topic.php. I believe it's coming from the call to do_action('under_title'). This seems to be the only place that the gravatars can come into the post, as there doesn't seem to be anything in the topic.php file related to them.
Any ideas are appreciated.
Tony
-
- Posted 2 years ago #
The IP address is only visible to admins.
-
- Posted 2 years ago #
Ip address is visible to moderators also and I don't want moderators to see ip address.. Is there any way to restrict moderators frm getting ip address of members ???
-
- Posted 2 years ago #
This will remove the ability for moderators to see IPs anywhere in bbPress.
add_filter('get_roles','no_view_ip'); function no_view_ip($roles){unset($roles['moderator']['capabilities']['view_by_ip']); return $roles;}It will work in bbPress 0.9 or 1.0.
In 1.0 you can just put it intofunctions.phpin your template folder or make it into a mini-plugin for 0.9 -
- Posted 2 years ago #
Thanks, CK! I appreciate it!
Never having moderated a forum, I'm not sure what good knowing a user's IP address is, especially with DHCP. I guess it can help you determine if a user who was banned has tried to rejoin using a different name, but only if they use the same exact IP address.
Unless I'm missing something . . .
Thanks again
Tony
-
- Posted 2 years ago #
@ _ck_ , there is no functions.php in template folder ???
-
- Posted 2 years ago #
Not for bbPress 0.9. From 1.0 on there can be.
-
You must log in to post.