• Can somebody please tell me why this <?php bbp_author_ip( bbp_get_reply_id() ); ?> prints me the correct ip but with ( ) before and after like this -> (02.02.02.02) instead of just 02.02.02.02

    thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter perineo

    (@perineo)

    Im working with quick flags and using the ip of the user to show the flag of the poster but cant make that work, it should print the ip to use it in the shortcode, but the shortcode dosnt work if it prints the ip like that 🙁

    Any suggestions guys? thanks

    You can specify whats printed before and after, even if that’s nothing.

    The defaut is

    'before'  => '<span class="bbp-author-ip">(',
      'after'   => ')</span>'

    so you could do

    bbp_author_ip(
      array(
        'post_id' => bbp_get_reply_id(),
        'before'  => '',
        'after'   => ''
      )
    );

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

The topic ‘Php print ip without ( )'s need advice’ is closed to new replies.