How to Using Lightbox Feature in MarsEdit?
  • I have a little Problem by using the WordPress LightBox-Plugin and MarsEdit.

    When i uploading a image with MarsEdit, it works fine. I make my own MediaMarkup with the right image-Size for my WordPress-Blog. Uploading works, and the images would be shown in the right way on my Blog.

    But how i can bring the feature from the WordPress LightBox-Plugin and MarsEdit together? I have NO IDEA!!

    Link to WordPress LightBox-Plugin: http://www.4mj.it/lightbox-js-v20-wordpress/

    I think, maybe i must change some Code in the MediaMarkup, but i don't know where or what. I am not a Programmer oder Coder or something else, just a Blogger. ;-)

    I use a Second Plugin, that make the works with LightBox in my Blog.

    Link to: http://mdkart.fr/blog/plugin-add-lightbox-pour-wordpress/

    When i look at the Author-Plugin Page i see some code lines, i think i must only figure out a way how i can include that code-snippets in the MarsEdit MediaMarkup. It is only an idea from me, i am not sure how it would be works.

    Maybe i am thinking to complex, maybe!

    Need Help, a bit.
  • It's not easy to do this from within MarsEdit since it sends the image to WordPress which makes the various sizes ... but it doesn't tell MarsEdit what thumbnails it has created.

    My way of solving this is to use either flickr or SmugMug, and then with with the help of an applescript create a custom tag which is processed by a custom wordpress plugin - the end result can be found here

    http://mostrom.eu/ - this address uses smugmug
    http://mostrom.eu/se - this blog uses mostly flickr

    You can see a short movie of how I do this here http://gallery.me.com/jemostrom#100119/OmniWebScreenSnapz001
  • You could of course also use MarsEdit to write the text and upload the images. Then switch to WordPress and insert the images from there.
  • jem said:
    You could of course also use MarsEdit to write the text and upload the images. Then switch to WordPress and insert the images from there.


    Jepp, that would be my way normally by writing Posts with lot of images inside. Or i save the Post as a Draft and send it to my Blog, adding images later.

    I will look at that video, maybe it would be a answer of my Problem. Thank you for that example.
  • If anyone has some applescripts around this that they could share, that would be much appreciated.
  • I don't know if you mean what I'm doing but if that's the case ... (note that is uses satimage regexp osax)

    on modifylinks()
    tell application \"MarsEdit\"
    tell document 1
    set bodysrc to body
    set res to change \"<a href=\\"(http://www.flickr.com/photos/.*?)\\".*?<img .*?width=\\"(.*?)\\" alt=\\"(.*?)\\".*? src=\\"(http://farm.*?).jpg\\" height=\\"(.*?)\\"/>(.*?)</a>\" into \"[flickr src=\\"\\4\\" page=\\"\\1\\" width=\\"\\2\\" height=\\"\\5\\"]\\3[/flickr]\" in bodysrc with regexp
    set body to res
    end tell
    end tell
    end modifylinks

    modifylinks()

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!