Shashin 2.2 – Slideshows and Built-In Video Display

Shashin was overdue for an upgrade. The new version incorporates the latest version of Highslide, which means the big new feature is slideshows (scroll to the bottom of my Shinjuku Gyoen [the linked post is not published yet] post to see a slideshow in action). I made the addition of the slideshow buttons automatic, which means if you’re already a Shashin user, you don’t need to do anything to enable slideshows in posts you’ve already written.

The other major new feature is that Shashin can now play Picasa videos locally in a Highslide window. This is also automatic. If you already have video thumbnails in your posts, and you’ve selected Highslide for viewing full size images in the Shashin Settings menu, then the videos will now play locally in a Highslide window. Here’s an example [the linked post is not published yet].

A word of caution if you put a video within a slideshow of other images: the video will load up and start playing, but if the length of the video exceeds the length of time that’s set for displaying each image, the video will stop and the next image will be loaded. There’s no way around that.

Other new features include:

  • New options in the Settings menu for autoplaying Highslide slideshows, how long to display each slideshow image, and the dimensions for displaying videos.
  • Checks for shashin.css and highslide.css in your active theme directory – this allows you to customize the stylesheets without worrying about losing your customizations the next time you upgrade Shashin.
  • No longer necessary to update image paths in highslide.css if you have WordPress installed in a subdirectory on your site (unless you choose to put a custom version of highslide.css in your theme directory – then you need to update the image paths to point to their location in the plugins directory).
  • For the caption in Shashin’s tags, in addition to “y” or “n” you can now use “c”, which means all pictures will get the caption “Click picture to enlarge” and all videos will get the caption “Click picture to play video.” The actual caption will be displayed in the Highslide window.
  • Option to make thumbnails not clickable, if you don’t want to display a larger version.

You can download Shashin 2.2 at

Important note to upgraders: Deactivate your old installation, upload the new version, and then reactivate. This is necessary for required updates to the Shashin tables. Also, you need to sync all your albums – click the “Sync All” button (under the “Manage” tab).

