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%5DWhen the wordpress username of the topic’s poster contains a “.”, the username’s link appears like this :
http://www.site.com/members/user.nameBut in buddypress, the members link must contain “-” and not “.”. The link must be :
http://www.site.com/members/user-nameThis is the hack to fix this problem :
in plugins/buddypress/bp-forums/bp-forums-templatetags.phpIn 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 ?
- The topic ‘Bug + hack to correct it’ is closed to new replies.