Hi,

I have recently set up my first Drupal install (4.4.0) and everything has gone pretty well, but I'm having some problems with uploaded images messing up my formatting.

I'm using the Marvin2K theme, and I've made the code mods as per the Install file that comes with Node_Image so that I can upload and display images. The problem is that once uploaded, the thumbnail image breaks the formatting of story titles. I'm pretty new to this, but from having a look at the source code, it seems that the theme is displaying the source of the image (I may be wrong?) as well as the image itself. If the title is longer than the size of the image, it will take up a chunk of white space as well.

A screenshot showing a story with a thumbnail, and one without, demonstrates the problem pretty well:

http://www.btinternet.com/~bsampson/node_image_marvin2k.png

There's also the code that is being generated:

http://www.btinternet.com/~bsampson/node_image_marvin2k.txt

I'd be very grateful for any help in fixing this.

Barry

Comments

nedjo’s picture

The issue seems to be that marvin2k outputs the node->title twice: once (as is standard with all themes) as text, and once as a title attribute of the "a" tag (the link). I'm thinking it'ss this second usage that is causing the issue. To resolve it, try deleting (in the theme's code) the part outputting the title tag. Look for this in the _node() function. (I haven't used marvin2k so don't know where this is done in the code...).