Skip to:
Content
Pages
Categories
Search
Top
Bottom

Avatars not showing because backslash stripped by core

  • @nolimit966

    Participant

    Hi, ive had problems from my users that avatars are not showing in the forums. I checked it out & it seems theres a backslash being removed from the URL to the image. I had to remove:
    add_filter( ‘bbp_get_topic_author_link’, ‘stripslashes’ ); from the filters.php and it now all works fine. Problem is my theme is in source control and surely editing core files cannot be correct, right?

    This is in my loop-single-topic.php file and this is what displays the name and avatar:
    <span class=”bbp-topic-started-by”><?php printf( __( ‘Started by: %1$s’), “”.bbp_get_topic_author_link( array( ‘size’ => ’90’))); ?></span>

    Is this a known bug and is there a better way to fix this? I am using the latest BBpress and WordPress 4.0. Avatar plugin is WP User Avatar

    Thanks

    Cheers

Viewing 4 replies - 1 through 4 (of 4 total)
  • @nolimit966

    Participant

    bump

    @nolimit966

    Participant

    bump

    @robkk

    Moderator

    yeah you shouldnt edit the core files.

    i see there is additional quotation marks in your code maybe replacing it with this will help.

    <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '90' ) ) ); ?></span>

    @nolimit966

    Participant

    I have tried replacing that, but there’s still no joy at all.
    The user profile link is still broken due to the space being stripped between the first and last name.
    So https://hub.hiddenurl.co.uk/forums/users/johncroft/ – 404 error
    https://hub.hiddenurl.co.uk/forums/users/john%20croft/ works fine. Is there a way to FORCE a space between the first and last name without hacking core code?

    Any help would be really appreciated. many of our users are getting frustrated by this problem & we are receiving support emails because of it.

    Thank you 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar