Opened 15 years ago
Closed 15 years ago
#1620 closed defect (bug) (fixed)
bp_create_excerpt issue with external images for activity stream...
Reported by: | grimbog | Owned by: | |
---|---|---|---|
Milestone: | 1.2 | Priority: | major |
Severity: | Version: | ||
Component: | Keywords: | bp_create_excerpt, images, external, activity | |
Cc: |
Description
issue has been detected where users are placing in large (greater than 800px width) images from an external site using media upload with urls. The activity stream displays these external images without being scaled down, so bleed over to the 2nd column.
I've done a quick add_filter that simply strips out img tags for now, but suggest maybe having a scaler that simply sizes it down to within the main column width. Or maybe even filter out external site images altogether?
This brings a further issue - I'm getting users who are placing in a list of images on their blogs like so:
<img src="mysite.com/image1.jpg">
<img src="mysite.com/image2.jpg">
<img src="mysite.com/image3.jpg">
<img src="mysite.com/image4.jpg">
...which causes bp_create_excerpt to display them all because the word count doesn't exceed 55. Doesn't look nice on the stream, so I've stripped them out as described above via add_filter.
Replying to grimbog:
Additional thought on this - might be an idea to do as facebook for blog posts containing images e.g. grab one thumbnail to represent the blog post (rather than display multiple images).
...So it searches the content of the blog post for images, if one is found then process it as a thumbnail and align text next to it.