Skip to:
Content
Pages
Categories
Search
Top
Bottom

Site Wide Activty Stream (WEIRD BEHAVIOUR)

  • @porscheheritage

    Participant

    on bp.1.1.2 on wpmu2.8.4a

    my Site Wide Activity stream seems to be acting funny.

    – Images on blog post included on the activity stream when clicked on Go to the Image attachment page INSTEAD of the BLOG entry..

    anythoughts

Viewing 5 replies - 1 through 5 (of 5 total)
  • @porscheheritage

    Participant

    As a work around I had to make the IMAGES on the blog post itself to be NOT clickable…

    (not a real solution)

    @johnjamesjacoby

    Keymaster

    That’s about the best thing to do at the moment.

    It’s taking the blog post and displaying it in its entirety, with typical formatting from the “the_content” filter.

    You can put your own filters on “bp_get_post_content” to get the desired results.

    @porscheheritage

    Participant

    Thanx John,

    I was wondering if you know where I can tweak those filters. I did a search on the Codex, but I was unsuccessful .. I also browsed through my files and still no luck!

    Thankx!

    @porscheheritage

    Participant

    Ok.. I think I found it.

    bp-activity-sitewide-feed.php

    @johnjamesjacoby

    Keymaster

    Your best bet is to make a custom functions to put in wp-plugins/bp-custom.php, to hook into bp_get_post_content and alter the results.

    Something like…

    function your_custom_post_content( $post_content ) {

    // Change the line below to do your custom magic
    $new_post_content = $post_content;

    return $new_post_content;

    }
    add_filter( 'bp_get_post_content', 'your_custom_post_content' );

    In this line…

    $new_post_content = $post_content;

    …you will want to figure out how you want to trim out the extra mark-up you don’t need.

    This could also be done with some custom kses filtering, but I think this way is the easiest way to make sure you’re not changing anything else in the process and are only filtering and affecting this one area.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Site Wide Activty Stream (WEIRD BEHAVIOUR)’ is closed to new replies.
Skip to toolbar