[resolved] Setting a default CAPTION (1 post)

  1. houghty
    Posted 5 years ago #

    Hello. I'm looking for some help.

    I would like to set a default image caption. So that if I don't explicitly define it using img1 caption='foo'# in the message body (my template utilises the {CAPTION} tag), then it will default to the message subject. I've tried for days now but can't get it working!

    In postie_functions.php, I've identified this piece of code, which is where I think I need to make it happen:

    } else {
    $value = str_replace('{CAPTION}', '', $value);

    However, replacing it with:

    } else {
    $value = str_replace('{CAPTION}', $subject, $value);

    doesn't appear to work. Perhaps the $subject is being reset somewhere, as the caption still comes out blank.

    Can anyone help me in trying to do this? You would make me very happy!


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Postie
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic