Change Log
PhotoSmash Changelog
0.5.07 – 3/9/2010
- Photo Manager enhancement – Resize Image – added ability to resize individual images or multiple images by selecting, creating new size files based on Gallery settings.
- Photo Manager enhancement – made toggling Custom Field data sticky.
- Added tag [preview_post] to Custom Form – for PhotoSmash Extend use to show a link to preview newly created post.
- Changed bwbps-layout.php so that Caption Styles that link thumbs to Posts works – these particular settings are not ideal unless you use a different layout for posts, which can be accomplished by specifying a separate single_layout in the shortcode: so something like
[ photosmash layout='main_pagelayout' single_layout='post_pagelayout' ]
(without the space before photosmash. - Added Maximum Image Size – in PhotoSmash Settings, go to Images tab. You can set the maximum number of bytes an uploaded image is allowed. This will let you gracefully reject images that are so large that they would cause the Out of Memory error associated with resizing images that are too big. Example: Enter 500000 for a max of 500kB image upload size.
- Added New Image Size…mini – now, in addition to thumb, medium, and image, you have a 4th image size called mini. Use this in your custom layouts with tags: [mini] for an full blown image tag or [mini_url] for just the URL so you can built your own links and image tags.
- Added Search field to Extended Navigation for PhotoSmash Extend users – this allows you to add a search field that searches the Image Tags, Image Caption, Image URL, Image Contributor, and Image Attribution.
- Fixed bug in Image Importing – when importing Images from the Media Library that had thumbnail and medium sized images that were the dimensions set for the photosmash gallery to which they were being imported, it was using the large image URL for all fields. Now it will use the appropriate file urls based on size.
- Added Ability to Attach/Display Other File Types – this ability allows you to Select Attachments from the WP Media Gallery and have a Thumbnail in a gallery link to those attachments (or you can paste in any URL manually). Go to Photo Manager, toggle “Toggle Video/File URL” to show the File URL field, either paste in the URL of the file you wish to link to or click the browse icon beside the field, use the pop-up to search for attachments in your WP Media Library (you can add them through the Media/Add New interface independently of posts), click the name of the file you wish to use, the save the image record. At this point, your thumbnail will link to the file based on the rules you have set in Caption Settings in your Gallery Settings.
- Fixed image_id tag in Layouts – you can use the Image ID as a tag in your Layouts (especially useful when creating new posts through PhotoSmash Extend – it allows you to use the psmash id=## shortcode to show individual images or fields attached to an image record
0.5.05 – 2/23/2010
- Enabled Extended Navigation for PhotoSmash Extend – ExtNav gives ability to create various navigations using drop down lists with Tags. Use multiple drop down lists to limit displayed images to specific tags.
- Optimized gallery display code for Custom Layouts - in bwbps-layout.php, added code so that on the first image for each layout and each alternate html, it will remember which fields are being used and only do the find and replace on subsequent images. There are now over 35 standard fields available to custom layouts, so in a gallery of 30 images, this becomes a lot of search and replace, particularly when only 4 – 7 fields are typically being used.
- Added Copy / Move multiple images from one gallery to another gallery - in Photo Manager, look for Copy/Move Images link. This will display the Copy/Move menu box. Select which gallery you want to copy/move images to (there is a dropdown for this in the Copy/Move menu box). Click on images to select for copy/move (the background will turn green when selected). Then click either the Copy or Move link. NOTE: copying an image does not copy the image files. It merely adds a new reference to the image files to another gallery. You can change the tags and custom fields for the new record without affecting the old image. VERY IMPORTANT, or you might delete images you don’t meant to…If you “DELETE” an image that is in 2 separate galleries, it will orphan the image in the gallery that you did not delete. To remove an image from one gallery and keep the files and also keep the image record in any other galleries, you should use “REMOVE” instead of “DELETE”.
- Photo Manager enhancements – Tweaked layout of the menu structure in Photo Manager. Added ability to toggle on/off Image Data
- Added field tag [tag_links] to Custom Layouts – this will display an images tags, linked to the tag gallery.
- Bug fixed - there was a problem with the bwbps.js javascript file where if there were multiple forms on a page, it was not looking at the right set of radio buttons during the upload file validation and was giving a validation error without uploading.
- Added esc_sql() to image query – with the addition of multiple tag viewing support, this was needed to prevent SQL injection attacks.
- Bug fixed – post_cat_exclude attribute of the photosmash shortcode was not working. This will now allow you to exclude categories when using the category dropdown via the shortcode.
- Added – ability to restrict Highest Ranked galleries to display images from a single gallery. Include the ‘where_gallery=id’ attribute in the shortcode.
- Added [author] tag to Custom Layouts – tag will display the image contributor’s login or nice name. Allows you to build your own links to an author page or other uses. Use [author_link] to get an automatic link to the author page.
0.5.04 – 2/4/2010
- Added manual sort option – set the sequence numbers in the Photo Manager and then set the Sort Field to Manual sort in Gallery Settings.
- Added options for linking to WP Attachment Pages – this lets you link your thumbnails to standard WordPress Attachment Pages just like the standard WordPress galleries do. Either choose the link option from Caption Styles (near very bottom) in Gallery Settings (also set defaults in PhotoSmash Settings), or use: href=’[wp_attachment_link]‘ in you link tags in a custom layout.
- Added the height and width settings for the Thickbox forms – set this in Uploading in PhotoSmash Settings
0.5.03 – 1/27/2010
- bwbps-media-rss.php file was missing in WordPress download – file is needed for PicLens integration.
0.5.02 – 1/26/2010
- Added ‘Delete Layout’ button to Custom Layouts admin page…be careful. Once deleted, they’re gone forever! I know the hard way.
- Added ‘images’ attribute to shortcode – it’s the number of images you want displayed. Use images=X to specify how many images you’d like the MySQL query to return. Do not use for paging, as it will never retrieve all the images and generate the page links. Use for special cases when you want to show a single image or a set number of images. Note that Random and the other Widget gallery types already had this option.
- Added PicLens support. Use [piclens] in your Custom Layouts to get the PicLens link, or use attribute piclens=true in the photosmash shortcode to get the link without tweaking a custom layout. If you’re going the shortcode route, you can also use the attribute piclens_link=’Start Slideshow’ for the text of the piclens link…use whatever text you’re wanting in place of Start Slideshow. It will default to ‘Start Slideshow’ with a little piclens icon.
- Added new widget gallery options: Random Tag and Tag (you specify one or more tags). Note that the Random Tag widget will automatically create a title: “Images tagged ‘your tag’. For the Tag gallery, you’ll need to specify your own title for the widget.
- Re-added image counts to Photo Manager.
- Security enhancement – Added HTML filtering to title attributes on URL links.
- Added if_field attribute to Custom Layout fields – this will let you put a field into a layout like this: [first_name if_field='last_name' if_before=', '] This will put a comma before the first name if it exists…and only displays first_name if last_name exists.
0.5.00 – 12/27/2009 – (we’re going to 1.0 after 0.5.00 has time to flush out bugs)
- Added 2 standard fields: Image Attribution and Image License. These must be turned on in PhotoSmash Settings to get them to display on the standard form. Also, the field values for uploaded images are only available on Custom Layouts at this time. Use the [img_attribution] and [img_license] tags to display the values on a custom layout.
- Fixed Photo Tagging feature so that when you delete an image that has tags, the tags are also deleted…that wasn’t happening before.
- Added ability to Add/Edit/Remove image tags in the Photo Manager admin page! Woohoo!
- Tweaked PhotoSmash so that PhotoSmash Extend can now add Post Thumbnails available in WP 2.9. This might make PhotoSmash Extend a 2.9+ plugin, though PhotoSmash is still compatible with 2.8+.
- Fixed the Permalink for the title of the tag gallery on the Photo Tags page.
- Added ‘tab_index’ attribute to Custom Fields and Standard fields (except file upload and buttons) in custom forms. Use like: …photosmash id=5 tab_index=4]
- Added attributes to the Posts Category dropdown [post_cat] custom form option: show_option_none=’– none –’ will show an option in the category dropdown called — none — (replace with whatever text you like). id=’my_id’ was added so you can now have multiple category dropdowns (or multi-select listboxes) with different ID’s so you can do javascript manipulations in the form…the id gets appended to: bwbps-post-cats like ‘bwbps-post-cats-my-id’. Now you can do something like onclick=’jQuery(“#bwbps-post-cats-my-id”).val(“-1″); return false;’ to se that particular category dropdown value to none (if you’ve got none turned on).
- Added attributes to Custom Layout fields:
- if_before – allows you to specify html to place before the field if the field has a value
- if_after – allows you to specify html to place after the field if the field has a value
- if_blank – allows you to specify default html for when the field has no value
- yep…it’s getting pretty cool!!!
- Added ability to display a gallery containing all images that have the same tags as the Post. in the photosmash shortcode, you can show a tag gallery by adding the attribute tag=’put tags here, separate with commas’. If you want a gallery that has all images that are tagged with any of the tags of the post your on, simply make the tag attribute: tag=’post_tags’ . Love this feature too!
0.4.05 – 12/01/2009
- 0.4.04 ended up getting skipped because it got promoted to the main version on WP.org before I wanted it to, so I had to skip that number.
- Fixed admin tabs to use a different id and changed the #tabs rule in bwbps.css file. This was breaking a theme that used an elelment called #tabs.
- Added ability to change the text of Approve and Reject messages on the fly. Beneath the gallery selector at top of Photo Manager, click Edit/Display Moderation Msgs link to show the messages…use the checkbox to turn on/off of sending messages on Review, Approve, Delete. Use the following variable tags: [author_link] – displays a link to the image contributor’s Author page on your blog; [post_link] – displays a link to the post related to the image; [user_name] – displays the user’s login name; [blogname] – displays the name of your blog.
- Added Editing of Custom Field data in Photo Manager – click the toggle link beneath the gallery selection at top to display the custom field data forms for all displayed images.
- Added ‘Publish’ button in Photo Manager to allow for publishing unpublished Posts – this will be useful to persons using the PhotoSmash Extend add-on plugin which allows for creating new posts on image uploads
- Added tagging of Photos – uses WordPress Custom Taxonomy call ‘photosmash’
- Added tag cloud for Photo tags…clicking Photo Tags will display galleries of all images with a tag
- Added shortcode parameter for displaying tagged image galleries. Add this type of parameter to your shortcode: tags=’my tag, my other tag, tag1, etc’
- To add tag field to your Upload form, add these parameters to your shortcode: post_tags=true post_tags_label=’Add tags: ‘
- Added Sorting by Rank (uses Bayesian ranking to weight rankings)
- Added Sorting by User ID in galleries
- Added simple paging in Photo Manager…tell it how many to images to show (defaults to 50) and what image # to start with (not zero based like MySQL…it adjusts for that.
- Changed the sort order in Photo Manager to Descending
- Fixed Photo Manager bug – wasn’t showing up new images for moderation until after the email alert had been sent…now shows up immediately. If admin views it in moderation area, email will not be sent notifying admin of need for moderation.
- Fixed – Recent, Random, and now…Highest Rated widget displays to allow for showing ratings. You’ll need to find the appropriate gallery in Gallery Settings and set it to show either the 5 Star or the Vote up rating types…choose whether to display beneath or as an overlay…if displaying as an overlay, make sure that in the Custom Layout that you use that you have ‘position: relevant’ set for the CSS for the element that wraps the image and the rating…oh and you need to have [ps_rating] in the custom layout too. Something like: <div style=’position: relative; float:left;’>[thumbnail] [ps_rating]</div> should probably work
0.4.03 – (11/9/2009)
Fixed gallery setting "maintain ratio" so that it does not force thumbnail sizes when gallery is displayed- Several code tweaks to enable PhotoSmash Extend functionality – particularly around creating new posts on upload
Now only supporting WordPress 2.8 and higher. Does not specifically break compatibility with versions later than 2.6, but going forward, only 2.8+ will be supported. There is a big security hole in WordPress versions prior to 2.8, so this is my part in encouraging users folks to upgrade. It's for your own good...I know from experience
0.4.02 – (9/26/2009)
- Added THE Widget!! Display Random, Recent, or normal galleries. ONLY WORKS WITH WP 2.8+. PhotoSmash will continue to work with versions back to 2.6, but this widget uses the new Widget API available in WP 2.8.
- Added a new default Custom Layout for the Widget. You can use any layout you want, but I built one that should (HOPEFULLY!!!) work well. It can be used in regular galleries too. It’s called Std_Widget
- Added Recent images gallery type. Use shortcode: [ \ photosmash gallery_type=recent images=10 where_gallery=185 ] (without the slash), use any # of images you want, defaults to 8 if left blank. “where_gallery” lets you specify a particular gallery to pull images from…optional.
- Added Random images gallery type. Use shortcode: [ \ photosmash gallery_type=random images=10 ] (without the slash) The images and where_gallery attributes above can be used here too.
- Added option for setting CSS Class on the ‘a href’ for images…facilitates using Thickbox to display images instead of Lightbox or Shadowbox. Make sure you change the Rel if you have both Thickbox and Lightbox/Shadowbox activated at the same time, otherwise Shadowbox overlays the thickbox…not pretty
- Fixed paging for text/ad inserts using the unreleased PhotoSmash Extend product.
- Fixed paging for Contributor (author) galleries.
- Added ability to send emails upon Approve/Reject of images in moderation.
0.4.01 – 9/5/2009
- Coming up: mass uploads by Admins!
- Added ability to Import images to PhotoSmash galleries from the WordPress Media Library. This lets you use the WP Media uploader (multiple simultaneous uploads) in Admin, then import them into galleries.
- Changed the default delete from deleting the Media Library images to be on-demand in Photo Manager. Deleting a gallery does not delete Media Library images now. Too much risk.
- Fixed a javascript bug – when uploading images with the new (0.4.00) WP upload functionality, the link to the image was broken until you reloaded the page.
- This gets a version bump! Added option [is default for new installs] to use WordPress upload functionality. Can optionally add uploaded images to the WP Media Library. Set these options in PhotoSmash Settings…top of the Uploading tab. This is in preparation for the upcoming new WordPress 2.9 media features. By adding these images to the Media Library, you should be able to utilize new features that WordPress builds in. The new WP 2.9 feature set hasn’t been officially announced yet, but stay tuned!!! This should also solve upload issues where people have trouble with folder permissions. I could be wrong, but I think this is pretty big
- Fixed a couple of annoying ThickBox images that weren’t loading. You have to set the variables in the page footer…FYI.
0.3.07 – 08/27/2009
- Fixed database update message – was displaying in error for MySQL 4 users. MySQL 4 doesn’t allow WHERE in the SHOW COLUMNS statement…have to use LIKE. MySQL 5 users were not affected by this.
0.3.06 – 08/27/2009
- Changed pagination to show only 5 pages at a time. Added First, Last, and ellipses.
- Fixed the situation when showing Ratings beneath the Caption…rating wasn’t showing when there was no caption
- Fixed the code that verifies if the database tables are up to date. Now using SHOW COLUMNS sql. Wasn’t getting anything when table was empty.
- Changed moderation rules so that users with the Contributor role now receive moderation when moderation is turned on. Notes:
- Useful for setups where users create a new WordPress post by uploading an image through PhotoSmash (this functionality is coming to the PhotoSmash Extend plugin)
- Roles that get moderated when moderation is turned on in a gallery: Anybody (not logged in), Subscriber, Contributor
- Roes that don’t get moderated even when moderation is on: Authors and Admins
- Vote Up/Vote Down – will work similarly to Star Ratings, except…it’s voting up or down
- Added code to bwb-photosmash.php to give a way to collect and insert Javascript code into the footer. This will save a lot of script tags and jQuery(document).ready() functions, and will collect JS nice and neatly in the footer. If you do a global on the $bwbPS object in PHP, you can easily add javascript to the footer using these 2 functions: $bwbPS->addFooterJS($js); or $bwbPS->addFooterReady($js); PhotoSmash takes care of putting in new lines to separate multiple JS calls, as well as takes care of the Script tags and the document.ready function…it’s easy
0.3.05 – 08/19/2009
- Removed code in Database Update that was removing duplicate indices – this was causing users with certain SQL Mode settings to experience errors.
- Note - there may be a problem with star ratings with IE 6. Further testing will ensue. If you experience problems with Star Ratings, please report them. Thanks!
0.3.04 – 08/19/2009
- Fixed a conflict with Contact Form 7 where duplicate creation of esc_attr functions was occuring
- Added template tags:
- show_photosmash_gallery(optional $attr); – echoes a gallery – the $attr param can be a gallery ID or an array of parameters that you can also use in shortcodes.
- get_photosmash_gallery(optional $attr); - same as show except returns a gallery as a string that you can use in PHP
0.3.03 – 08/19/2009
- Added Star Rating system – thanks to GD Star Ratings for use of the star set (used by permission). 2 placement options (beneath caption or overlay image [default]). Design of star rating system enables extensions. Next up is a vote up/down option…not implemented yet.
- Improved the Admin messaging – database message now contains a link that updates the database when clicked.
0.3.02 – 08/01/2009
- Fixed Pagination when multiple galleries are on the same Post…now it remembers what page each gallery was on and paging links reflect proper paging for all other galleries.
- Added message to JSON return on upload for images that are to be moderated. Uploading user is now presented with message: Upload Successful! Image is awaiting moderation.
- Added a hook to ajax_upload.php – hook: bwbps_upload_done. Fires after the Image is saved to the database, and provides an array containing the image’s database values to the receiving function. Useful if you’re going to want to do some fun stuff after an image get uploaded. A use case: you have a business review site where the initial business record is created using a PhotoSmash upload. The image in the upload should be the logo. If no image is supplied, that’s ok, show a placeholder image. There is another gallery in the post you created for the business where users can upload their images. When the an image is uploaded to this secondary gallery, you want to use that for the logo. You can use this hook to update the blank image’s file_name with the new image’s file name.
- Call this hook in your code by: add_action(‘bwbps_upload_done’, ‘your_function_name’);
- Your function should accept an array as its first argument, all other arguments (if any) must be optional.
- Added Gallery-level option for allowing uploads with no image file attached – this will let you do some CMS type stuff
- Added Gallery-level option for suppressing ‘no image’ records in your gallery. The can be accessed using the shortcode. You can specify a layout to use or a field to display.
- Added Gallery-level default image option where you can specify the name of an image that is in the PhotoSmash images folder structure. This image will be used for ‘no image’ records if you don’t Suppress.
- Fix – set contributor gallery so that it doesn’t show any comments, and comments are closed.
- Fix – Link for post name in contributor gallery should link back to itself
- Fix – got rid of Video options in the Gallery Type setting. YouTube options still remain, and will remain. I’m not ready for uploading video yet. Worried about security issues.
0.3.01 – 7/25/2009
- Added Contributor Gallery – a special gallery that can be shown in the Author page. Turn it on in PhotoSmash Setting > Special Galleries. It can also suppress all other posts in the Author page. Can also use custom layouts.
- Added Caption types to display link to Author page for Contributor.
- Added ability to set CSS class for pagination DIV in Custom Layouts – so you can style it like you want
- Bug – pagination wasn’t showing up in Custom Layouts
- Bug – [user_link] does not show non-Admin user links in custom layouts
- Added ability to get notifications on all uploads (not just moderation)
- Added option for getting notifications on uploads Immediately
- Bug – fixed Radio buttons for gallery type: Mixed Images + YouTube. Browse for File and YouTube radio buttons were both being checked
















Wednesday, 6 January, 2010 at 4:48
Hi Byron,
I have a lengthy reply which was bounced back from your email. Do you have an email address i can reply to? If so, can you contact me.
kind regards
Sunday, 3 January, 2010 at 12:47
Hey there,
Cant seem to register so i wanted to ask a comment.
Is there a code that i can add that when the public has voted, it reloads the next image? Im looking to have one image per page.
Your plugin is fantastic and im looking to donate, but there are 2 things i would like first.
Firstly, the above.
Secondly, allow user to delete their own images. (one of the things i think should be a massive addition)
Thank you for your time
Sunday, 3 January, 2010 at 17:19
Hi Dean,
Glad you like PhotoSmash!
1) It won’t reload the next image after someone votes. It sounds like you’re looking for a Slideshow type effect.
If you’re looking to create a new post with each upload, I do have a “premium” extension that does that. Here’s the post on that: http://smashly.net/blog/photosmash-extend-is-nearly-ready/
If you go that route, you can add any of the Voting plugins that vote on posts…here’s the heavy-weight champ of those: http://www.gdstarrating.com/downloads/plugin/
2) I created a custom implementation for a client that let the user preview their new post and delete the post and image if they didn’t like it. So, the back-end code is there in the file “ajax_useractions.php” if you’re a coder and would like try the implementation yourself. There are functions there for allowing a user to delete an image and allowing them to delete the new post. You’d need to implement a custom Javascript that would handle the response from the ajax upload. You’d want to display a link for deleting the image.
If you wanted the user to be able to delete one of their images from a gallery, I suppose that you could also build a custom layout that had the user’s ID in it, and a custom javascript file that would add a link to any images that were uploaded by the logged in user. You should be able to use the same server-side ajax functions that I made for that other implementation.
Finally, were you not able to Register at the Forum? http://smashly.net/community/
Hope that helps,
Byron
Monday, 4 January, 2010 at 13:45
Hi Byron,
I have sent you a reply via email ’subscriptions@smashly.net’
regards
Tuesday, 8 December, 2009 at 2:48
Hi. Has any way to add 2 galleries per post and comments to the pictures? Thanks
Tuesday, 8 December, 2009 at 10:19
Hi Mike,
Yes…you can add as many galleries as you like, but you’ll need to supply Gallery Id’s in the shortcodes for each, which means you’ll need to create the Galleries in Gallery Settings in Admin first. Ex. [photosmash id=1] [photosmash id=2] would present galleries 1 and 2.
Sorry, no comments on pictures at this time.
BB
Tuesday, 8 December, 2009 at 12:07
Thanks for the quick answer. but what about the SavorySights website that has comments on the pics? didn’t they use your plugin? Thanks
Thursday, 3 December, 2009 at 9:39
Tagging of Photos? Tag cloud? Where is it?
Thursday, 3 December, 2009 at 18:32
Yeah…it’s in there. I just need to get some time to document it. Honestly can’t remember how to do it off top of my head. It was a pretty big release.
BB