Shashin 3.0.2
Tonight I pushed a set of updates to Shashin that should address most of the issues people have reported in the last 24 hours. I tried to be thorough in the development and beta testing, so I’m glad to see most of the issues are minor. Thanks everyone for the detailed reports. Note you will also need to update Toppa Plugin Libraries for WordPress. Here’s the list of updates in Shashin 3.0.2 (from the readme file):
- Album photos table now inherits position from parent album thumbnail table
- Now handles Shashin 2 shashin_album_key query string arg, for old links
- Bug fix: numeric fields (like photo count, pub date) were getting cleared when updating ‘include in random’ settings for albums
- Bug fix: now checks for ‘include in random’ flag on albums and photos when generating random thumbnail display
- Bug fix: fixed size for album thumbnails using old shortcode format
- Aligned ‘update include in random’ button on Tools menu with radio button column
- Updated explanation on Settings menu for photo thumbnails
- Added .pot translation file
48 Comments
Comments are Disabled
Just upgraded to 3.0.2. Everything seems to be working except the positioning in the new version.
My old tags used to look like this:
[simage=3450,200,n,left,]some text blah blah blah
And the text would wrap around the image that was floating to the left. But that doesn’t work anymore, the image is always centered now.
I tried changing to a new tag:
[shashin id="3450" size="200" position="left"]some text blah blah blah
But it does the same thing.
Looking at the markup, it looks like the float:left is on the table, but it’s then wrapped by a which is a block. Is this intentional?
Thanks for a great plugin!
Oops, forgot about the entities. The last paragraph should read:
Looking at the markup, it looks like the float:left is on the table, but itβs then wrapped by a <div class=”shashinPhotoGroups”> which is a block. Is this intentional?
Hi Bill – it’s not the outer div causing it. Your theme’s style.css is setting the width of all tables to 100% of the available space, which makes the float meaningless. Look for this in your theme’s stylesheet:
If you remove the “width: 100%” line, the float will work.
You were right! Didn’t realize it had to do with the Twenty Eleven theme. Thanks!
For anyone using the Twenty Eleven theme, I copied shashin.css to my twentyeleven theme directory and made these changes:
.shashinThumbnailsTable {
margin: 5px;
margin-top: 0 !important; /* override twenty eleven “.entry-content table” style */
margin-bottom: 0 !important; /* override twenty eleven “.entry-content table” style */
width:auto !important; /* override twenty eleven “.entry-content table” style */
border-bottom:0 !important; /* override twenty eleven “.entry-content table” style */
}
.shashinThumbnailsTable td {
vertical-align: top;
border-top:0 !important; /* override twenty eleven “.entry-content td” style */
padding:2px 5px !important; /* override twenty eleven “.entry-content td” style */
}
Hi,
Just wondering if there is a fix to the following: when I click on “Next” or “Previous” above a gallery the refreshed gallery drops to the bottom of the screen. Then one has to scroll the new photos back into complete view. Any thoughts?
Thanks.
Hi Scott – that sounds odd. Can you give me a link so I can see? If you don’t want to post it here, you can email it to me through my contact form (the “contact” link in the top right)
Hi Mike,
I have an album at the bottom of the home page: http://wyofootball.com/
Thanks for looking into this.
Best
Hi Scott – I took a look – it has to do with the fact that it’s at the bottom of the page. I used firebug to add some space under it in my browser, and then it didn’t jump anymore. And when I view just that post at http://wyofootball.com/2011/10/blue-mountain-game-photos/ it doesn’t jump there. I believe it’s because the page gets longer when it switches to the thumbnails, but there isn’t enough content under it to “push” away (since the height of the thumbnails set is more than the album thumbnail) and you end up with that jump. I’m sorry, I don’t think there’s anything I can do about it. If you don’t mind adding some blank space under it, that will prevent the jump effect.
Thanks. I’ll add some space. It’s nice to have a non-Flash photo viewer for Picasa, and I noticed that this “jumping” issue doesn’t occur on the iPad.
Mike, If you get the chance, please take a look at this page. If you open an album and click on “next” to view more photos, the page jumps. There appears to be space below the photos. Am wondering how you’re adding the space to avoid the problem. Thanks much.
http://wyofootball.com/media/photos-2011/
I have a question regarding pagination as well. I’m noticing some usability issues just from observing my wife and my mom browsing pictures. They didn’t realize that there were additional pages because they would scroll down and not notice the controls at the top of the page. Can the controls be replicated at the bottom of the page too, below the pictures?
Hi Bill – thanks for the twenty eleven css mods. Adding pagination links at the bottom is a good idea – I will do that.
Will Shashin see the modified shashin.css file placed into a Twenty Eleven child theme directory?
And do you copy the entire css file or just include the additional styles?
Thanks
Hi Scott – I designed Shashin to look for shashin.css in your active theme folder before looking for it in the plugin folder. So you’ll want to put the complete css file in your active theme folder. I have not tested with a child theme but I believe it should work. If you try it, please let me know.
Hi Scott – What browser are you using? I took a look and I’m not seeing any jumping. I’m using Firefox 7. I will try it with whatever you are using so I can try to reproduce the problem.
Hello π
When I have opening the album in the shashin tool, Shashin can’t get the “date taken”.
This is an example:
http://i44.tinypic.com/5myamf.png
Bye!
Hi – if it says “unknown” then it means the date is not available. The date information needs to be in the json feed – Picasa, YouTube, and Twitpic include it if they can determine the data from the photo EXIF data.
Can I download the previous version somewhere? The new one is not working for me. Photos are no longer visible, it seems the old code is no longer supported.
I don’t want to retype all the code for all my photos so I think it’s easier to revert back to V2.
Frank – I’m deleting your other comment because I don’t appreciate foul language on my site. Did you read any of the instructions? There’s a setting on the settings menu to turn on support for the old shortcode. I am happy to try to help you if you can communicate with some basic decency.
Hi, was trying Shashin out and it’s very nice but doesn’t work quite right with my template. When I try to delete Shashin I get the following error:
Fatal error: Class ‘ToppaDatabaseFacadeWp’ not found in /homepages/37/d158431021/htdocs/MQD/blog/wp-content/plugins/shashin/Lib/ShashinContainer.php on line 24
I was not sure of the order in which I should delete Shashin and the Toppa libraries or if it mattered.
Thanks for the help!
Hi Rob – sorry for the trouble. It sounds like you deleted the Toppa Libraries plugin first. If you can reinstall, then delete Shashin, you’ll get a clean deletion. Or if you want to show me how it looks in your template, it might just be a question of adjusting some css to get it looking the way you want.
Hi Mike, tanks for the quick reply. Even after reinstalling Toppa Libraries I get an error trying to delete Shashin. Can I just trash the Shashin directory then try to reinstall/delete?
Actually at this point I think I want to keep Shashin but would still like to clean up the install.
The format issue I was having probably has to do with the theme I am using – thumbnails show up fine in my posts, but there is no thumbnail displayed for that post on the home page.
I’m very new at this so sorry if this is a boneheaded question. You can see an example at myquantumdiscovery.com/blog – I have a test post using another plugin and one using Shashin. I love how Shashin handles the album photos in the post but really would like some kind of image to show up on the home page as well.
Thanks!
Rob
Hi Rob – yes you can delete the shashin plugin folder and replace it with a fresh copy. Deactivate it before deleting the files.
I don’t know picasa express. Do you insert the photo with a shortcode like shashin, or another way? It’s been my understanding that shortcodes are ignored by wordpress when a post excerpt is displayed (which is why the shashin photo does not show up)
Hello ~ I am having trouble deleting the Shashin plugin. I followed the example of reinstalling Toppa libraries, so that I could delete Shashin first. The result is the same: a white screen with the following URL:
[[ url removed ]]
Thank you for your help.
Hi Leela – I removed the link from your comment to protect the security of your site (that link was for access to the admin area of your site).
Sorry for the trouble. I’m not sure how you may have gotten to that state. It sounds like you need to follow the steps here: How to deactivate all plugins when not able to access the administrative menus?
That will deactivate all your plugins. Then you can delete the shashin plugin folder and then reactivate your other plugins.
Hi Mike, great plugin. I’ve been using it for years. This update took out my widget for the sidebar however. Even by modifying the sidebar .php with your code directly, I can’t get it to populate with the my lastest photos. I’m sure I’m missing something simple. Your direction is appreciated.
Hi Matt – I removed the old widgets and replaced it with a single widget that can be setup to do anything the old widgets did. You should see the new widget in your widgets panel. There’s no need to modify the sidebar php. With the new widget, to see your newest photos, select “date” for order by, then “yes” for reverse (so it goes newest first), and then set the limit to how many you want.
The bizarre thing is I jumped on another computer with different browsers and versions and I do see the new widget but only in an older Firefox…
Firefox 3.6.23 – I see and can use new widget.
IE 8.0 – no go (and there are fewer options with other widgets)
IE 9.0 – no go (and there are fewer options with other widgets)
Google Chrome 15.0.874.106 (newest to date) – no go (and there are fewer option with other widgets)
WordPress 3.2.1 (tells me to upgrade Firefox)
So, I have it activated now, but I can only modify it on a certain computer with a certain version of Firefox.
Hi Matt – that’s odd. Can you also tell me the OS you are using? I have no problems with those browsers (and the current version of Firefox).
Sure, Win7 Pro SP1. I’ll get some screen shots put together to show you what I’m seeing. I agree, it is odd. But in my IT job, odd is usually all I see :).
Great plugin! But I messed up when upgrading π Installed and activated Toppa Plugin and upgraded Shashin – now I get this error message when trying to activate Shashin:
“Activation of Shashin failed. Error Message: Shashin upgrade is needed, but is not possible because the Shashin 2 Picasa server settings are missing. Please re-install Shashin 2 before upgrading to Shashin 3”
Can I find version 2 somewhere, or is there a workaround ?
Hope you can help !
Hi Kristian – if you don’t mind making a small code edit, there’s an easier solution than re-installing Shashin 2. Open the file shashin/Admin/ShashinUpgradeWp.php and go to line 50, where you will see:
and replace it with this (change the url as needed if you’re not using the US Picasa server)
Make sure there is no / at the end. This is only needed for the one-time upgrade process.
Hi Mike, I don’t mind editing code, but the suggested edit apparently did not solve the problem. When trying to activate the plugin upon editing, I get the error message “Unable to activate plugin as this results in a critical error” (rough translation from Danish π )
But at least this is another error than I got last time… Progress ? Not really π
Suggestions ?
I got the same error until I installed Toppa Plugins Libraries for WordPress. After that the only error I had was while syncronizing all albums (I have quite a lot), but it did syncronize the albums. Manually sync’ing 1 by 1 does not throw any error.
After this, everything seems to work as expected.
Sorry, I did not see that you have Toppa Plugins Libraries for WordPress and your problem might be somewhere else π
I don’t know if this is a hint, but when I open the .php-file in DreamWeaver (just to get line numbers so I can check if I edited the right line), DW says “There is a syntax error on line 50. Code hinting may not work until you fix this error”.
I have absolutely no knowledge in php, but this information may be helpful to you….
BR, Kristian.
Hi Kristian,
Sorry, I made a very basic mistake in the code I gave you – I forgot to quote it. It should be:
Hello Mike,
As an enthousiast user of your plugin, I have a question:
When I use your button for inserting photo’s, there’s no option to set crop on “y”. Is it possible to make this option available?
The photo’s on mys site generated with the old shortcode also don’t show up in their cropped size (160px). In version 2 they were cropped well.
Gr.
Erik
(Sorry for my bad English.)
Hi Erik – I can’t believe I left that out! I will add it to the media browser.
Can you give me an example of your old shortcodes? I will use it to test my code – I intended for the old crop setting to still work.
Hello Mike,
This is the used shortcode:
[simage=1934,160,n,left][simage=1950,160,n,left][simage=1940,160,n,left][simage=1943,160,n,left]<div style=”clear:both”></div>
The extra div’s were needed in combination with my theme.
By the way: I found out, that when I set the option “clear” in the mediabrowers on “Y” it places the “crop” function in the new shortcodes.
Erik
Thanks Erik – I see the problem. It was an oversight on my part. In Shashin 2 the images were cropped automatically if you picked a size that was available in cropped format. In Shahsin 3 you need to specify when you want a photo cropped. I will modify the code that reads the old Shashin 2 shortcodes, so that it will automatically crop the photos like it did before.
My albums are no longer posting and this is the message that I see. How do I fix this??
Fatal error: Uncaught exception ‘Exception’ with message ‘Invalid data property __get for supportOldShortcodes’ in /home/therevisthechair/endhungercalvert.org/site/wp-content/plugins/shashin/Lib/ShashinSettings.php:26 Stack trace: #0 /home/therevisthechair/endhungercalvert.org/site/wp-content/plugins/shashin/Admin/ShashinSettingsMenu.php(361): Lib_ShashinSettings->__get(‘supportOldShort…’) #1 /home/therevisthechair/endhungercalvert.org/site/wp-content/plugins/shashin/Admin/Display/settings.php(28): Admin_ShashinSettingsMenu->createHtmlForSettingsField(‘supportOldShort…’) #2 /home/therevisthechair/endhungercalvert.org/site/wp-content/plugins/shashin/Admin/ShashinSettingsMenu.php(340): require_once(‘/home/therevist…’) #3 /home/therevisthechair/endhungercalvert.org/site/wp-content/plugins/shashin/Admin/ShashinSettingsMenu.php(334): Admin_ShashinSettingsMenu->displayMenu() #4 /home/therevisthechair/endhungercalvert.org/site/wp-content/plugins/shashin/ShashinWp.php(89): Admin_ShashinSettingsMenu->run() #5 /home/therevist in /home/therevisthechair/endhungercalvert.org/site/wp-content/plugins/shashin/Lib/ShashinSettings.php on line 26
I had this problem too. I resolved it by turing off the old short code option and changing it on the album page to [shashin type="album"]
Hi Jacqueline – that error suggests to me the upgrade did not complete properly. First, please check the upgrade instructions:
http://wordpress.org/extend/plugins/shashin/installation/
If you did all that already, please try deactivating and reactivating Shashin on your plugin management panel. Activating Shashin 3 is what should trigger the creation of the “supportOldShortcodes” setting.
If that doesn’t fix it, please let me know.
Hi all – there have been several new comments in the past day or so. I’m dealing with a cracked sewer pipe in my basement. Please allow me a couple days and I will reply. Sorry for the delay.
Hi to all!
I am using Shashin for a while and it’s a great and functional plugin. I am facing a need to optimize the site speed and I also have a look at possible problems.
One of them was connected to Shashin pages, as there wasn’t a simply way of not using duplicate meta content between albums. Version 3+ uses Javascript to load albums so this issue dissapeared.
But another one appeared as one cannot use links to specific albums. So if one wants to send a link to one of the albums, this is impossible now.
And I have a question: are the albums discoverable by Google Bot (plain HTML&text)?
Hi Florin – you can make links to specific albums. There are two ways.
One is to create a page and use the shashin shortcode with type=”albumphotos” which will show all the photos for an album you specify (please see the Shashin documentation at http://www.toppa.com/shashin-wordpress-plugin/ for more details ).
The other way is to specify an album key in the URL. I included this so links made for Shashin 2 will still work. So if you have a page using shashin with type=”album”, you can link to that page like this:
http://www.toppa.com/photo-albums/?shashin_album_key=66
This will trigger the javascript code to display the photos for the album with that ID, as if you had clicked on the album thumbnail (the ID numbers are listed on the Shashin tools menu).