[resolved] Displaying Inline Images? (3 posts)

  1. ColePhoenix1969
    Posted 2 years ago #

    I looked through and didn't see that anyone else had a similar issue. I'm actually trying to display inline images. It always comes in the same format, so I am presuming I can accomplish this with filter_postie.

    The image format is:

    Image: http://somesitehere.com/thumb.jpg (http://www.somesitehere.com/clicktopage.html)

    So, I need to get the parens and the word Image: out to make the link work. And, what I would like to accomplish would be for postie to actually display the inline image and associated link.

    Where it would show up as:

    <img src="http://somesitehere.com/thumb.jpg" />

    Is this possible or am way off base here?


  2. ColePhoenix1969
    Posted 2 years ago #

    I was just playing with this, and my solution was to write an sql statement that runs in cron that automatically replaces part of the Image: with img src code.

    The first part is:

    [ Moderator note: code block fixed. ]

    update wp_posts set post_content = replace(post_content, "Image: <a><img src = \"") ;

    It's not elegant and its not perfect. But, it seems to work OK enough.

  3. Wayne Allen
    Plugin Author

    Posted 2 years ago #

    See http://postieplugin.com/extending/

    Using the postie_post_before filter you can use preg_replace() to accomplish the same thing as your sql statement.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Postie
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.