diff -upr upload_image.orig/upload_image.css upload_image/upload_image.css --- upload_image.orig/upload_image.css 2009-06-05 12:02:35.000000000 -0700 +++ upload_image/upload_image.css 2009-06-21 07:21:58.000000000 -0700 @@ -5,8 +5,19 @@ } .upload-image-images .item-list ul li { - list-style: none; + list-style: none !important; display: inline; - background: none; + background: none !important; float: left; + padding: 0 !important; + margin: 0 !important; +} + +.upload-image-clear, +.upload-image-images .item-list, +.upload-image-images .item-list ul { + display: block; + clear: both; + padding: 0; + margin: 0; } diff -upr upload_image.orig/upload_image.module upload_image/upload_image.module --- upload_image.orig/upload_image.module 2009-06-05 10:15:09.000000000 -0700 +++ upload_image/upload_image.module 2009-06-23 21:46:41.000000000 -0700 @@ -77,7 +77,7 @@ function upload_image_form_alter(&$form, ); $form['upload_image']['upload_image_title_template'] = array( '#type' => 'textfield', - '#title' => t('Upload image size'), + '#title' => t('Upload image title'), '#default_value' => variable_get('upload_image_title_template', '!node-title (!file-name)'), '#description' => t('Select how the title of uploaded images should look like. Available placeholders are: !node-title: The title of the original post, !file-name: The name of the uploaded image, !file-description: The description of the uploaded image.'), ); @@ -258,7 +258,7 @@ function upload_image_save($node) { $image->uid = $user->uid; $image->title = strtr(variable_get('upload_image_title_template', '!node-title (!file-name)'), array('!node-title' => $node->title, '!file-name' => $file->filename, '!file-description' => $file->description)); $image->date = format_date(strtotime('now')); - $image->taxonomy = $node->taxonomy; + $image->taxonomy = array(); $node_options = variable_get('node_options_image', array('status', 'promote')); foreach (array('status', 'moderate', 'promote', 'sticky', 'revision') as $key) { $image->$key = in_array($key, $node_options); @@ -284,7 +284,7 @@ function upload_image_save($node) { /** - * Delete images attache to a node or only delete the reference to a node. + * Delete images attached to a node or only delete the reference to a node. * * @param $node the node object */ @@ -315,7 +315,7 @@ function upload_image_delete($node) { function theme_upload_image($list) { $output = '
'; $output .= theme('item_list', $list); - $output .= '
'; + $output .= '
'; return $output; }