When posts are imported containing pictures with text that takes up less space than the pictures, the pictures are not contained within the post they belong to but overlap other posts. See this thread: http://drupal.org/node/36413

When the post is opened and resaved in Drupal, the problem is resolved.

Comments

ahwayakchih’s picture

Assigned: Unassigned » ahwayakchih

aggregator2 by itself doesn't change (at least shouldn't) content. The only thing that is "converted" are html entities (because Drupal doesn't recognize them when showing on page, and escapes each & no matter if it is already part of entity or not) and "local" links (so link local to source site becomes external link, with full url path, and works from Drupal site where aggregator2 is installed).

So most probably it's about theme and/or filters.

It would be good if You could post URL to the feed which brings problems, so i can test it and see what is the real problem :)

jivyb’s picture

Here's a test page where you can see what I mean:

http://www.sweetike.com/drupal-4.6.3/aggregator2/sources/82

Hope this helps. Please let me know if there's anything else I can do.

Valerie

ahwayakchih’s picture

First i thought it may have something to do with theme, but i got the same result on my test site (different theme). I tried removing style attributes (BTW Drupal's filter doesn't remove style from img tags?) with no result.
Then i tried right click on "missing image" box and selecting "view image" option and it worked. So i tried to just modify img tag so alt attribute contans "vvvv" string - and i saw "vvvv" on page.... like browser couldn't load it.

So my guess is that blogger just blocks "hotlinking" images, which means they do not allow access to image if it's requested from other site/server than blogger. If image is opened in firefox as it was new page, without any previous page in history (ie. firefox doean't give any referer type info to server) all is ok. But when it's viewed on page, that page's address may be given to server, and server blocks it.
Also after clicking on link, i get access denied page, which may be confirmation for my guess.

To be sure, try using old aggregator for the same feed, and see if images are visible. If they are then i'm lost - i have no other idea why (but i'll try to compare both aggregators and see if i can find a reason of problem).

jivyb’s picture

Were you having trouble viewing the images at all? Here's a screenshot (http://www.sweetike.com/drupal-4.6.3/agg2test.png) of how the test feed looks to me...the pics are visible and clickable, but just overlap the node (and it's title) below.

If I click on the feed item's title and then choose "edit" and change nothing but click "submit" everything's fine. The pics display correctly. Here's an example of another feed (http://www.sweetike.com/drupal-4.6.3/node/46) where I did this manually for all the affected feed items--the pic is visible, clickable, and in the right place. So I don't think it could be a problem with Blogger blocking the images.

Thanks...

jivyb’s picture

Sorry, the address for the feed that works is supposed to be http://www.sweetike.com/drupal-4.6.3/taxonomy/term/20

ahwayakchih’s picture

After "view image" and going back (ie. "back" button in browser, not refreshing or anything like that) image shows up. If I refresh page it disappears again :( So if it's cached it works ok.

Source of page seems to be ok.... i would bet it's theme's fault, but then it should work in different theme. It also shouldn't be something with server's settings because my test site is surely on different server :).

Have You tried different browsers (Opera, Konqueror, IE)?

It shouldn't have anything to do with aggregator2. At least not directly. Module doesn't change content except for decoding entities, and making "local" links to "full" links. Besides check source code of feed and compare with node's content - they should be the same (on edit page, because after Drupal's filtering it may be changed on page view).
As far as i know images work ok on http://nashvillesnews.net/ :(

jivyb’s picture

Ok--I guess maybe we have two problems here. One with the pictures not being contained within the node div and another with browser display of the images. I compared the feed content with the node content and there is one difference: there are some inline styles for the image that are stripped in the agg2 version. Here's what I mean:

Drupal node html: Only local images are allowed. Isaac kept putting this box on his head and then running into things because he couldn't see. So we felt bad for him and cut out a hole. He really had fun with it after that-- Cheap thrills!

Blog feed: Only local images are allowed. Isaac kept putting this box on his head and then running into things because he couldn't see. So we felt bad for him and cut out a hole. He really had fun with it after that-- Cheap thrills!

The missing styles could account for the image not being contained within the node div. But I checked with FF and IE and the pics came up fine. I went to the public library and it came up there. But I have a relative who can't view the pics either. She uses IE on Windows 98. I don't know what to do...the images come up fine with the original aggregator but then they're not nodes, which is a really big tradeoff.

jivyb’s picture

oops I have to redo the code examples so drupal displays the code as code. Here goes:

Drupal aggregator2 version of post: <a href="http://photos1.blogger.com/blogger/3891/407/640/DSCF3521.jpg"><img alt="" src="http://photos1.blogger.com/blogger/3891/407/320/DSCF3521.jpg" border="0" /></a> Isaac kept putting this box on his head and then running into things because he couldn't see. So we felt bad for him and cut out a hole. He really had fun with it after that-- Cheap thrills!

Blog feed of post: <a href="http://photos1.blogger.com/blogger/3891/407/640/DSCF3521.jpg"><img style="CLEAR: all; FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand" alt="" src="http://photos1.blogger.com/blogger/3891/407/320/DSCF3521.jpg" border="0" /></a> Isaac kept putting this box on his head and then running into things because he couldn't see. So we felt bad for him and cut out a hole. He really had fun with it after that-- Cheap thrills!

ahwayakchih’s picture

Images are not contained inside div (visually) because of theme. Actually they shoudl work better with style attributes stripped. You just have to fix Your theme's CSS. It looks like it makes images inside note floating to the left. Float means it's kinda "over" rest of things (and more exactly over some, and not over others). If You'll change CSS (just for test) and make images not floating, You should see them inside div tag.

BTW stripped style attributes are effect of html filter most probably. You can turn it off by configuring (edit "input format" and then edit "html filter" IIRC).

ahwayakchih’s picture

Status: Active » Closed (fixed)