Index: imagecache_profiles.module =================================================================== --- imagecache_profiles.module (revision 207) +++ imagecache_profiles.module (working copy) @@ -37,6 +37,12 @@ function imagecache_profiles_preprocess_ $size = variable_get('user_picture_imagecache_profiles', 0); } } + // Viewing a node + if ($account->nid) { + if (variable_get('user_picture_imagecache_nodes', 0)) { + $size = variable_get('user_picture_imagecache_nodes', 0); + } + } // If viewing a comment if ($account->cid) { if (variable_get('user_picture_imagecache_comments', 0)) { @@ -92,6 +98,14 @@ function imagecache_profiles_form_alter( '#description' => t("This will set the picture size when viewing a user's profile page."), ); + $form['pictures']['settings']['user_picture_imagecache_nodes'] = array( + '#type' => 'select', + '#title' => t('Node picture preset'), + '#default_value' => variable_get('user_picture_imagecache_nodes', ''), + '#options' => $presets, + '#description' => t("This will set the picture size when viewing a node post."), + ); + $form['pictures']['settings']['user_picture_imagecache_comments'] = array( '#type' => 'select', '#title' => t('Comment picture preset'),