Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: activity stream (1.2.5.2)


Roger Coathup
Participant

@rogercoathup

@svetka812

Hi Tatiana – it would be better to ask this as 2 separate questions in the forums (one about images, and one about text). Also make the title a bit clearer, as that will get more people to help you (“activity stream 1.2.5.2” is too general).

To get more help and quicker: I suggest you create two question threads, something like: “how do I stop small images from blog post excerpts getting enlarged in the activity stream updates?” and “Why are my blog post updates missing paragraph breaks when shown in the activity stream?”

My quick thoughts:

images
The problem with image sizes is because a core function in BuddyPress is forcing activity images, that don’t have their height or width set explicitly, to be 100px high. The function causing the problem is bp_activity_thumbnail_content_images().

I’ll raise this as problem in the forums or maybe bug trac.

update text
I don’t have a problem with paragraph breaks in the activity stream. My blog posts are being shown correctly with the breaks. I’m using a default installation of BP1.2.5.2

Paragraphs can be removed by a filter in WordPress / BuddyPress. Have you made any changes to your functions.php or bp-custom.php to turn off the ‘autop’ filter? i.e. do you have any code like this in those files:

add_action(“init”,”remove_autop_filters_from_activity”);
function remove_autop_filters_from_activity(){
remove_filter( ‘bp_get_activity_content_body’, ‘wpautop’ );
remove_filter( ‘bp_get_activity_content’, ‘wpautop’ );
}

Perhaps there is something in the blog template you are using that is doing this?

Ask this one about paragraph breaks as a separate question in the forum (and include my comment).

Cheers, Roger

Skip to toolbar