• Dan

    (@memeslider)


    So I have Lightbox installed on my site and it is working great with my photos in posts and galleries. The final frontier now is to somehow find a way to add the rel=”lightbox” tag to any photos that are posted using email/postie.

    Can anyone point me in the right direction on how I might be able to accomplish this?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Dan

    (@memeslider)

    ok…. figured it out myself.

    in postie-function.php…

    line 401 should read:

    ‘”rel=”lightbox”><img src=”‘ . $config[“URLPHOTOSDIR”] . $thumbImage . ‘” alt=”‘

    works great!

    thanks and good luck!

    Thread Starter Dan

    (@memeslider)

    ok well, it did work.

    I recently changed themes. Now when an image is posted, it is not appended with rel=”lightbox”. Earlier posts were, but not now. Why?

    I tried to put code examples, but the did not format in this post correctly. So here is a source example:

    https://www.danielcburns.com/example-source.rtf

    The relevent sections are in red.

    Why the disparity? Why is Postie writing this different now? Any clues on where i should look?

    Thanks all!

    Thread Starter Dan

    (@memeslider)

    Well, it looks like the new theme was not the issue. It is Crontab. It strips the styling from the image. I don’t get this at all. If I run it manually it works fine, but as soon as I use Cron to trigger the get_mail.php page, it strips the style from the image.

    No idea how this could happen, if anyone has any ideas, I’d love to hear them.

    Thanks.

    Greetings!
    You are not alone, and the problem you describe is a very real problem. Postie WILL strip your <Div class=. . > from your emailed post when using Cron, or cronless postie.

    It appears that Postie insists on being run in a browser window in order to preserve your styles.

    I’m combing the Postie-functions as we speak. I did see a few workarounds over at Postie’s home, none of which work here on WP 2.2 and Postie 1.1.1.

    Anybody with any inklings on this stuff?

    In my case I’m simply trying to get the images I post floating right. Take a look at https://www.afoto.com/wordpress to se what I mean.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Postie and Lightbox? Can they play nice?’ is closed to new replies.