Skip to:
Content
Pages
Categories
Search
Top
Bottom

Bug + hack to correct it

  • Hello,

    I found a bug in Buddypress 1.2.8.

    In a forum, like this
    http://www.site.com/groups/%5Bgroup-name%5D/forum/topic/%5Bthe-topic%5D

    When the wordpress username of the topic’s poster contains a “.”, the username’s link appears like this :
    http://www.site.com/members/user.name

    But in buddypress, the members link must contain “-” and not “.”. The link must be :
    http://www.site.com/members/user-name

    This is the hack to fix this problem :
    in plugins/buddypress/bp-forums/bp-forums-templatetags.php

    In the function :
    function bp_get_the_topic_post_poster_link() {

    Just replace
    return apply_filters( ‘bp_the_topic_post_poster_link’, bp_core_get_user_domain( $topic_template->post->poster_id, $topic_template->post->poster_nicename, $topic_template->post->poster_login ) );

    With (str_replace added) :
    return apply_filters( ‘bp_the_topic_post_poster_link’, bp_core_get_user_domain( $topic_template->post->poster_id, str_replace(‘.’,’-‘,$topic_template->post->poster_nicename), $topic_template->post->poster_login ) );

    Can you send this bug report to the developers of Buddypress ?

Viewing 1 replies (of 1 total)
  • https://buddypress.trac.wordpress.org/ is the place for bug reports; we might miss them here.

    I went over user name issues like this, and I believe it should be fixed in our upcoming 1.3 release. Would you report this as a bug please and then we can test it in the dev version, to confirm if it’s still an issue or if it’s fixed? Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Bug + hack to correct it’ is closed to new replies.
Skip to toolbar