Skip to:
Content
Pages
Categories
Search
Top
Bottom

Show the forum poster’s IP address to only poster person and moderators

  • @vegasparty607

    Participant

    How could do you do this??

    How do you show the IP address to only you, and group mods?

    How do I turn this function for the buddypress forums?

    Would I have to wrap it around:

    ` `

    But thats not right, what is it?

Viewing 8 replies - 1 through 8 (of 8 total)
  • @vegasparty607

    Participant

    bump

    @gunju2221

    Participant

    Try:

    @gunju2221

    Participant

    Actually scratch the “ and put: “

    @vegasparty607

    Participant

    Nice!!!! Works great!!!

    But it now shows even if the user is not logged in. How can I fix it?

    @gunju2221

    Participant

    Well than it would be:

    @vegasparty607

    Participant

    This works great, but now if a user is a mod, than the ip only shows on every post of the mod’s ip, not each and individual user’s ip

    @gunju2221

    Participant

    That’s because you need to add the current post ID of the current poster.

    Put this in your bp-custom.php
    `function my_topic_poster_id() {
    global $topic_template;
    return $topic_template->post->poster_id;
    }`

    Than the new code for the IP would be: “

    @vegasparty607

    Participant

    Thanks so much! your my hero!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Show the forum poster’s IP address to only poster person and moderators’ is closed to new replies.
Skip to toolbar