Not sure about this actually...
Let me explain: It comes down to the fact that the feed source probably floats (aligns) the image to the left or right, making the text wrap nicely around the image. However: this kind of markup isn't default available on phpBB, one would have to use the advanced BBcode extension or manually add the required BBcodes for it. Since there is no way for the BBcode to know if and then how a forum this has implemented. Therefore I have no other sane choice than to strip all that kind of formatting and replace it with a simple
That works fine for most content, however it might be that a feed has the image in 1 line with text content, either before (like your example) or after the text. Or maybe somewhere in the middle. Some have breaks before or after them, some don't.
Now the most simple solution might be to change this line
Code: Select all
"/\<img(.*?) src=\"(.*?)\"(.*?)\>/is" => "\n[img]$2[/img]\n",
You can safely apply this at your board if you want to.
However, this might again lead multiple blank lines following each other up. I could of course replace multiple blank lines (say 3) to 1 or 2 but sometimes that is just not what's intended.
So yeah, basically I haven't found a solid solution for this. The main problem is that I simply cannot foresee all the feeds in the world