56 thoughts on “Shashin 2.2 – Slideshows and Built-In Video Display

  • WordPress database error: [Unknown column ‘enclosure_type’ in ‘field list’]
    UPDATE wp_shashin_photo SET photo_id = ‘5204588986010422242’, album_id = ‘5204588328880425937’, title = ‘DSC_0387.JPG’, description = ”, link_url = ‘’, content_url = ‘’, width = ‘1024’, height = ‘681’, taken_timestamp = ‘1211706938000’, uploaded_timestamp = ‘1211706938000’, tags = ”, enclosure_url = ‘’, enclosure_type = ‘image/jpeg’, deleted = ‘N’ WHERE photo_id = ‘5204588986010422242’

  • Sorry about that! I inadvertently removed a line from the code that updates the shashin database tables. I just uploaded a fixed version to – version 2.2.1.

  • Hi Mike,

    great plugin, I was just thinking about tackling the upgrade of highslide myself and see you have already done it!

    I have installed plugin, but for some reason it has dropped the highslide navigation buttons, and the slideshow will not work.

    Also, how do you alter such options as how to centre the slide and darken the background? etc

  • I keep getting this error:
    hs.addSlideshow is not a function


    Not sure if its another plugin conflicting

  • bizarre, I started deactivating plugins and testing each one, after deactivating XML Google maps and myweather plugins it then (highslide) started working properly. Still working after reactivating plugins

  • Hi John – I found a small bug that might be related. There was an extra slash in the URLs for shashin.css and highslide.css. I’m uploading a corrected version now.

    shashin/display/shashin.css controls the appearance of the thumbnails, and shashin/display/highslide.css controls the appearance of the slideshow. The Highslide CSS is documented here.

  • I updated via the link in the dashboard but I forgot to deactivate the plugin first. I don’t know if that really matters, but; since the update the photos don’t show anymore and when I click sync or when I try to add an album, I get this warning: Album metadata synced, but failed to sync photos. This was probably a bad connection trying to read the RSS feed. Please try again.
    Same result every time. I don’t think it is due to a bad connection… picasa works fine.

  • Hi Martha,

    Sorry for the trouble. I don’t think it should cause any permanent harm if you didn’t deactivate/reactivate right away, as long as you do it at some point. It wasn’t clear from your previous message, so I want to make sure – have you deactivated/reactivated since installing the new code? If you have, but you’re still having trouble, let me know, and I’ll help you debug it.

  • great stuff Mike, I did see that // when I was looking at the Firebug html code and thought it might be an error

    I have now got Shashin doing what I want. For others who want to customise it a little bit more, this is what I did to get it working like Lightbox2 (where background dims on opening photo)
    1) you need to edit the php file, shashin.php (can be found under plugins
    2) Find this bit of code:

    hs.graphicsDir = \” . SHASHIN_DISPLAY_URL . ‘highslide/graphics/\’;
    hs.align = \’center\’;
    hs.transitions = [\’expand\’, \’crossfade\’];
    hs.outlineType = \’rounded-white\’;
    hs.fadeInOut = true;

    Then add the following to the above:
    hs.dimmingOpacity = 0.75;
    hs.dimmingDuration = 100;

    3) Now I wondered why it wasn’t working, but then had to add the following to the highslide.css

    .highslide-dimming {

    hope that helps someone else.

  • Oh, yes. I forgot to mention. I did deactivate-reactivate since. I also tried downloading by hand to see if it made a difference, but it didn’t.

  • Hi Martha – please check line 220 of Shashin.php. It should be this:

    if ($foundEnclosure === false) {
        $wpdb->query('ALTER TABLE ' . SHASHIN_PHOTO_TABLE . ' ADD enclosure_url text NOT NULL');
        $wpdb->query('ALTER TABLE ' . SHASHIN_PHOTO_TABLE . ' ADD enclosure_type varchar(255) NOT NULL');

    If you’re missing the “enclosure_type” line, then put this in your code:

    // if ($foundEnclosure === false) {
    //    $wpdb->query('ALTER TABLE ' . SHASHIN_PHOTO_TABLE . ' ADD enclosure_url text NOT NULL');
          $wpdb->query('ALTER TABLE ' . SHASHIN_PHOTO_TABLE . ' ADD enclosure_type varchar(255) NOT NULL');

    Then deactivate and reactivate – this will force it to create the enclosure_type field.

    There was a glitch with my upload to last weekend, and for a short time there was a version of Shashin.php that had the missing line. I’m guessing this is what’s causing your problem. If this isn’t the problem, please let me know.

  • Hi,

    thank you for this useful plugin. I’ve a question regarding slideshows. Currently, I used a single-image widget to display a single thumbnail link. I would like to click on the thumbnail to display the image in Highslide (i.e. I don’t want it to link to Picasa, but just to obtain my images from the Picasa database and display in Highslide). However, my album contains several photos. How can I make it such that when I click on a thumbnail, a single image slideshow appears in highslide for my whole album?


  • This is a wonderful plugin! I am slowly, but surely, figuring out the markup language to customize things a bit more. Questions about the [salbumphotos] tag:

    1) I have it set to 2 columns as 3 run into my sidebar, when the albums are displayed. However once you’ve opened the album, 3 thumbnails would look great. Anyway I could tweak that?

    2) Is there a way to customize the way thumbs are displayed when using the [salbumphotos] tag? For example my thumbnails are separated by horizontal lines, yet your photo page has a box around the thumbs when I click on an album. I edited the shashin.css but it did not change.

  • I’ve upgraded, but I’m not experiencing this problem. If this is still a problem for you, please try deactivating all your plugins except Shashin. Then let me know if you’re still seeing this problem.

  • I have found the problem. Two file display/admin-edit.php and display/admin-main.php were corrupt (0 Kb). I have delete and reinstall all the plugin. Now it’s ok

  • Hi,
    after upgrade, i can see the album thumbnails, but the all the photos are actually gone. both gone for admin/manage/shashin section and the blog photo pages.

    is it some sort of syncing problem?

  • Hi Pei – did you deactivate and then reactivate Shashin? There were some database changes in the new version, so you need to reactivate.

  • Mike, thanks for the prompt reply. no it iss active, and all the settings are still there. I don’t know why this is happening. really odd. it happen to both of my blogs. both link to the same picasa album.

  • Hi Mike,
    i did as you suggested- sync all albums again, and it works, it’s just that i need to re-deleted the unwanted albums, but it works this way, maybe this is something to look into in the future update, but many thanks to you.

  • hello, I’ve been using Shashin for my site for awhile, and was just adding it to my uncle’s blog. So I downloaded the latest shashin (2.2.1) and installed it (WP2.6.2).

    Everything looked good, but when I add an album I get:
    Failed to add album. This was probably a bad connection trying to read the RSS feed. Please try again.

    I tried various things, modified the URL (appended #, tried no album). I made sure that I could wget from my server to picasaweb.

    Then I tried plugging the album into my own far older shashin. And that failed. Then I tried synching one of the albums already on my blog, and that failed.

    Anyway, if you’ve made it this far, cheers. It seems like the problem is either where google’s RSS meets shashin, or deeper in my server. Any hints?


  • Hi Rick – have you tried again since then? The wget lets you know if the Picasa RSS server is responding, but it doesn’t let you know if the feed is correct.

    If it wasn’t just a temporary problem, are your uncle’s blog and your blog hosted with the same ISP? With an old version and a new version of Shashin failing at the same time, it what seems like the same way, it makes me wonder if there was a change in the server environment.

    Let me know if you’re still having trouble, and I’ll help you debug.

  • got it to work, thanks! Upgraded MySQL, some other stuff, and like magic. The weird part was that it used to work with my older install, and that failed too.

  • Hello!… this plugin is fantastic but I have a problem. If I am logged in I can see the photos in the highslide box… but if I am not logged in the highslide box does not work.

    can you help me?


  • Hi Macarena – I’ve never heard of that problem before. Can you give me a link to your site so I can see? (you can email it to me if you don’t want it published in comments here)

  • Hi Anung – sorry for taking so long to write back. I haven’t used FancyBox before, but after taking a quick look at how it works, I think it might not be too hard to integrate with Shashin (integrating Highslide was a lot of work, but the interface for FancyBox looks to be much more elegant). I’ll have to put this behind some other improvements that people have been waiting for though. So support for it probably won’t be in the next version, but maybe the one after that.

  • Thanks for a great plugin. I’m testing it for a larger upgrade of my website (have been using Gallery2). A very easy question that I’m sure there must be an easy answer to, where can I change the default width of the single image? It is set to 640 but my page is only 570, so in order to let the single image look nice, I need to change it for every insert. Is there a way to set the default to 512? Thanks!

  • Hi again. I have a strange problem with one of my albums. When I remove a picture from the picasa album (both web and local – they are all syncronized), the album in wordpress is not updated correctly leaving “empty boxes” for the missing pictures. I have updated the album several times, and when I check the pictures from the Shashin album admin panel – the pictures are updated and the removed pictures are removed there. But not on the Photo Album page. See what I mean here:
    I’m not able to add it again, since I’ve already have linked to the pictures from several posts – and I guess removing and adding the album will break the links.

    Any thoughts about this?

  • Hi Mike.
    Thank you for a wonderful plugin.

    Please let me question on one.
    Please teach the method of making “<< Photo Albums” the navigation” displayed on a thumbnail page just like your site.

    It is set to option setting “Your page for album photos:” as

    I’m sorry by poor English.

  • Hi amigo – On my page with the salbumphotos tag, I put the link:

    <a href=””>« Photo Albums</a>

    The URL for the link is the page that shows my album thumbnails.

    In the next version of Shashin, this will all be easier, and you’ll get a link like this automatically.

  • Hi there,

    Me again.
    Is there a way to change the display order of the albums when only display a select number of albums using the album key?

    Now they are sorted by publication date in an ascending order and i would like to reverse that so the newest album goes in front.

    Is that possible?

  • Hi Kristiann – Ah, I hadn’t thought about this before. When you use the sthumbs tag, it will display the photos in the same order you listed them in the tag. But this doesn’t happen with album thumbnails. I’ll fix this in the next version.

  • Hi Mike – just auto-upgraded, wonderfully nifty thing! Re-sync’d and am back in business.

    One question. On the Manage Shashin page – how would I sort the Albums by “newest” up top? I am guessing (without looking at the code) that I could sort Descending by Album Key…but not 100% without digging in.

    My reasoning is that the current alphabetical works…but to have the newest up top will make it much easier for me to reference the latest images for post inclusion.

    Thanks for a great addon!

  • Hi GFB – you’ll need to edit some code for this one. It’s at line 548 in Shashin.php:

    $allAlbums = ShashinAlbum::getAlbums(“ORDER BY TITLE”);

    You can change that to any column name in the shashin_album table. In your case, I think you want LAST_UPDATED

    This should be a configurable option. I’ll try to work it into the next release.

  • I’d like to change the size of the text for album name on the page that lists all the pictures in a specific album (using salbumphotos). In which file should I search for the code?


  • Any idea when you will be able to fix the bug of the thumbnails not being removed from the photo pages when I remove pictures from the Picasa album? Shashin “sees” the changes, because the picture count in Shashin is updated when I sync, but it still leave blank thumbnails with captions on my pages… hope you can find the cause behind this! Thanks.

  • Great plug-in!

    The upgrade to 2.7 caused no issues for me either; however I’ve been trying to find a theme that I like and I have been having some issues. On most of the themes I have tried, the pictures I have listed in a post and the start of the next post wrap onto the same line which makes reading the blog very disjointed. This didn’t happen in the default theme, so I think it is a problem in the theme – just wondering if I could get some pointers as to how to fix it?

  • Hi Ben – sure, activate the theme you want to use and let me know the URL, and I’ll take a look (you can email it to me if you don’t want to publish it here).

  • Hi again. I am using the [salbumphotos=160,4,n,y] tag. How can I get it to sort in reverse order of upload (newest first)? I have tried to put taken_timestamp in there with a desc before and after, but I cant get it. Thoughts? I know I am doing something wrong.

    • Hi Patrick – I just posted the beta version of Shashin 2.3 on my site. Try using the new version. It doesn’t require the salbumphotos tag for showing an album’s photos anymore, and there’s an option on the Shashin settings page that lets you control the sort order for the photos.

Comments are closed.