Shashin 3.0 now at wordpress.org

Over the past year I’ve worked on Shashin 3 in 20 minute pomodoro-like sessions, to give myself something interesting to do on my daily train commute back and forth to work. I’ve used it to teach myself clean code practices. How to apply clean code practices to WordPress plugin development will be the subject of my talk next weekend at Philly WordCamp.

If you haven’t seen the posts I’ve been writing while I’ve been working on it, see the Post to Post Links II error: No post found with slug "shashin-wordpress-plugin" and Post to Post Links II error: No post found with slug "shashin-3-development-progress" to see the new features. It’s been a lot of work, and a lot of fun. Many thanks to everyone who helped with testing of the alpha and beta versions.

Please use the comments section of this post for any questions or bug reports. Note if you overlook the notice that tells you to install Post to Post Links II error: No post found with slug "toppa-plugin-libraries-for-wordpress" before upgrading Shashin, and you use WordPress’ automatic plugin upgrade feature, you won’t see Shashin’s warning telling you that Toppa Libraries is missing. So you will need to install the Toppa Libraries, and then de-activate and re-activate Shashin in order to complete the upgrade.

35 Comments

  1. Nin October 30, 2011

    Hi Mike!

    I’ve updated my Shashin installation with your updates. I’m just having some problem with the displayed albums. They’re too big for the screen. I tried setting the image to the smallest, but nothing happened.

    Did I miss something? 🙂

    Regards,
    Nin

  2. Mike October 30, 2011

    Hi Nin – I clicked around your site for an example but didn’t see one. Could you give me a link, and let me know the shortcode you are using? (if you don’t want the link to be visible to everyone here, you can send it to me through my contact form instead).

    I did notice on your “Extra Shots” page that the old shortcode is showing up on the page. You should either replace it with the new style shortcode, or turn on support for the old shortcode format (on the Settings page). If you don’t have too many of the old shortcodes, I recommend replacing them with the new shortcode (the performace is a bit better if Shashin doesn’t have to look for both shortcode formats)

    • Nin October 30, 2011

      Wow, thanks for the quick response, Mike! Hmm..I was able to use a shortcode with album, ID, order, and reverse. But, as expected, it displayed everthing. 🙂

      I’m just wondering how I can display only a certain number of albums on one page and display the rest on the next page (with Previous and Next buttons like in the previous version). If I limit the number of albums, there’s no way to find the rest.

      • Mike October 30, 2011

        You can do that using the “offset” attribute – see here: http://www.toppa.com/shashin-wordpress-plugin/#attributeOffset – that’s how I do it on my photos page.

        • Mike October 30, 2011

          Hi again – I just noticed the “offset” example on the page needed some improvement, so I’ve revised it. If you already looked, please look again.

  3. smikwily October 30, 2011

    Crop square isn’t working for me on the widget. Congrats on the release!

    • Mike October 30, 2011

      Hi – the crop square setting is a “soft” one – you’ll only get a cropped image if the size you requested is available cropped from the photo service. For Picasa, the available crop sizes are 32, 48, 64, 72, 104, 144, 150, and 160. If you use the size labels in Shashin, xsmall = 72, and small = 150. Let me know if this helps.

      • smikwily October 31, 2011

        That worked, as expected. Thanks!

  4. Delirium October 31, 2011

    I’m using WordPress 3.2.1 and I recently updated Shashin to 3.0.1 Now I can’t found Shashin’s configuration page, and all the widgets and albums are gone:

    http://www.cabanyal.com/nou/qui-som/galeria-de-imagenes/

    Shashin is still listed as an active plugin, but nothing more.

    Some advice?

  5. Delirium October 31, 2011

    OK, missed the libraries plugin, now the problem is why the old posts show really big thumbnails.

    And there is no random picture widget.

    Anyway, thanks for your job. Your plugin is awesome.

  6. Mike October 31, 2011

    Hi – you can still get random photos in the widget – for the “order by” field, select “random”. Old photos should be the same size, but I just noticed the old shortcode for album thumbnails is rendering too large. Thanks for letting me know. I will upload a fix today.

  7. Stafflute October 31, 2011

    Hello! I’ve found two problems.
    The widget doesn’t order for date.
    And the widget choose the photo excluded in random.
    How can I solve them?

    • Stafflute October 31, 2011

      *photos
      sorry

      • Mike October 31, 2011

        Hi – I forgot to have it check the ‘include in random’ setting. I will fix that. But the date ordering is working fine for me. You need to pick “yes” for “reverse”, so it goes from newest to oldest, leave “Photo IDs” blank, and for “limit” enter the number of pictures you want to display. Does that help?

        • Stafflute October 31, 2011

          For the second question, thanks!

          Shashin orders by last inserted URL image in Shashin (differently by last-inserted image in Picasa).

          Sorry for my bad English.

  8. Risa October 31, 2011

    We have links to individual albums throughout the site that are now broken with the update since the url now stays the same regardless of album.

    For instance, http://www.anglelake.org/resources/photo-gallery/?shashin_album_key=1 used to link to album ID #1 but now shows the page with a thumbnail of all albums which is http://www.anglelake.org/resources/photo-gallery/.

    Is there any way to link to individual albums with the upgrade?

    • Mike October 31, 2011

      Thanks for letting me know. I will try to find a solution for this tonight, to maintain backward compatibility for your links.

      • Risa November 2, 2011

        Sweet! Thanks for fixing this.

  9. Stephen Cousins October 31, 2011

    Hi

    Just installed the new version but can’t get it to look right and can’t get ‘sync all’ to work. It tells me there’s an error, it can’t retrieve my picasaweb albums

    feed:https://picasaweb.google.com/data/feed/base/user/stephen.cousins?alt=rss&kind=album&hl=en_GB

    Little help?!!

    Stephen

  10. Mike October 31, 2011

    Hi Stephen – it sounds like you are upgrading from the previosu version. Make sure you have Toppa Plugin Libraries for WordPress installed, and then deactivate and reactivate Shashin. Unfortunately the automatic plugin update that WordPress provides hides my plugin activation notifications, which explain the correct steps. If that doesn’t fix it, please copy-and-paste the exact error message you are getting, so I can get an idea of the problem.

  11. smikwily October 31, 2011

    I had simiilar to Stephen. Ended up having to deleted a few of the albums from inside Shashin before it would take off. Started with the ones it was complaining about and had to axe about 2-3. Once it finally went through, it picked up the ones I had deleted anyhow.

    • Stephen Cousins October 31, 2011

      Yea, is there any way to just delete the entire database of albums and start again? I have loads!!

  12. Stephen Cousins October 31, 2011

    Thanks

    Yes I have upgraded. Deactivated and reactivated as suggested but still getting this error.

    Shashin Error: Failed to retrieve album feed at http://picasaweb.google.com/data/feed/api/user/stephen.cousins/albumid/5420640147732095233?kind=photo&alt=json 404 Not Found

    Stephen

  13. Stephen Cousins October 31, 2011

    Ok so, update.

    I deleted all the problem albums, (which were showing with a default date of 1970 and as having 0 photos) then managed to sync with no problem and re-add albums back that I had deleted. All ok.

    However, now, Highslide doesn’t seem to be working and I can’t get the albums in reverse date order! I’ll keep trying.

    Stephen

    • Stephen Cousins October 31, 2011

      Final update

      Got the reverse=”y” sorted. Now the last remaining issue is Highslide. I have set it to use Highslide but when I click on an album it defaults to my Picasa website. Little help?

      Stephen

  14. John Binner October 31, 2011

    One of the items I used most was the ALL albums listing on a page. With this tag “depreciated” I am no longer able to do this. How do you suggest I keep using your wonderful code without this? I’d hate to have to resort to a second album method to get this to work. 🙁

    • Mike October 31, 2011

      Hi John – do you mean the salbumlist tag, that showed the album description to the side of the thumbnail? Or do you mean just showing all the album thumbnails? You can still show all your album thumbnails.

      • John Binner October 31, 2011

        I did mean the salbumlist tag…..this made a very nice for my needs list of ALL albums, in reverse order, by date. I LOVED this, and was the main reason I switched to Picasa when I did. Now I find it nearly impossible to list out all my albums, without resorting to some other plugin, etc.

        • Mike October 31, 2011

          Hi John – you can still do this – just set the limit really high:

          [shashin type=”album” order=”date” reverse=”y” size=”160″ crop=”y” columns=”3″ position=”center” limit=”1000″]

          To make the new shortcode easier to understand and flexible, but still safe, I needed to enforce a default limit if one wasn’t specified.

          Does that address it, or do you specifically miss having the album description also appear?

          • John Binner October 31, 2011

            album description was nice, but if this is the best we can do for now, I guess this will have to do. I am tempted to just simply link-out to Picasa itself and stop trying to embed. 🙁

        • John Binner October 31, 2011

          eureka it did work! 🙂 Thanks for the help, if you want to click on my photo link on my URL, that is EXACTLY what I wanted. 🙂 thanks!!!!

  15. Mike October 31, 2011

    Hi Stephen – you’ve got a lot of javascript running on your site. Something must be interfering with Highslide. The first thing to look at is probably the quantserve tracking scripts. I haven’t seen that one before, but some of the Google Analytics plugins interfere with highslide. You could try temporarily disabling all your plugins except Shashin, and see if that fixes it. Then turn them on one by one to see which is the culprit.

  16. Stephen Cousins October 31, 2011

    Hi mike

    So, if I put this

    [shashin type="photo" columns="3" size="small" crop="y" order="date" reverse="y" caption="y"]

    Highslde works no problem. But if I put this

    [shashin type="album" columns="3" size="small" crop="y" order="date" reverse="y" caption="y"]

    High slide does not work.

    Any ideas?

    Stephen

    • Mike November 1, 2011

      Hi Stephen – when you click an album thumbnail, Shashin does not launch Highslide at that point. It uses jquery code I wrote to fade out the album thumbnails on the page, and replaces them with the photo thumbnails for the album you clicked. You can try it on my site: http://www.toppa.com/photo-albums/

      I have not seen a problem with this on any other sites so far. Have you tried temporarily disabling your other plugins like I suggested? Another script must be interfering with the jquery code. You could also try temporarily switching themes, as I can’t tell from the outside which of the other scripts on your site are from your theme and which are from other plugins.

  17. Stephen Cousins November 1, 2011

    Ok, thanks. I will try that and get back to you.

Comments are Disabled