Hey,

I wanted to add a message on each image node page under the image preview, but above the description (sort of sandwiched :P.)

I dived into the image.module searching for where I might do this, found:

  // Build the node.
  $node = new stdClass();
  $node->type = 'image';
  $node->uid = $user->uid;
  $node->name = $user->name;
  $node->title = isset($title) ? $title : basename($filepath);
  $node->body = $body;

Thought it might be in that general area where I'd add a statement to output a message in a custom div class.. Tried a few different things, but none of it seemed to work.. Am I looking in the right places..?

Basically the message would be "Share this image with family and friends! and then I'd output the current url onto the page using

$url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
print $url;

or something."

Comments

davidneedham’s picture

I highly recommend using CCK to make a new field for that content type.

sun’s picture

Status: Active » Closed (won't fix)

Sorry, unfortunately this request is way too specific. Please have a look at the issue queue - Image maintainers are buried already. You might want to try to get further support at http://drupal.org/support. Additionally, the answer to your question might be covered in the handbooks at http://drupal.org/handbook/modules/image already.
If you were able to solve this issue on your own in the meantime, you might want to add the involved steps to this closed issue, so other users searching for a similar solution might find it.