Skip to:
Content
Pages
Categories
Search
Top
Bottom

Linking to commenter's profile


  • Hard Seat Sleeper
    Participant

    @hseatsleeper

    Can anyone tell me how to link to the current commenter’s profile page? ie:

    http://www.mysite.com/forum/profile/username

    currently the template I’m using links to any url specified by the author (usually his own website), but I want everyone’s name to point to their profile page on my forum.

    using bb 1, and the function looks like this

    function post_author_link( $post_id = 0 ) {
    if ( $link = get_user_link( get_post_author_id( $post_id ) ) ) {
    echo '<a href="' . esc_attr( $link ) . '">' . get_post_author( $post_id ) . '</a>';
    } elseif ( $link = bb_get_post_meta( 'pingback_uri' )) {
    echo '<a href="' . esc_attr( $link ) . '">' . get_post_author( $post_id ) . '</a>';
    } else {
    post_author( $post_id );
    }

You must be logged in to reply to this topic.