Wordpress/Smugmug PlugIn: SmugPress

2

Comments

  • jevjev Registered Users Posts: 30 Big grins
    edited April 14, 2006
    Can you post some instructions ?
    Thanks
  • flyingdutchieflyingdutchie Registered Users Posts: 1,286 Major grins
    edited April 14, 2006
    dogwood wrote:
    Dutchie:

    Your blog tie-in to your smugmug site is awesome. I just hooked up with wordpress (I was using blogspot... wordpress seems a lot better though) and will try to mess around this weekend (after taxes-- groan-- of course) to see if I can do something similar.

    I'm continually amazed at what kind of hacks people here come up with-- and like many others-- I'd be very interested in tips or code that helps implement the wordpress/smugmug concept.

    - I installed WordPress on my 'own' host (server hosted by SpeakEasy).
    - I used the WordPress' default theme (look and feel).
    - Then i modified some of the PHP and the CSS files a little to make it look like my smugmug-site (sand in the background, colors, etc.) and i made a copy of my smugmug-header (logo/photocrawl) and put it into the WordPress header.
    - For importing pics from smugmug (changes in galleries, etc.) i use the /wp-admin/import-rss.php on my WordPress installation. You need to modify it by providing it with the RSS-url (just copy the RSS feed URL as provided by smugmug) and I added a secret code so that no-one else can go to this URL and execute the import-rss.php scripts.

    That's it :D
    I can't grasp the notion of time.

    When I hear the earth will melt into the sun,
    in two billion years,
    all I can think is:
        "Will that be on a Monday?"
    ==========================
    http://www.streetsofboston.com
    http://blog.antonspaans.com
  • jevjev Registered Users Posts: 30 Big grins
    edited April 14, 2006
    Thank you
    I will try to set it up
    - I installed WordPress on my 'own' host (server hosted by SpeakEasy).
    - I used the WordPress' default theme (look and feel).
    - Then i modified some of the PHP and the CSS files a little to make it look like my smugmug-site (sand in the background, colors, etc.) and i made a copy of my smugmug-header (logo/photocrawl) and put it into the WordPress header.
    - For importing pics from smugmug (changes in galleries, etc.) i use the /wp-admin/import-rss.php on my WordPress installation. You need to modify it by providing it with the RSS-url (just copy the RSS feed URL as provided by smugmug) and I added a secret code so that no-one else can go to this URL and execute the import-rss.php scripts.

    That's it :D
  • dogwooddogwood Registered Users Posts: 2,572 Major grins
    edited April 14, 2006
    thank you
    Thanks for sharing. This may be a bit more than I want to tackle this weekend-- but it's a fantastic idea and much cooler than what I have set-up right now.

    Portland, Oregon Photographer Pete Springer
    website blog instagram facebook g+

  • LOVEphotosLOVEphotos Registered Users Posts: 107 Major grins
    edited April 16, 2006
    WordPress
    I decided to set up a blog and try out WordPress yesterday, and of course they have been down most of today and still down @ the moment eek7.gif

    Quote from their site...
    Hello folks. We’re doing a little unplanned emergency maintainance to some systems that were causing problems over the past few weeks. Your blog will be unavailable for a few more minutes while we get everything situated. Relax and enjoy this Easter Sunday morning, and know that everybunny at WordPress.com is working their butts off to get your blog back online. — Matt and the team
  • renstarrenstar Registered Users Posts: 167 Major grins
    edited April 30, 2006
    A bump on this.. Any progress?

    -r
  • jevjev Registered Users Posts: 30 Big grins
    edited May 3, 2006
    Any updates on that ?
    Can you please post some code ?
  • tsk1979tsk1979 Registered Users Posts: 937 Major grins
    edited May 4, 2006
    jev wrote:
    Any updates on that ?
    Can you please post some code ?
    I have the code now. I will be trying it over the weekend and will be reporting any issues to alan. Once we both sync up this will be released under GPL
  • jevjev Registered Users Posts: 30 Big grins
    edited May 4, 2006
    Thank you for the update
    tsk1979 wrote:
    I have the code now. I will be trying it over the weekend and will be reporting any issues to alan. Once we both sync up this will be released under GPL
  • sebpaynesebpayne Registered Users Posts: 73 Big grins
    edited June 3, 2006
    Any news on this? I'm dying for some Smugmug/WordPress intergration so I can stop using Flickr :-D

    Seb
  • SystemSystem Registered Users Posts: 8,186 moderator
    edited June 13, 2006
    What's happenng?
    Is there anything going on here or is this a dead issue?
  • tsk1979tsk1979 Registered Users Posts: 937 Major grins
    edited June 13, 2006
    eworley wrote:
    Is there anything going on here or is this a dead issue?

    did not work as expected. It actually uploads images to smugmug.
    So I shifted to one page view on smugmug with every post a img src link to the photo I want to post. All you need is a good theme, and things work like a charm, check out http://tanveer.in/photoblog
  • flyingdutchieflyingdutchie Registered Users Posts: 1,286 Major grins
    edited June 14, 2006
    eworley wrote:
    Is there anything going on here or is this a dead issue?

    If you installed WordPress on your own server, take a look at post #33 (http://www.dgrin.com/showpost.php?p=289363&postcount=33). For me, it works like a charm. I import changes on my galleries into my blog (WordPress installation) and sometimes edit the imported posts to make them look better or to add some extra text.
    I can't grasp the notion of time.

    When I hear the earth will melt into the sun,
    in two billion years,
    all I can think is:
        "Will that be on a Monday?"
    ==========================
    http://www.streetsofboston.com
    http://blog.antonspaans.com
  • dominikdominik Registered Users Posts: 48 Big grins
    edited June 29, 2006
    Was the code of the original plug-in ever released?

    The import-rss solution works if you want to import photos as blog posts, true, but I'm looking for a bit more integration than that. I might end up writing something myself, but if there's code out there already I'd love to take a look at it as a starting point.
  • spellboundphotospellboundphoto Registered Users Posts: 6 Beginner grinner
    edited July 13, 2006
    Also looking for Wordpress Plugin
    Hello everyone! I just joined DigitalGrin so I could reply to this thread. I would LOVE an easy plugin way to show random or recent photos from my smugmug galleries on my wordpress blog. I don't want to have to pick specific photos ahead - I want it to work more like the recent photos RSS feed. I tried that - but it just gave links to the recent photos. I want the thumbnail or tiny size.

    What do you all think?

    Thanks!
    Jeanne
    http://www.spellboundphoto.com
    http://www.spellboundblog.com

    PS - see the banner at the top of the DigitalGrin forum? The one that changes everytime you load the page. I want something like that with the photos coming from my smugmug galleries... and clickable back to the gallery from which they came. Thanks!
  • MacHeadCaseMacHeadCase Registered Users Posts: 51 Big grins
    edited July 13, 2006
    Hello everyone! I just joined DigitalGrin so I could reply to this thread. I would LOVE an easy plugin way to show random or recent photos from my smugmug galleries on my wordpress blog. I don't want to have to pick specific photos ahead - I want it to work more like the recent photos RSS feed. I tried that - but it just gave links to the recent photos. I want the thumbnail or tiny size.

    What do you all think?

    Thanks!
    Jeanne
    http://www.spellboundphoto.com
    http://www.spellboundblog.com

    PS - see the banner at the top of the DigitalGrin forum? The one that changes everytime you load the page. I want something like that with the photos coming from my smugmug galleries... and clickable back to the gallery from which they came. Thanks!

    Jeanne, you mean a rotating header image? On my blog, I use a script I found, the The Random Image Rotator by Automatic Labs. Problem is that you would need to import your images and store them in a folder and drop the script in that folder because I don't think you can get the script to link to an outside source for your images (script absolutely has to reside in the image folder to work).

    Maybe a PHP guru can come in this thread and post some code you could use...
  • spellboundphotospellboundphoto Registered Users Posts: 6 Beginner grinner
    edited July 13, 2006
    Jeanne, you mean a rotating header image? On my blog, I use a script I found, the The Random Image Rotator by Automatic Labs. Problem is that you would need to import your images and store them in a folder and drop the script in that folder because I don't think you can get the script to link to an outside source for your images (script absolutely has to reside in the image folder to work).

    Maybe a PHP guru can come in this thread and post some code you could use...
    Not exactly - but close.
    Basically I want to be able to put a vertical stack of thumbnails on a sidebar in wordpress. Pretty little tempting pics that encourage folks to click on them and go to my galleries at smugmug. I know I can do that by hand.. my big dream is a plugin that can use the recent photo RSS feed to display the pics dynamically.

    I guess if it doesn't exist I will try and figure out the logic myself - but would so much rather discovery that this has already been solved by someone else. I also will try hunting for a generic rss feed/image plugin of some sort - but the trick would be to get it to dynamically link back to the proper gallery.

    Thanks for the ideas!
    Jeanne
    http://www.spellboundphoto.com
    http://www.spellboundblog.com
  • MacHeadCaseMacHeadCase Registered Users Posts: 51 Big grins
    edited July 13, 2006
    Not exactly - but close.
    Basically I want to be able to put a vertical stack of thumbnails on a sidebar in wordpress. Pretty little tempting pics that encourage folks to click on them and go to my galleries at smugmug. I know I can do that by hand.. my big dream is a plugin that can use the recent photo RSS feed to display the pics dynamically.

    I guess if it doesn't exist I will try and figure out the logic myself - but would so much rather discovery that this has already been solved by someone else. I also will try hunting for a generic rss feed/image plugin of some sort - but the trick would be to get it to dynamically link back to the proper gallery.

    Thanks for the ideas!
    Jeanne
    http://www.spellboundphoto.com
    http://www.spellboundblog.com

    It would be very cool indeed if we could put a SmugMug badge in our sidebars just like Flickr offers its users. If it can be done with Flickr, it can be done with SmugMug for sure.
  • GarethLewinGarethLewin Registered Users Posts: 95 Big grins
    edited July 13, 2006
    Not exactly - but close.
    Basically I want to be able to put a vertical stack of thumbnails on a sidebar in wordpress. Pretty little tempting pics that encourage folks to click on them and go to my galleries at smugmug. I know I can do that by hand.. my big dream is a plugin that can use the recent photo RSS feed to display the pics dynamically.

    I guess if it doesn't exist I will try and figure out the logic myself - but would so much rather discovery that this has already been solved by someone else. I also will try hunting for a generic rss feed/image plugin of some sort - but the trick would be to get it to dynamically link back to the proper gallery.

    Thanks for the ideas!
    Jeanne
    http://www.spellboundphoto.com
    http://www.spellboundblog.com

    It should be pretty easy to write some xsl to convert the rss feed to what you want. I might hack on it this weekend, see if I can come up with a way.
  • GarethLewinGarethLewin Registered Users Posts: 95 Big grins
    edited July 14, 2006
    Well, I got what i wanted done, it's not great xsl, I'm sure people here can do a lot better, my xsl is very rusty, but it works

    http://www.garethlewin.com/smugmug/

    Please tell me the results of your efforts if you use this.
  • spellboundphotospellboundphoto Registered Users Posts: 6 Beginner grinner
    edited July 14, 2006
    Hope to play with it this weekend
    Well, I got what i wanted done, it's not great xsl, I'm sure people here can do a lot better, my xsl is very rusty, but it works

    http://www.garethlewin.com/smugmug/

    Please tell me the results of your efforts if you use this.

    Gareth-

    Neat! I will have to play with this this weekend if I can make some time.
    In a perfect world I would set this up such that it could be encapsulated in a Wordpress widget and give you some sort of control panel option from within Wordpress to refresh the retrieval as you like. Of course, I don't know how to do any of that (yet) - but I suspect I will be able to sort it out.

    I will DEFINITELY let you know if/when I work it out.

    Thanks!
    Jeanne
    http://www.spellboundblog.com
    http://www.spellboundphoto.com
  • GarethLewinGarethLewin Registered Users Posts: 95 Big grins
    edited July 14, 2006
    Gareth-

    Neat! I will have to play with this this weekend if I can make some time.
    In a perfect world I would set this up such that it could be encapsulated in a Wordpress widget and give you some sort of control panel option from within Wordpress to refresh the retrieval as you like. Of course, I don't know how to do any of that (yet) - but I suspect I will be able to sort it out.

    I will DEFINITELY let you know if/when I work it out.

    Thanks!
    Jeanne
    http://www.spellboundblog.com
    http://www.spellboundphoto.com

    Jeanne, I will also try to make time to look into that.

    I don't think you can have the updates be done automatically from inside wordpress though, based on other plugins I've seen you will probably have to add a cron job.
  • MacHeadCaseMacHeadCase Registered Users Posts: 51 Big grins
    edited July 14, 2006
    I really do like the Flash-based sidebar Flickr badge. Can it be ported to accommodate SmugMug galleries, one at a time, do you think?

    I am not much of a CSS/PHP guru but will try to look into what you posted this weekend to see. Thanks a lot, gareth! thumb.gif
  • GarethLewinGarethLewin Registered Users Posts: 95 Big grins
    edited July 14, 2006
    I really do like the Flash-based sidebar Flickr badge. Can it be ported to accommodate SmugMug galleries, one at a time, do you think?

    I am not much of a CSS/PHP guru but will try to look into what you posted this weekend to see. Thanks a lot, gareth! thumb.gif

    I need to see an example of the flash badge, but what I did should be doable in flash, I just don't know any flash.
  • MacHeadCaseMacHeadCase Registered Users Posts: 51 Big grins
    edited July 14, 2006
    I don't know if you can see this page or not but here goes: Create your own Flickr badge.

    I hope this is apparent to you. There is an animation that goes on: one of the pictures (random) is bigger (fills four squares) then it grows smaller and it gets back into its own little square.

    189679697_71dffd5b85.jpg

    As the screenshot was taken, one of the images was integrating its own square. It gives you the code when you click on the link first link I gave you, if you have a Flickr account. It's javascript I think? ne_nau.gif

    Edited to add:

    DOH!!! *head hits desk*

    I completely forgot! You can see the badge in action on an old blog of mine right here, in the blog's sidebar: http://macheadcase.blogspot.com/.
  • spellboundphotospellboundphoto Registered Users Posts: 6 Beginner grinner
    edited July 18, 2006
    Interesting option using Ad-Rotator
    So.. I tried an experiment with a plugin called Ad-Rotator<!--more-->. It will take any text or basic HTML and rotate which one is shown (you separate each bit with < ! - - more - - > without the spaces).

    See http://www.spellboundblog.com and reload a few times to see different images on my sidebar. Definitely not automatic in terms of picking new photos.... but gives a nice sense of changing images that can be easily changed without uploading images onto the server where wordpress is. I may also try to play with the Lightbox plugin - but I am torn about showing the photos large in place - or taking the opportunity to bring the person to my smugmug gallery.

    I am happy with this answer for now - but will try and play with the more automated options if I get some time. Thought I would share this option in case anyone else here wants to try.

    Good luck everyone!
    Jeanne
    http://www.spellboundblog.com
    http://www.spellboundphoto.com
  • MacHeadCaseMacHeadCase Registered Users Posts: 51 Big grins
    edited July 18, 2006
    Whoah! That is very cool, Jeanne! thumb.gif
  • flyingdutchieflyingdutchie Registered Users Posts: 1,286 Major grins
    edited July 18, 2006
    I use a similar 'rotator' on my blog-site. It is a scaled down version of the one i use on my smugmug-site.

    I wrote it my self. Here is the main code as found on my blog. You can use it as you like and modify it to fit your blog:

    Go to my blog (blog.antonspaans.com), and do 'View Source'. Look for the DIV elements that have the ids ml_1, ml_2, ml_3 and ml_4.
    The left-most DIV has id ml_4 and is invisible (it pre-loads the image so that you won't see a delay in loading the image).
    Then three visible DIVs follow: ml_3, ml_2 and ml_1.

    This is the javascript code that determines which images are shown. It does so by writing out a STYLE element assigning background images to the above DIVs:
    var g_logoImgs = new Array();
    g_logoImgs[g_logoImgs.length] = "32759999-Th.jpg"; // Bell Lady
    g_logoImgs[g_logoImgs.length] = "539999-Th.jpg";  // Downtown Statue
    g_logoImgs[g_logoImgs.length] = "14919999-Th.jpg"; // Hyannis Boat
    g_logoImgs[g_logoImgs.length] = "18679999-Th.jpg"; // Hancock
    g_logoImgs[g_logoImgs.length] = "29769999-Th.jpg"; // Girls downtown
    g_logoImgs[g_logoImgs.length] = "29769999-Th.jpg"; // Sleeping couple
    g_logoImgs[g_logoImgs.length] = "4179999-Th.jpg";  // Cops on bikes
    g_logoImgs[g_logoImgs.length] = "4179999-Th.jpg";  // Shopping cart
    g_logoImgs[g_logoImgs.length] = "17819999-Th.jpg"; // Sunset Charles;
    g_logoImgs[g_logoImgs.length] = "17819999-Th.jpg"; // Comm Ave. Statue
    g_logoImgs[g_logoImgs.length] = "29769999-Th.jpg"; // North End bikers
    g_logoImgs[g_logoImgs.length] = "22179999-Th.jpg"; // France Gites
    g_logoImgs[g_logoImgs.length] = "22179999-Th.jpg"; // France watertap.
    g_logoImgs[g_logoImgs.length] = "23629999-Th.jpg"; // 3 brothers
    g_logoImgs[g_logoImgs.length] = "21459999-Th.jpg"; // Flowers 1
    g_logoImgs[g_logoImgs.length] = "21459999-Th.jpg"; // Flowers 2
    g_logoImgs[g_logoImgs.length] = "23489999-Th.jpg"; // Lente
    g_logoImgs[g_logoImgs.length] = "21359999-Th-1.jpg"; // JamSession.
    g_logoImgs[g_logoImgs.length] = "21789999-Th.jpg"; // A'dam bike
    g_logoImgs[g_logoImgs.length] = "9909999-Th.jpg"; // Portugal
    g_logoImgs[g_logoImgs.length] = "9909999-Th.jpg"; // Aveiro
    g_logoImgs[g_logoImgs.length] = "36209999-Th.jpg"; // BBQ NLBorrels
    g_logoImgs[g_logoImgs.length] = "32759999-Th.jpg"; // Kermit on biker
    g_logoImgs[g_logoImgs.length] = "6729999-Th.jpg"; // Blink 182
    g_logoImgs[g_logoImgs.length] = "15559999-Th.jpg"; // 2 cops
    g_logoImgs[g_logoImgs.length] = "15559999-Th.jpg"; // T Bruschi
    g_logoImgs[g_logoImgs.length] = "38969999-Th.jpg"; // Elizabeth Hurley
    g_logoImgs[g_logoImgs.length] = "20009999-Th.jpg"; // Marathon 2005
    g_logoImgs[g_logoImgs.length] = "20009999-Th.jpg"; // Marathon 2005
    g_logoImgs[g_logoImgs.length] = "17909999-Th.jpg"; // De Cordova
    g_logoImgs[g_logoImgs.length] = "9019999-Th.jpg"; // New York
    g_logoImgs[g_logoImgs.length] = "9019999-Th.jpg"; // Cristina Yotham
    var    g_rotateCntr;
    var    g_imgBase = "[URL="http://flyingdutchie.smugmug.com/photos/"]http://flyingdutchie.smugmug.com/photos/[/URL]";
    function doRotate()
    {
        var aLen = g_logoImgs.length;
        var idx  = ((new Date()).getTime()) / 100;
        g_rotateCntr = Math.round(idx) % aLen;
        var wrStr = "";
        wrStr += ('<'+'style type="text/css">');
        for (var i = 0; i < 4; i++)
        {
            var urlImg = "url("+g_imgBase+g_logoImgs[(i+g_rotateCntr)%aLen]+")";
            var imgID  = "ml_"+(i+1);
            wrStr += ("#"+imgID+" { background-image: "+urlImg+"; } ");
        }
        wrStr += ("<"+"/style>");
        document.writeln(wrStr);
    }
    doRotate();
    

    note: the above code may be incorrect. DGrin tries to interpret HTML tags (anything that starts with '<'), even inside [ CODE ] sections... <img src="https://us.v-cdn.net/6029383/emoji/ne_nau.gif&quot; border="0" alt="" >
    I can't grasp the notion of time.

    When I hear the earth will melt into the sun,
    in two billion years,
    all I can think is:
        "Will that be on a Monday?"
    ==========================
    http://www.streetsofboston.com
    http://blog.antonspaans.com
  • MacHeadCaseMacHeadCase Registered Users Posts: 51 Big grins
    edited July 18, 2006
    Excellent stuff, flyingdutchie! I think this is what I've been looking for. Thank you very much! clap.gif
  • Mike LaneMike Lane Registered Users Posts: 7,106 Major grins
    edited July 18, 2006
    note: the above code may be incorrect. DGrin tries to interpret HTML tags (anything that starts with '<'), even inside [ CODE ] sections... <img src="https://us.v-cdn.net/6029383/emoji/ne_nau.gif&quot; border="0" alt="" >

    It doesn't do that in the customization room <img src="https://us.v-cdn.net/6029383/emoji/thumb.gif&quot; border="0" alt="" >
    Y'all don't want to hear me, you just want to dance.

    http://photos.mikelanestudios.com/
Sign In or Register to comment.