PhotoSmash Galleries WordPress Plugin Released

UPDATE:  7/12/2009 -PhotoSmash 0.3 has been released.  Its new homepage is just getting started, so you might need to browse below if you don’t find what you looking for over at Smashly.net.  Thanks for your patience!

Release Candidate 2 version 0.2.996 (RC3 for 0.3.00) now available at WordPress.

Final Release Candidate before going public with 0.3.00!

I need to do some documentation.  Launch the new home for PhotoSmash.

Note!  This version has Sorting (only 2 choices right now – Date Uploaded – Ascending or Descending…more to come).

Going live very soon!!! I hope…

Beta Testers of 0.2.99?:

First: after uploading this version is to go to Plugin Info and run the Update Database.  If you still get a Database Warning in PhotoSmash Settings page, your database needs to be updated.

Second: note that the behavior of custom forms has changed.  Note that you no longer have to turn on Custom Form usage in PhotoSmash Settings.  You can get a custom form to work by setting it in the Gallery Settings (there is a mass update button in PhotoSmash Settings/Advanced tab/Default upload form setting – this button will update all existing galleries to use the selected custom form). Or you can use the shortcodes in your post:   [photosmash form=your_form_name]

Additional security enhancements around URL’s were made to this version.  It now utilizes WP 2.8 URL sanitizing, and remains backwards compatible with 2.7.

Beta Testers wanted! Go to the PhotoSmash Other Versions download page and download the Development version.  When you unzip, you should have version 0.2.992.  I didn’t make this 0.3.00 so you can use the automatic update feature of WP to upgrade to the Gold version.

There are tons of new features, so please beat it up and let me know what you find.  I’ve tried, kind of unsuccessfully to hide the complexity from the Plugin-n-go user of PhotoSmash, so if you have any suggestions for making the basic plugin more friendly…PLEASE let me know!

A new website, Smashly.net, is on its way also.  It’s just a shell right now, but it will ultimately house PhotoSmash, Supple Forms, and the Smashly WordPress community.  I want to have it ready for the PhotoSmash 0.3.00 official release…we shall see.

Thanks for your help!

Byron

Permanent Alert (posted 4/16/2009): Please note that using 0777 as a folder permission is highly discouraged (DESPITE MY RECOMMENDATIONS IN THE COMMENTS BELOW). Please note that I no longer recommend setting folder permissions to 0777, but rather the upload folders should have 0755. Version 0.2.55 includes the Plugin Info page in the admin section that helps you determine what your permissions are and will let you set them appropriately (unless SAFE MODE is on in your PHP config).

[Here begins the ORIGINAL Post]

screenshot-1

I am pleased to announce the release of my first “real” WordPress plugin, PhotoSmash Galleries.  While there are at least a dozen photo gallery plugins available for WordPress, PhotoSmash adds something to the WordPress world that wasn’t there before (at least, I think so).  What could that possibly be? you ask.  Well, PhotoSmash makes it possible for your users to upload photos to galleries right from your Posts or Pages.

For directions in using the plugin, see the Usage section below.

Download:

Download at the PhotoSmash page on WordPress

View readme.txt
There is a demo at:  PMOPress.com

Features:

  • Produces XHTML 1.0 Transitional markup for public facing pages
  • User contributable photo galleries
  • AJAX photo uploads
  • Control who can upload images: admin only, authors & contributors (and higher), or registered users and higher
  • Moderate images uploaded by registered users (Admins and authors are automatically approved)
  • Receive email alerts for new images that need to be moderated
  • Options page for setting general defaults or specific gallery settings
  • Auto-adding of photo galleries
  • Multiple galleries per post, added using a simple tag system
  • Integrates with popular image viewing systems like Lightbox and Shadowbox
  • Tweak appearance through the included css file
  • Allows loading images to galleries by URL
  • Option to set thumbnails to crop to size or maintain aspect raito
  • Various display options for captions, including displaying the contributor’s name and website link
  • Admins can set how many images per row in the galleries (can be set by gallery)
  • Admins can set how many images per page ( 0 turns off pagination )
  • Supports Role Manager plugin with “Upload to PhotoSmash” capability (when assigned to a subscriber, they can upload to any gallery and “Photosmash ?” capability (where ? is the gallery ID…when assigned to a subscriber, they can upload to that specific gallery, regardless of the minimum upload user)
  • Option for a URL field on the upload form. Submitted URLs can be used as links for captions

Requested Features

I’ll add requested features here as people ask, so I don’t lose track:

  1. Give an option to show uploader’s name and link to website
  2. Allow image upload by URL.
  3. RSS or subscribe for notifications by email
  4. Use the on page upload to add photos to NextGen Gallery (I have no illusions about besting NextGen…I’m just aiming for fast and simple, so I don’t mind this one bit ;-) )
  5. Import photos from existing library
  6. Upload a zip file of photos
  7. Multiple photo uploads – swf uploader
  8. Need to remove the “by-reference” indicator from certain function calls in admin….causing PHP call-by-reference warning.
  9. Need to reduce the final file size from 5M to a user configurable variable in the ajax-upload.php settings…it’s letting uploaded files stay huge – slow to download with little real quality gain on screen
  10. Need to show Memory capabilities for server in the admin page.
  11. Think about breaking up the Defaults page from the Gallery Edit page….just something to consider
  12. Upload photos from Flickr or Photobucket
  13. Allow admins to set how many photos per row…use table for that
  14. Add paging to galleries, allowing admins to set # of photos per page
  15. Add CoolIris support (that thing just blows me away)
  16. Add tabs to admin pages
  17. Send email to Subscribers who upload images: 1) upload successful (maybe – they’ll see it on the gallery anyway if they’re logged in – can’t send an email otherwise) 2) image was moderated (definitely), allow admin to type brief msg or use default msg.
  18. Create special role that can be assigned to individual subscribers without turning on uploading for all subscribers
  19. Auto-resize upload (allow admin to set maximum pixel size of final images)
  20. Create watermarks from custom image.
  21. Allow creating new thumbnails to replace the originals.
  22. Add option for URL field on the upload form, with options to use URLs in captions.
  23. Latest additions widget
  24. Mashup pages by tags, contributors, latest
  25. RSS
  26. Photo-level Comments
  27. Star ratings
  28. Option for contributors to delete images
  29. Sorting
  30. Shortcode for Showing individual images
  31. Dashboard image approval box
  32. Star rating system for photos
  33. Upload files other than images (mp3, videos, documents)
  34. is there no end to the freaking list???

Soooooo….if anyone makes any enhancements to the code that they think other users might like, please let me know.

Most sites don’t need to let users upload photos, and PhotoSmash handles that requirement as well by letting you set a minimum role for uploading by gallery. If you’re simply looking to do photo galleries that only you or your authors can upload to, you’ve got lots of options in the WordPress cosmos. Where PhotoSmash differentiates there is that it lets you add images directly within your posts and pages without going to the Admin section.

Personally, I needed PhotoSmash for my CityTracs website which I’m porting over to WordPress.  I want to let users upload their photos to the destination galleries there, hence the origins of PhotoSmash. Hopefully, PhotoSmash will find its niche on the Web.

Screenshots

Ahhh…the screenshots: screenshot-1

Here’s a shot from the PhotoSmash options page in the Admin…when you’re actually in there, scroll down to work with individual galleries: screenshot-2

And finally a shot of the AJAX image upload box: screenshot-3

– How to Use PhotoSmash

Using PhotoSmash is extremely simple:

  1. Download PhotoSmash and unzip…you should wind up with a folder named: bwb-photosmash
  2. Upload the bwb-photosmash plugin folder to your /wp-content/plugins/ folder
  3. In the Plugins page of your WordPress Admin, activate PhotoSmash
  4. There are 3 ways to add new galleries to your posts:
    1. Under settings, go to the PhotoSmash options page and turn on Auto-adding of galleries.  You can auto-add galleries to the top of each post or the bottom of each post by changing the drop down to the correct selection.  Click Update Defaults button to save changes
    2. Also in the PhotoSmash options page, scroll down below the PhotoSmash defaults section and select New in the gallery drop down.  Fill in the details you want to use for the new gallery, and click the Save Gallery button to create the new gallery.  After the save is complete, select your new gallery from the Gallery drop down and click the Edit button to retrieve it.  The code (like [photosmash id=1] )for adding this specific gallery to any post or page will be in red beneath the Gallery drop down.  Cut and past the code anywhere you like in your posts or pages.  You can also specify multiple specific galleries within a single post or page by putting the tags with their ids in as needed.
    3. PhotoSmash can also create galleries on the fly for specific posts.  Simply enter the following code anywhere you like in posts or pages and a gallery will be automatically created:   [photosmash] The code should include everything in red, including the braces and the = sign.
  5. To add photos to your galleries, go to the post or page and click Add Photos link.  I’m not sure what the size limit is right now.  It may vary based on your php.ini settings.
  6. If you choose to let Registered users upload photos, their photos will be visible to Admins and the themselves only.  Admins will be presented with buttons for Approve or Bury.  Approve is self explanatory.  Bury simply deletes the record from the database and deletes (unlinks in PHP terms) the files from the bwbps and bwbps/thumbs/ folders in the wp-content/uploads/ folder
  7. You will receive an email alert for photos requiring moderation.  These alerts use a pseudo-cron like scheduling scheme that is triggered whenever someone views one of your blog’s pages.  You can set the alert program to check every 10 minutes, 1 hour, or 1  day, or not at all.
  8. To edit a photo’s caption, go to the PhotoSmash options page in wp-admin.  Select the desired gallery from the drop down and click Edit.  When the page comes back, the images for that gallery will show up at the bottom of the page.  There will be text boxes beneath image allowing you to edit captions.  Click save to save caption edits.  Approve buttons will be present for images needing moderation.  Delete will be available for all images.
  9. To integrate with Lightbox or Shadowbox, simply include the correct “rel” information in the Gallery specific options on the PhotoSmash options page.  You can set your general PhotoSmash default rel in PhotoSmash Defaults section so that any newly created galleries will automatically get the rel.   For Lightbox, set the rel to lightbox.  Shadowbox can use lightbox or shadowbox.  To group a galleries images together as an album for Shadowbox, use something like:  shadowbox[album] as the gallery’s rel.
  10. To prevent a post from receiving a gallery when Auto-add is activated, simply enter the following tag anywhere in the post’s content:  
    [/ps]
    

  11. To use with Role Manager plugin:  the Role Manager plugin lets you give specific subscribers additional capabilities.  PhotoSmash supports these capabilities by allowing you to give users additional access to galleries that their roles do not allow (e.g. a Subscriber could upload to a gallery that is set to Admins only).  Here are the steps:
    1. Install the Role Manager Plugin (see link above)
    2. In the Users menu box in Admin, click on Capabilities
    3. Add a capability called:  Upload to PhotoSmash
    4. To assign this capability to a user, click Authors & Users
    5. Edit the user you are targeting
    6. At bottom of user profile screen, check the Upload to PhotoSmash checkbox in the Assign extra capabilities section and Save (Update) user…this user can now upload to any gallery regardless of the minimum role you have specified for those galleries.
    7. To target a specific gallery, in #3, create the capability:  Photosmash ? (where ? is the gallery ID #, e.g.  Photosmash 10 ).  You can find the gallery ID # in the Gallery Settings screen in PhotoSmash admin section.  It is the same number that is used in the shortcode that can be used to specify a gallery.  Choose this capability in #6 instead of the Upload to Photosmash capability.  Assigning both would be redundant since Upload to Photosmash gives access to all galleries.  You can assign as many specific galleries to a user as you like.
    8. To add the URL field to the upload form and use the user submitted URLs as the link for your captions, there are 2 settings needed to use feature: 1) you must turn on the field to show up in the Upload Form. Do this in PhotoSmash Settings / Gallery Defaults tab, the checkbox at the bottom of form. 2) There are 2 options in Gallery Settings and PhotoSmash Settings pages under the Viewing tab and in the Image caption style that will use the User submitted URL as the caption link…look at option #3 and the last one.
  12. Whew…that’s about it….I think.

This plugin is available through WordPress.org so you will be able to upgrade it with the wonderful automatic plugin upgrade feature in WP 2.7.

If you’ve got ideas, or better yet, code to make PhotoSmash better, please let us know.  Maybe somebody has ideas on how to integrate Flash gallery viewing like NextGen gallery has, or making the upload form more attractive.   Anyway, I’d love to hear from you.

Plugin Conflicts/Recommendations

  • Lightbox – there are 2 versions…one works, one doesn’t. This one does.
  • Some plugins that utilize the jquery-forms javascript code may conflict. One user found that a Chat box plugin was making continual ajax calls back to the server. This caused the PhotoSmash upload form to fire indiscriminately. You could still upload an image by selecting it and clicking submit, but you would get the 400k error for no reason. If someone has a suggestion as to how I might prevent his problem, I’m all ears…it appears to stem from common use of jquery.forms.js.
  • Flutter version .2.51 causes javascript errors in IE 6 when using Lightbox and possibly even other [?]box image viewers.  Haven’t tested with IE 7 or 8.  FF appears OK.  Check out Supple Forms for a Flutter alternative ;-)

The Belated Changelog

  • 0.2.62 (4/29/2009) – Fixed url validation on uploading images. Fixed css to make gallery table 100% width. Added options for using user submitted url’s as the thumbnail links (option must be set in Gallery Settings to become effective).  Add option to make thumbnail and caption links target new windows (option is only under PhotoSmash Settings).
  • 0.2.61 (4/27/2009) Fixed manual creation of new galleries to use PhotoSmash defaults. Now using Colin Verot’s upload class version 2.7 RC2.  Previous version had a Safe Mode “feature” that was causing 400k errors.
  • New Feature: (4/26/2009) 0.2.6 URL field added to upload form. 2 options added to allow the image caption to link to those urls. See the Usage section for instructions on use.
  • 0.2.55 (4/16/2009) Added Plugin Info page in admin to assist with trouble shooting. Checks folders and tables and server info. Server info code borrowed from the immanent NextGen Gallery plugin by Alex Rabe. Change in folder permission recommendations from 0777 to 0755. Plugin Info page helps with those permissions as well.
  • 0.2.54 (4/6/2009) Fixed “delete gallery” error in bwbps.admin.php. Nonce security wasn’t configured properly.
  • 0.2.52 & 0.2.53 (3/23/2009) Fixed implosion error in bwbps-photosmash.php on line 767.  Fixed a plugin conflict with redeclaring the JSON class when uploading.  This conflict was found with Twitter Tools.
  • New Feature: (3/13/2009)  0.2.5 Added support for Role Manager plugin.  Can now grant specific subscribers access to upload to any gallery or to specific galleries regardless of the minimum roles.   See Usage notes for details.  Also, changed bwbps.js to allow IE uploads to show properly.  Were showing in a single column due to rendering of “margin: auto”
  • 2 New Features + bug fixes: 0.2.4 (3/11/2009) Added Tabs to admin pages. Added pagination by gallery. Fixed use of admin defined captions for Add Photos link and Upload form upload message. Fixed CSS for IE for number of images per row.
  • New Feature: 0.2.3 (3/8/2009) admins can set how many images to display per row…setting is by gallery.  Can also set default for new galleries
  • 0.2.22 (3/6/2009) corrected XHTML validation error – replaced & with & in the ThickBox href on the Add Photos links.
  • 0.2.21 (3/5/2009) corrected XHTML validation errors.  Corrected duplication of moderation nonce on front page.
  • New Feature: 0.2.2 (3/4/2009) added options for displaying captions, including displaying contributor’s WordPress nicename and their URL
  • New Feature: 0.2.1 (3/3/2009) added ability to upload images from a URL
  • New Feature: 0.2.0  added the ability to choose to either maintain aspect ratio or crop when creating thumbnails.
  • 0.1.99 – in bwbps-photosmash.php fixed <?= WINC to <?php echo WIND; ?>…this was causing some uses problems.  Changed bwbps.js to use standard $j(‘#bwbps_uploadfile’).val() instead of $j(‘input[@name=bwbps_uploadfile]‘).fileValue().
  • 0.1.97 – now using JSON.php class in admin Photo Manager page for ajax calls….affects ajax.php. Fixed the same json_encode problem for PHP4 in admin as for the upload
  • 0.1.96 – added the JSON.php class to ajax_upload.php to make json_encode compatible with PHP4.
  • 0.1.95 – changed the code that handles image files to utilize WP_CONTENT_DIR and WP_CONTENT_URL. This was needed to deal with implementations of WP that did not use the root directory, or used non-standard (but perfectly acceptable) locations for their Content or Upload directories.

Acknowledgements

  • Thanks to Colin Verot for making his upload class available through the GPL.  PhotoSmash uses Colin’s class.upload.php for manipulating images and making sure the correct folders exist.
  • Thanks to Cory and Michal for their work on the JSON encoding class.
  • Thanks to the WordPress community for sharing, inspiration, patience, and passion.
  • Thanks to my alpha/beta debuggers…I won’t name names, because I don’t want to leave anyone out. But you can see much of there contributions in the first 120 comments below.
  • Thanks to Alex Rabe for the immeasurable NextGEN Gallery, which has helped me figure out a few things and has provided inspiration and the occasional snippet of code…particularly in the area of the Tabs in admin pages and the styling on the pagination.

Finally, if you do end up liking PhotoSmash enough to use it, that will be a thrill for me.  If it makes your life easier in some way and you want to throw a little donation my way, that would be an even bigger thrill and much appreciated.  Either way, I hope you like P’Smash.


Cheers!
Byron

Popularity: 100%

Tags: , ,
Filed under: Blogging, Productivity, Web Development, WordPress

Comments

  1. Dave Says:

    I’m very excited to see this plugin. I run a community news website and WordPress’s tools for allowing the public to post content (to be moderated later) are very thin.

    We’ll definitely be giving this a try, and I’ll provide some feedback on how it goes.

    Good luck with the development!

  2. Geoff Says:

    Up until the file load everything seems to be working. I cannot upload a photo and I am the admin.

  3. Byron Bennett Says:

    Geoff,

    Thanks for trying it out. Try a smaller file size…200k or less. I’m not sure what settings I’ve got messed up, but it doesn’t seem to upload larger files. Let me know…

    Byron

  4. Byron Bennett Says:

    Thanks Dave,

    Let me know if you hit any bumps. There does seem to be something weird around file size that I’ve got to figure out.

    If anyone has any ideas, I’m all ears.
    Cheers!
    Byron

  5. Jason Says:

    Hey Byron,

    I installed the plugin, but when I go into the settings and go to Photosmash I am getting a database error about the table not existing. Any ideas?

    Jason

  6. Byron Bennett Says:

    Jason,

    Does it say which table is missing? I haven’t seen this one before.

    Also, what version of WP are you running?

    I’ll take a look at this after work.
    Byron

  7. Jason Says:

    Version 2.7 of WP

    the table missing is “*.wp_bwbps_galleries”

  8. WordPress Plugin Releases for 01/23 | Weblog Tools Collection Says:

    [...] PhotoSmash Galleries [...]

  9. Fab Says:

    I think could be interesting add images to a Nextgen existent gallery

  10. Byron Bennett Says:

    Jason,

    I think I’ve got it fixed. I have created a royal foobar in launching this plugin. I didn’t understand how the folder names would work with SVN (my first time there) and so that messed up all of the internal links.

    You will need version 0.1.3, which should be coming out on WordPress in the next 20 – 30 minutes.

    Let me know if you still have problems after that.

    Ugggghhh….

    Sorry to all…not pretty.

    Byron

  11. Jason Says:

    No worries Byron, glad I could help catch a bug for what will be a great plugin.

  12. Byron Bennett Says:

    Yeah…thanks! .0.1.3 is on WordPress now.

  13. Brian Pate Says:

    When I tried to change a default setting on my development site, I got this db error:

    WordPress database error: [Table 'conscenedb.wp_bwbps_galleries' doesn't exist]
    SELECT wp_bwbps_galleries.gallery_id, wp_bwbps_galleries.gallery_name, wp_posts.post_title FROM wp_bwbps_galleries LEFT OUTER JOIN wp_posts ON wp_bwbps_galleries.post_id = wp_posts.ID WHERE wp_bwbps_galleries.status = 1 ORDER BY wp_bwbps_galleries.gallery_id

  14. Byron Bennett Says:

    Hi Fab,
    That’s not a bad idea…Nextgen galleries probably is more feature rich in a lot of ways, but it does lack the instant upload features available here. How hard that is to do depends on the data structures behind Nextgen….it might not be too bad.

    BB

  15. Byron Bennett Says:

    Brian,

    I hope we’ve got a fix for your problem. Jason had that issue earlier. Try this.

    1) Make sure you have upgraded the plugin to .0.1.3 (it’s available on WordPress…see link above in download section)

    2) Deactivate the plugin and Reactivate it.

    That should create the database tables for you. There was a problem with the folder name earlier…hopefully fixed now. Let me know.

    Cheers!
    Byron

  16. Brian Pate Says:

    Hi, Byron,

    No, I was running .0.1.3. It seemed to be working until I tried to change the default height in the Settings, and then these db errors showed up.

  17. Byron Bennett Says:

    Ok Brian…I think I may have it fixed. I had hard coded wp_bwbps_galleries as a table name in a line in the admin file. That’s been changed to $wpdb->prefix.”bwbps_galleries”.

    Hopefully that’ll fix it. Thanks for the heads up.
    Byron

  18. Byron Bennett Says:

    BTW, the fix should be hitting WordPress in 15-20 minutes….version .0.1.4.

  19. TrevR Says:

    Great plugin, this will work perfectly for my site. What I’m struggling with is how exactly to hook this plugin up with Lightbox–any further details would be greatly appreciated!

  20. Byron Bennett Says:

    Hi TrevR,

    Excellent! I’m glad to hear someone has got it going. I had a rocky start, but hopefully that’s all behind us now ;-)

    To get lightbox working, you’ll need to go into the Settings page…goto your WordPress Admin. Look in the Settings menu, and you should see PhotoSmash as an option.

    On the PhotoSmash options page, first change the “Rel” parameter in PhotoSmash Defaults to: lightbox[album]

    Click Update Defaults to save that.

    Unfortunately, or maybe fortunately, saving the top section doesn’t save the bottom section, which is for individual Galleries. So now you need to go to the bottom section and select your galleries one-by-one, clicking Edit and updating them with the lightbox[album] in the Rel field also. Be sure to click the Save Gallery button after each one.

    That should get you going.

    Cheers!
    Byron

  21. Peter Says:

    Hi,
    First, I had to add the database tables by hand.
    Secondly, when adding a new gallery, the code in red is [bwbpsmash=1] which doesn’t render on the page. It still shows as [bwbpsmash=1] . What am I doing wrong?
    Third, I am unclear on how to add the images to the gallery.

    Thanks,
    Peter

  22. Byron Bennett Says:

    Hi Peter,
    Well darn…I thought I had this thing working.

    1) Are you running version 0.1.4? If not, please upgrade to that version, deactivate, reactivate and hopefully that fixes that. Although, it sounds like you’re past the DB creation problem…still you want to be on the latest version.

    2) Thanks for pointing that out….it should read: [photosmash=1]
    I’ll fix that…just use: photosmash instead of bwbpsmash.

    3) If you’re logged in as an admin or someone who has rights to upload, you should see an “Add Photos” link right above the gallery when you visit your published post/page. You can upload to an unpublished post/page by clicking the Preview button when adding or editing a post/page.

    Hope that helps.
    Byron

  23. Byron Bennett Says:

    I’ve uploaded version 0.1.5 which should fix that bad display of [bwbpsmash=1] on the admin page. The correct display should be: [photosmash=1] (where the 1 is whatever the id of the gallery you’re working on is)

  24. How to Host a Plugin on WordPress - Video pt. 1 » WhyPad Says:

    [...] Subversion) was all about, and that was the end of that.  But then, I wrote a more serious plugin, PhotoSmash Galleries, which lets your users upload photos to galleries on your blog, that you can moderate later.  And [...]

  25. Li-An Says:

    Is there a way to give information to people that images have been uploaded ? (RSS, mail…)

  26. Byron Bennett Says:

    Hi Li-An,

    An email will be sent to the Admin email address anytime someone uploads a photo that needs to be moderated. Authors, Contributors, and Admins upload photos and they don’t need to be moderated. Subscribers need to be moderated unless you set the default image status to Approved (that default status might need tweaking, I have to test).

    If you’re asking about letting people subscribe to newly uploaded images via RSS or email, that wouldn’t be a bad idea. Maybe for phase 2 ;-)

    Byron

  27. Li-An Says:

    OK, thank you. And yes I was thinking about a subscribtion :-) (I was thinking about a family galery and it is important that the community knows about new images uploaded).

  28. Mike Haubrich, FCD Says:

    This sounds pretty cool, but before I install it does it have a way to pull photos from my existing media library?

  29. Byron Bennett Says:

    Mike,
    Sorry, but no ability to pull in images from existing library. That would be a pretty good feature for future iterations, though.
    Byron

  30. TrevR Says:

    Hi Byron,

    I’ve done exactly as you suggested above to get Lightbox working to no avail. When I add the lightbox[album] I lose the captions on the photos in my gallery and don’t get any Lightbox effect. Any thoughts?

  31. Byron Bennett Says:

    Hi TrevR,

    Hmmm….something’s weird then. I was using Shadowbox on my PMOPress.com demo page, and it was working fine. I went to WordPress and downloaded/installed the Lightbox 2 plugin, went into my gallery and changed the rel from shadowbox[album] to lightbox[album] and it works.

    So…here are some things to check:

    1) Probably already done this, but make sure you’ve got the Lightbox 2 plugin upgraded and activated (please forgive me for being that basic…sometimes, though it’s the easy stuff)
    2) Does the actual gallery you’re working with have the rel set to lightbox in the settings? Go into the PhotoSmash plugins setting page and choose that gallery from the drop down. Click Edit…when the page comes back, check the rel setting (make sure you’re not looking at the PhotoSmash Defaults section).

    If that is all set and working, it should work…if not, I’m stumped. Might be some conflict with some other plugins, so you could start deactivating plugins to see if one of them is causing a conflict.

    The other thing you could try would be the ShadowBox plugin. Works similar to Lightbox, but it does put the caption at the top. Lightbox isn’t including the captions for me either. Not sure why.

    Maybe some of that will help. If not, let me know…I’ll keep thinking.

    Byron

  32. TrevR Says:

    Thanks Byron. Couldn’t get it working with Lightbox, but was able to make it work using Shadowbox. Not my ideal, but it’ll suffice for now. Thanks for being so response! Now on to changing the gallery background color… :)

  33. Byron Bennett Says:

    TrevR,
    Well, if you figure out what was up with Lightbox, let us know. It was working for me, except for the captions, but you might save me some hunting around if anybody else has that problem.

    Let me know if you end up using PhotoSmash and you do something with the look (or if you have any trouble getting it to do what you want). I’d love to see how people end up improving it…might give me some ideas ;-) BTW, I like your site. That’s the kind of site that works for people…pick something you love and its a lot easier to keep at it. I wish you all the best.

    Byron

  34. Brian Pate Says:

    Hey, Byron.

    I’m really excited about the Plugin. I’m currently working on converting my current site over to WordPress and am planning to use it on there.

    I have a lead on the Lightbox issue. I installed Lightbox and everything was working just fine with it and the PhotoSmash Galleries. But then I thought I might as well as enable it for my whole site, and there is where the problem comes in. If I “Enable Automatic” in the Lightbox settings, then the captions stop showing up in the PhotoSmash Galleries. Any idea on a fix?

  35. Byron Bennett Says:

    Hi Brian,

    Cool! You isolated the condition where Lightbox strips the captions. I checked it out on my demo site and when “Auto-lightbox image links” was checked, Lightbox stripped the title tag out of the image links…when it was unchecked, it didn’t. So there’s the problem.

    I’ll have to check and see if it works if I leave the title blank…try to get to that tonight.
    Byron

  36. Alx_SF Says:

    Hi,

    I’m excited to get this working as it is EXACTLY what I have been looking for at exactly the right time. But when I try to upload a photo it tells me that it is too big, no matter how small the file size. I even went with a jpeg that was only 80k and it wouldn’t let me upload.

    You can see the published page here:

    http://www.ilyb.org/?page_id=559

    but it isn’t linked from anywhere else on my site.

    Any thoughts? I am running WP 2.5 and I’m wary of upgrading at the moment because I need my site to be working at 100% for the next few weeks.

    Also, I would ideally be able to take quite large uploads as I would like to eventually gather the user uploads and print them as a book.

    Thanks!

  37. Byron Bennett Says:

    Hi Alx_SF,
    This whole photo size issue is a little mysterious to me right now. I had problems uploading photos over 500k with PhotoSmash, so I tried uploading the same image with the built-in WordPress uploader in the Write Post screen. It had the same issue…too large.

    I know this has something to do with your memory settings in php.ini. It’s not the Max Upload size, because that’s usually fine. It’s got to do with the actual application memory. Evidently, when creating the thumbnails, PHP converts your image to a bit map or something and the size of your file goes up 9X or more. So that might be one problem. PhotoSmash should be able to upload any photo you upload with the WordPress Write Page uploader, because that uploader creates a thumbnail as well.

    I tried your page, but it looks like you have registration turned off. You have to be logged in to upload with PhotoSmash, but all the same, I can envision what you’re describing as I’ve seen it myself.

    The other thing I noticed was that I was getting a javascript error on your pages. I don’t know if that was a conflict with PhotoSmash or one of your other scripts. You might run FireBug against it to see.

    The last thing to check would be to turn off all plugins except PhotoSmash to see if there is a conflict somewhere that is causing it not to work. Actually, that might be the 2nd thing to check….so here are the things to check:

    1) Try uploading a photo in the Write Post screen of WordPress…if that works, it should work with PhotoSmash
    2) Try turning off all plugins except Photosmash and then try your upload…if that works, turn them back on 1-by-1 to see where the conflict is
    3) Check out that Javascript bug in FireBug.

    Hope that helps.
    Byron

  38. Aria Says:

    Hi,

    Thanks for the great plugin, I am having the same issue as Alx_SF,
    Installed on Wordpress 2.7
    - other plugin : none
    - logged in as : admin
    I tried to upload images from 10kb – 200kb and it keeps telling me maximum file size allowed is 400k.
    what possible have I done wrong?
    Thanks in advance

  39. Byron Bennett Says:

    Aria,
    The File size may not be the problem…it is sort of a default message right now when the upload is unsuccessful.

    Try this:

    Make sure that you have the following folders in your blog directory and that they have a chmod of 777:

    1) wp-content/uploads/ should have a chmod of something more than 000
    2) wp-content/uploads/bwbps/ should have a chmod of 777 (everything is checked)
    3) wp-content/uploads/bwbps/thumbs/ should have a chmod of 777 (everything is checked)

    If you don’t have those folders, something didn’t go right in the install of the plugin. You could try creating them manually and making sure they have the right chmod.

    Let me know. I’m really at my wits end on this one.

    Byron

  40. Aria Says:

    Hi Byron,

    Thank you for your quick response.

    I have created wp-content/uploads/bwbps – chmod to 777
    wp-content/uploads/bwbps/thumbs – chmod to 777
    I even tried wp-content/uploads – chmod to 777
    but still no luck yet :(

    anything else I need to do or maybe I missed out?

    Thanks

    Aria

  41. Byron Bennett Says:

    Aria,

    Uggg…alright here goes the last of the powder in my keg:

    1) What type of file are you uploading? (you probably have tried a half dozen types, but it’s about all I can think of at this point)

    2) Take a look in the wp-content/uploads/bwbps/ folder and see if you see any files after uploading. Even if it doesn’t create a thumb nail, it will usually upload files that are too large to this folder…it just doesn’t have enough memory to create thumbnails.

    3) Take a look in the plugin code, especially the ajax_upload.php file…tweak some of the settings to see anything changes for you. Try commenting out lines:

    line 43: $handle->allowed = array(‘image/*’);
    line 44: $handle->forbidden = array(‘application/*’);

    4) You might want to give up before this one, but maybe try the plugin on a WordPress 2.7 blog. That’s what it was built on, but I can’t imagine anything in the ajax_upload.php file or the upload code that would make a difference between 2.5 and 2.7. Still, who knows??

    If you figure this out, please let me know. I’m completely puzzled.

    Byron

  42. Aria Says:

    Byron,

    1. Just standard image file jpg and gif.

    2. wp-content/uploads/bwbps/ –> empty
    wp-content/uploads/bwbps/thumbs –> empty

    3. tried, still doesn’t work out

    4. tried on wordpress 2.6.3 and also 2.7 .

    it just doesn’t work for me :( . I think I have followed steps required for installation :
    - unzip the files, upload, and activate
    I leave all the settings as default, only change it to auto add and role to registered users.
    I did not have the bwbps and bwbps/thumbs folder, but I have manually created them and set chmod to 777.

    thanks again for all your help Byron, I hope it works for everybody else.

  43. Aria Says:

    Byron,

    I finally got it work ! I still don’t know what’s wrong with the previous one, I got it work this time here : http://ribbon.bynodesigns.com/ , this one was wordpress 2.5.1, then I upgraded to wordpress 2.7 and it works!

    Thanks again

  44. Byron Bennett Says:

    Aria,

    Awesome! I was losing my marbles over that. I was registering for your site and about to ask you to turn on uploading for registered users to see if it would work for me.

    I don’t think the problem is in the PhotoSmash code, but you never know.

    Thanks for sticking it out. I would have had a big question mark in my head for a long time over this.

    Cheers!
    Byron

  45. Byron Bennett Says:

    Aria,

    I must say, it looks pretty good on your site ;-)

    Byron

  46. Brian Pate Says:

    Hi, Byron.

    Now that Aria’s is working, there is one other error I wanted to run by you. At the top of my PhotoSmash options page, I see this:

    Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in …/wp-content/plugins/photosmash-galleries/bwbps-admin.php on line 13

    But I don’t see anything to to change to true there. Any advice?

  47. Byron Bennett Says:

    Hi Brian,

    Thanks for the heads up on that. It shouldn’t affect functionality, just be annoying. You get that warning in later versions of PHP if you have the Show PHP Warnings setting turned on.

    I’m going to need to spend some time removing the & from my funtion calls…like:

    foo(&$a)

    It’ll take me a little bit to get to that, but you should be able to ignore it in the mean time. I just hope that removing that doesn’t break PHP 4.

    Byron

  48. Brian Pate Says:

    Thanks, Byron.

    BTW – I just tried out the new Floatbox Plus widget (http://wordpress.org/extend/plugins/floatbox-plus/) on my development site, and it worked great with PhotoSmash. Strangely, I didn’t even have to change my PhotoSmash settings. I just deactivated Lightbox 2, installed and activated Floatbox Plus, and now all my images – whether in regular posts or the PhotoSmash Galleries – automatically use Floatbox. I like it because Lightbox was only working for me in Firefox (it wouldn’t work in IE or Chrome for some reason), but Floatbox is working in both Firefox and IE (haven’t tested Chrome yet).

  49. Byron Bennett Says:

    Thanks for the update Brian. I’m glad to hear that something is working well. If you read back through the comments here, you might get the idea that PhotoSmash doesn’t work too well.

    So, thanks for the good words…and the tip on Floatbox. I haven’t tried that one before.
    Cheers!
    Byron

  50. Byron Bennett Says:

    Aria,

    If you’re still checking comments here, would you mind checking your blog that wasn’t working to see if it uses MYSQL 4 or MYSQL 5?

    I’m wondering if the database creation script only works on MYSQL 5.

    And also PHP 4 versus PHP 5?

    Thanks!
    Byron

  51. Aria Says:

    I tried in 2 different servers, here is the detail :

    Not working – http://designaria.com/selingtuh – installed on fresh wordpress 2.7. I don’t know what’s wrong, but I assumed the server sucks, as later on I tried to upload image from the normal wordpress “create post” and I can’t.
    Php : 5.2.6
    SQL : 5.0.67-community

    Working – http://ribbon.bynodesigns.com
    Server : hostgator
    Php : PHP 5
    SQL : 5.0.67-community
    I don’t know what’s the exact problem, but I think it is on my wordpress installation.
    http://ribbon.bynodesigns.com is my 2nd installation in the same server, and the only difference is the wordpress version. I installed the plugin in another subdomain, on wordpress 2.6.2 – not working , and here http://ribbon.bynodesigns.com was wordpress 2.5.1 upgraded to 2.7, work like magic.

    Hope that help . Let me know if you need any other informations .

    Thanks

    Aria

  52. Byron Bennett Says:

    Aria,

    Thanks for checking that for me. It does sound like something is awry with your server settings or something. I was pretty much out of ideas as to what might be wrong from a PhotoSmash perspective.

    Thanks again!
    Byron

  53. My Camera World Says:

    I get the following message

    The maximum file size allowed is 400k. Please resize and try again.

    All the files have been below 400K

    I use ftp to move files to my server provider but I don’t know how to use CHMOD.

    I created 2 new folders
    wp-content/uploads/bwbps/ (drwxr-xr-r) default permissions?
    wp-content/uploads/bwbps/ (drwxr-xr-r) default permissions?

    I created a bew box gallery just in case but this did not help.

    I am using wp 2.7

    http://www.nielsp.ca/green/

    thanks

    Niels

  54. Byron Bennett Says:

    Hi Niels,

    Your problem sounds a lot like Aria’s, which we never did figure out what was wrong. Thanks for reading through the trouble shooting above, you’ve already gotten most of the way there. CHMOD is just a way of setting the permissions. On those folders: bwbps/ and bwbps/thumbs, set the permissions so that everything is checked (this translates to 777 if your program shows you the numeric display of that). So everything should have read, write, and execute.

    So, here are a couple of things to check:

    1) Check is to make sure that you’re able to upload images in the WordPress Write Post screen. Aria found that wasn’t working either.

    2) Check the permissions on the wp-content/uploads folder. It should be at least:

    Owner: Read + Write + Execute
    Group: Read + Execute
    All Users: Read + Execute

    Maybe there’s something there. Let me know.

    Byron

  55. My Camera World Says:

    Thanks for getting back so quickly.

    When I lock at the codes for these directories which is wxr-xr-r I think it matches the permissions settings you described above. I did create both folders as there was a typo above which repeated floder.

    Niels

  56. james Says:

    I have installed photosmash
    and when I try to upload a photo
    to test it out, it says the photo cannot be
    larger than 400k? and it does not upload.
    I even tried a file that was only 12kb
    and I am getting the same message.

    Please email me back!

  57. Byron Bennett Says:

    Hi James,

    There have been a couple of people who’ve had similar problems, but it usually appears to be a problem with their servers, though we haven’t figured out what. At any rate, please check the discussion above. I’ll send you an email on this as well, and copy in some of the likely steps to try.

    Byron

  58. Andrea Says:

    Hi Byron -

    Darn it, I’m having the same thing – “photo cannot be
    larger than 400k” and I’ve tested with forum avatars, so you know they’re tiny.

    I did CHMOD the wp-content -> uploads in addition to the ones that the original directions said to and I just tried to see if I can upload a picture into a post – yeppers no problem there.

    WP 2.7
    It’s a hostgator account
    PHP 5.2.8
    SQL 5.0.67-community

    hth – would love to use it!

    Andrea

  59. Byron Bennett Says:

    Andrea,

    Arrrrggggg! This is happening too often for there not to be some issue with PhotoSmash. Thanks for going through all the motions.

    Ok, one last test/question….did you try uploading through PhotoSmash after you successfully did an upload through WP Write Post page? Maybe there is something that needs get get broken in right before PhotoSmash will upload.

    I just tried it on one of my other blogs, on a different server, and it worked fine. I haven’t tried it on one that hasn’t ever had a photo uploaded before.

    I really hope that does the trick…That would give me a bead on what I need to fix.

    Thanks for trying!
    Byron

  60. Andrea Says:

    Hmm – bummer …

    Well I tired it on another – and it for sure didn’t agree with that theme. The upload box showed on the published post itself. I didn’t get the 400k error, it didn’t seem to save but I also didn’t do the CHMOD either if that helps any.

    Was going to tinker around some more, but suddenly my ftp has gone down :-/

    Anyway, maybe it’s time to start comparing themes?

    If there’s a simple one this works on, I’d be game to try that.

    Thx,
    Andrea

  61. Steve Says:

    Having the same problem. Giving me the 400 error. Added the files and changed the CHMOD, but nothing. Also I have no admin tools for it. There is nothing in the main admin section where I can change any settings. This would fit perfect for what I want to do.

  62. Byron Bennett Says:

    Andrea, Steve,

    I am stumped.

    The basic things that could go wrong are:

    1) the database tables might not get created
    2) the upload folders might not get added…or might not have correct rights
    3) there might be some conflict with some other code running on your blog

    That’s all I can think of right now.

    Are either of you having any problems with other plugins that create folders and tables like maybe: NextGen Gallery?

    Is there anybody out there who might have another suggestion? Please? I’m at a loss.

    Thanks,
    Byron

  63. Darian Says:

    Hi Byron,

    Listen, I’m looking for a WP plugin that allows me to have a site where anyone can upload images and anyone can rate them. Of course with some control on my part. I looked at a couple of plugins but they don’t do what I need. Can yours do that?

    Please let me know…

    Thanx,

    Darian

  64. Byron Bennett Says:

    Hi Darian,

    Yes, PhotoSmash lets any logged in user upload photos. I haven’t built the rating system yet, but it is planned. So this gets you 75% the way there.

    Byron

  65. Jen Says:

    Byron,

    Having same issues as everyone else with the uploading of photos.

    I added folders and changed permissions to 777. Was able to upload images into WP Posts.

    I do not know anything about lightbox. Is this something else I need installed in order for PS to work?

    Any help would be appreciated.

  66. James Says:

    Hey Byron, it looks like you may be an answer to my prayers haha. I am embarking on creating a user based subscription site where the users would be able to upload pictures to there own personal gallery and post them on the site, then other users would be able to rate these photo’s and the results would then be polled into a top 10 or something of that nature, kinda like the hot or not sites etc. If you think your plugin is capable of this very soon, could you let me know as I’m researching the best way to go about this, and so far your plugin seems the closest to my aims.
    Thanks Alot

  67. Nick Says:

    Hi Byron,

    Love the plugin, but I fall into the bucket of users who can’t upload photos… I’m getting the same “photo cannot be larger than 400k” message. I’m on WordPress 2.7.

    So I tried the following, to no avail:

    1) wp-content/uploads/ ———–> the chmod was already 777
    2) wp-content/uploads/bwbps/ ———–> the chmod was already 777
    3) wp-content/uploads/bwbps/thumbs/ ———–> the chmod was already 777
    4) Trying to upload JPEGs and GIFs (all under 400k)
    5) Found the ajax_upload.php file and commented out the following lines:

    line 43: $handle->allowed = array(’image/*’);
    line 44: $handle->forbidden = array(’application/*’);

    6) Looked in the wp-content/uploads/bwbps/ folder and saw files after uploading.
    7) Uploaded a JPEG via the WordPress Write Post utility, and it worked.
    8) Downloaded NextGen and tested it out… uploaded a couple of images and it worked.

    Anything else you suggest I try?

    Thanks Byron,
    Nick

  68. Byron Bennett Says:

    Jen, James, and Nick…and really anybody else having the 400k error,

    I am going to have to go back to the drawing boards with this one to figure out what is going. I am finishing up some work on something else and should have some time by the end of the week to devote to this. My plan is to rip out the code around the upload and see if I can emulate the method used by NextGen or one of the other uploaders.

    I am really sorry this is getting people’s hopes up and then dashing them back to the ground. I know I looked long and hard for a plugin that would do what PhotoSmash does, but obviously, had to resort to building it myself. Unfortunately, my machines didn’t test the way it appears a large part of the population’s.

    Hopefully, I’ll have this figured out sooner than later. Be sure to subscribe to comments here if you’re interested in trying again. I’ll keep you posted.

    Not giving up!
    Byron

  69. Eric Says:

    Hi Byron,

    Thanks for creating this plugin. I’m trying to setup a site for my family members to upload pics/vids. So far in general everything works with the plugin. I’m having no problems uploading larger images like some other are.

    I do have a problem in that I have tried to set the img_status=1 (active) so that registered users can add to the gallery without moderation. Unfortunately it still waits for moderator approval before being visible to all.

    Any suggestions? WP and php is completely new to me since about a week ago, so please bear with me if I completely missed something. The last time I did any coding was about 14yrs ago using Pascal!

  70. Byron Bennett Says:

    Hi Eric,

    Thanks for letting me know you’re up and running with it. You have discovered yet another thing I need to fix. Sorry about that. I’ll get that fixed for the next release. Hopefully by the end of the weekend.

    Really…I’m glad to hear that this is working for somebody.

    Byron

  71. Lester Says:

    Hi,

    I’ve tried the plugin and also have the same 400k limit issue.

    I’m not sure if anyone else has noticed, but when I click the upload button, the form that appears shows website – gallery upload – id:1 and not the name of the gallery (eg my pictures)

    Its going to be a great plugin so please don’t lose interest over a few teathing problems.

  72. Byron Bennett Says:

    Lester, Jen, Nick, Andrea, Steve, and several others,

    Please tell me that the common denominator is that you are all running this on a Windows Server…If so, I may have a bead on the problem. Could one of you please try Version 1.6 0.1.61 of PhotoSmash on your WP blog that wasn’t working before? Please let me know if 1.6 0.1.61 fixes your problem. It should be out on WordPress within 30 minutes of this comment…I’ll also put in it in the post above shortly.

    Thanks!
    Byron

    Updated: one more fix…the version should be 0.1.61

  73. Jen Says:

    Byron,

    Will look for update. I am in fact running on a Windows Server.

  74. Byron Bennett Says:

    Jen,

    That would be most excellent…I anxiously await your report ;-)

    Byron

  75. Byron Bennett Says:

    Jen,

    If you tried 0.1.6, you might need to try version 0.1.61 instead. I missed one of the references in the first fix. Activating the plugin might not have created the database tables.

    Again, thanks for testing!
    Byron

  76. Shack Dougall Says:

    Byron,

    Sorry to say this, but I’m having the 400k limit issue, too. 0.1.6 on a Centos 5 box. On installation, the database tables were created fine, but not the upload directories. I created them myself, but still no go.

    It could be an incompatibility with another plugin. I have a bunch of them, but no time to debug this further.

    Best of luck with it. Great idea for a plugin!

  77. Byron Bennett Says:

    Shack,
    Thanks for the feedback….disappointing, but ah well. I’m going to keep digging deeper. Maybe something to do with Safe Mode…still digging.

    BB

  78. Jen Says:

    Byron,

    Just updated with 0.1.7 and I am still getting the same error. I will keep checking back!!

    Jen

  79. RodrigoJol Says:

    Hi, your plugin works perfect to me!!!
    congrats,
    but, i have a question: does it work with thickbox?
    thank you

    (from Mexico)

  80. baron Says:

    hi. Thanks for plugin

    perfect.

    Regards

  81. Byron Bennett Says:

    Jen
    Thanks for the update…I’m still working on it :)

    Rodrigo
    Great! I’m glad to hear it’s working at least for some folks.

    Yes, it will work with Thickbox, lightbox, or really any of those boxes…just make sure you set the Rel properly in the Gallery Settings (or PhotoSmash Defaults).

    Baron
    Thanks! I appreciate the comment.

    And to Everyone
    I’m still working on fix for the upload issue. For those of you who it is running for, you’ll notice that I have broken the Admin into 3 separate pages, hopefully to declutter a bit. You’ll find a PhotoSmash menu box at the bottom of your left-hand Admin menu.

    Feedback is welcome!

    Cheers,
    Byron

  82. Byron Bennett Says:

    Version 0.1.8 is yet another attemp to solve the 400k issue. If it doesn’t solve it, it would be very helpful if someone with the problem might help out in the debugging through email instead of this painful process. I am unable to reproduce the problem on my system, so debugging is….ummmm…slow.

    If 0.1.8 doesn’t do it, I’d be delighted if there was a volunteer to help debug.

    Cheers,
    Byron

  83. Nick Says:

    Hi Byron,

    That’s awesome that you’re working so hard to make this work for some of us. I just downloaded and installed 0.1.8… but got the same error message regarding the 400k size.

    Now I wish I could tell you if I’m on a Windows server or not, but I really don’t know how to find that info out.

    Sorry to return the bad news.

    -Nick

  84. Carson Jones Says:

    Still not working for me on bluehost. Hope you get it working for everyone soon, it’s a great concept.

  85. Shack Dougall Says:

    I have a theory as to why Photosmash didn’t work on my website.

    I get an e-mail every time a 404 error happens on the site. Normally, this lets me know immediately when something is going wrong. However, a recent change to my forum plugin has flooded me with 404’s so it took me a while to notice the 404s from Photosmash.

    My blog isn’t in the root directory of the website. It is something like http://website.com/blog. The 404 that I’m getting is:

    http://website.com/wp-content/plugins/photosmash-galleries/ajax_upload.php

    As you can see, the link to ajax_upload.php is pointing to website.com/ rather than website.com/blog/.

    I think if you fix this, it will probably work for me.

    Hope this helps!

  86. Steve Says:

    Just upgraded my wordpress and started adding plugins… I am getting the same errors as others…

    The maximum file size allowed is 400k. Please resize and try again.

    I have checked folder permissions etc, but did notice that I have different folder names…

    wpcontent
    -> 2009
    - -> 02
    - – -> bwbps
    - – - -> thumbs

    notice there is no hyphen in the above folder name… and the pictures have been uploaded…

    hope this helps to trace the problem…

  87. Sergio Says:

    Hi is there anyway to have the plugin upload the users’ images to a picture hosting accout i.e. Flickr, Photobucket. This might be good for those who expect high volume of user uploads and want to save on storage.

    Thanks

  88. Steve Says:

    I adjusted your code and changed urls to absolute references so images are uploading. The error message “maximum filesize…” still displays even when the image is uploaded and processed, and is viewable in the gallery…

    I also Unticked a setting in wordpress – Settings -> Miscallaneous ->
    Organize my uploads into month- and year-based folders…

    Hope this helps.

  89. Byron Bennett Says:

    Steve,
    That was a big help. I was using a function that didn’t account for blogs using time based folders. Hopefully 0.1.91 fixes that.

    Thanks,
    BB

  90. Byron Bennett Says:

    Hi Sergio,

    Thanks for the suggestion. When I get through all of these current issues, I’ll check into that. That would certainly be a cool feature.

    BB

  91. Steve Says:

    I tried again with v0.1.91 (although I thought I was using the newest) Errors are the same… The URLs are messing up things up, unless I edit them to be absolute.

    The error message pops up even after uploading the images (thumbnails are created)

    admin photo manager doesn;t update properly after deleting an image. (url is also wrong unless changed to absolute reference.)

    Hope you get these little glitches sorted for this Great Plugin!

  92. Rob Says:

    Hi,

    I installed version 0.1.9 on wordpress 2.7.1 today.

    The installation appears to have been successful.

    A gallery has been created and the tag has been emebedded in a blog.

    When I attempt to upload an image by clicking the link in the blog, nothing happens.

    I have tried this in IE, firefox and chrome and the same result (or lack of)

    Any ideas?

  93. Byron Bennett Says:

    Steve, Rob,

    I’ll keep after it until we get it fixed. Thanks for keeping me apprised.

    BB

  94. Byron Bennett Says:

    Steve,
    I’ve put in another update (0.1.93). If you get a chance, please try this one out and let me know if that fixes it for you. Again, I really appreciate your helping out with the debug.

    Byron

  95. Jen Says:

    Byron,

    Sorry to say it’s still not working for me. This time however, I didn’t get the red X directly. There was a progress meter and then I was told the file was too large.

    I’d be happy to be your guinea pig. Drop me a line.

    Jen

  96. Shack Dougall Says:

    I just tried 0.1.93. The good news is that it does better than 0.1.6. No 404’s and now the files show up in wp-content/uploads/bwbps. So, the upload is successful. It also creates the thumbnails in bwbps/thumbs and I verified that they are valid and the correct size.

    Everything looks good, except that the upload dialog still returns with the 400K error message. :-( . Just for kicks I tried it in both FF 3.0.6 and IE7.

    So, your work is paying off, but we aren’t quite there yet.

  97. Byron Bennett Says:

    Shack,
    Thanks for the update! Are you getting any photos in the gallery when you reload the page? If not, then that probably means the database interaction isn’t happening…If so, then…hmmm…

    BB

  98. Shack Dougall Says:

    No, nothing in the database. The bwbps_images table is empty.

    I did notice one thing when I was looking in the database. After installing the plugin a couple of times, I had duplicate indexes created on the tables. But that’s not causing the 400K problem.

    I’ll have some time on the weekend to look at it in more detail.

  99. Steve Says:

    Hi! I saw the update, so I thought I’d have a look…

    similar problems for me;
    400k error message still showing (although I now see a fancy progress bar), but pictures are being uploaded to a path that starts “wpcontent” – not wp-content…

    I can fix it by using;

    //$bwbpsuploaddir = wp_upload_dir();
    //$_psuploadpath = $bwbpsuploaddir['url'];

    define(‘PSUPLOADPATH’, WP_CONTENT_DIR .’/uploads’);

    and changing references in all your files…

    The uploaded pictures are not being added to the database; again, I can fix that by changing to the following (in ajax_upload)

    if($handle->processed){
    $json['succeed'] = “true”;
    } else {
    $json['succeed'] = “false”;
    $json['message'] = “Image processing failed.”;

    $json['error'] = strip_tags($handle->error);
    echo json_encode($json);
    }
    // moved the closing bracket

    I am no expert – hope this helps.

    Thumbs UP for a great plugin…

  100. Sam Says:

    I’m getting the same upload problem (no image uploads regardless of size, filetype etc) and no messages are printed to the screen. However, using firebug I get this error:

    Exception… “‘Syntax error, unrecognized expression: [@name=bwbps_uploadfile]‘ when calling method: [nsIDOMEventListener::handleEvent]” nsresult: “0×8057001e (NS_ERROR_XPC_JS_THREW_STRING)” location: “” data: no]
    http://mydomain.com/wp-includes/js/tw-sack.js?ver=1.6.1
    Line 43

    any ideas what it could be ?

  101. Byron Bennett Says:

    Shack, Steve,

    That gets me closer…thanks!

    Steve may have closed the gap on part of the problem with using WP_CONTENT_DIR, though you’d think that wp_upload_dir() would get you there too.

    The database issue appears to be a result of the Verot class.upload.php which handles the image manipulations not processing properly. This is what handles thumbnails and moving things around.

    Shack if you get a chance to poke around this weekend, I’d be much obliged.

    Thanks again to you both for inching this thing forward.

    Byron

  102. Byron Bennett Says:

    Hi Sam,

    What version of WordPress are you on? That’s the first I’ve seen of that issue, though it may have been happening before. I have noticed that there may be some conflicts with plugins that utilize the jquery.forms.js, which turns a form into an ajax form. WP-Wall seemed to be one.

    You might try turning off plugins to see if there is a conflict. Please let me know if find a cause.

    Thanks,
    BB

  103. Sam Says:

    Hi Byron, its wordpress version 2.7.0. I have already tried disabling all the plugins except photosmash and that doesnt seem to work. It’s made the database correctly but doesnt upload images and fails to populate any DB tables

  104. Byron Bennett Says:

    Hello All,
    Version 0.1.95 is yet another attempt subdue this 400k bug. At some point, one of us (the bug or me) is going to have to cry uncle. I’m hoping this will be licked soon.

    Please let me know if you’re still getting the error with 0.1.95.

    Steve, the suggestion on wp_content_dir was very helpful. I’m also using wp_content_url, which may help out.

    Jen, thanks for being a guinea pig in this process.

    I look forward to hearing your reports back, admittedly, with a tiny hint of dread.

    Cheers!
    Byron

  105. Steve Says:

    Hi Byron.

    The images are uploading to the correct place now but the error message still shows afterwards. The database is not being updated.

    If I change the code to the following;

    if($handle->processed){
    $json['succeed'] = “true”;
    } else {
    $json['succeed'] = “false”;
    $json['message'] = “Image processing failed.”;

    $json['error'] = strip_tags($handle->error);
    echo json_encode($json);
    }

    // moved the closing brace to the bottom. This allows the database to be updated…Not sure why this fixes it for me….

    I had a quick look at the upload.class documentation and maybe you need to change a couple of things. You don’t check for ’success’ after the first call to $handle->process. That maybe a little picky, but the error seams to be with the ajax part…

    You’re getting there…

    Keep up the good work!!!

  106. Steve Says:

    Is this statement causing the problem??

    echo json_encode($json);

    I’m not sure how to debug the ajax communication part of your script, but maybe that is where the error is coming from…

    LiveHeaders is showing me a successful response, but at the moment I don’t know what the response contains…

  107. Steve Says:

    Firebug for firefox is showing a response to the ajax_upload.php of “-1″ ???

    My server is using PHP4.3.11

  108. Byron Bennett Says:

    Steve,

    That’s it! json_encode is PHP 5 only.

    So, I should be able to get that fixed. Will likely be later today, though.
    Thanks for the debug!

  109. Lester Says:

    Hi Byron,

    FYI I’m using: LINUX, PHP 4.3, CGI 2.0, PERL 5.0, PYTHON 2.4, RUBY 1.8.4, MYSQL 4.0.27, 4.1, 5.0

    I get the picutures uploaded to the upload folder but have the 400k error.

    Lester

  110. Mutiu Says:

    I downloaded this from WP site but its showing this :”Plugin could not be activated because it triggered a fatal error. Fatal error: Cannot redeclare class BWB_PhotoSmash in /home/eventarc/public_html/wp-content/plugins/photosmash-galleries/bwb-photosmash.php on line 35

    after activation.
    and its not available here for download.

    Please look into this
    Thanks

  111. Byron Bennett Says:

    Hi Mutiu,

    I don’t think we’ve seen that one yet. What version of PHP and WordPress are your running?

    Does anyone else have any suggestions on this one?

    Thanks,
    Byron

  112. Steve Says:

    wordpress is still showing version 1.95 :-( I’m eager to try this out.

  113. Byron Bennett Says:

    Hey Steve,

    You should be able to get it at:

    http://wordpress.org/extend/plugins/photosmash-galleries/

    That shows 0.1.96.

    BB

  114. Lester Says:

    wooohoo. just confirmed that .96 fixes the problem.
    I’m going to have a play around.

    Cheers for fixing it.

  115. Steve Says:

    *Applause*

    Thats working! great job! :-)

    A couple of comments:

    After the image has been uploaded it is inserted into the gallery, until the page is fully refreshed the new image isnt associated with my lightbox… and thus opens in the current window :-(

    I would prefer to have proportional sizing for my images… Will you be adding this as an option? (or I’ll just have to make a couple of adjustments)

    wishlist;
    tag each image with the ID of the person who uploaded it?
    tag each image with a date
    watermark each image…

    OK you’ve done enough work for the time being…

    Great plugin!!! I’m sure many people will be using it!

  116. Shack Dougall Says:

    OMG! 0.1.96 is working for me!

    **** HAPPY DANCE ****

    Great work, Byron!

    There are a couple of small issues that I’m having, but basically, it works!

    1. When I delete a photo in the Photo Manager, it says “saving…”, but never finishes and the photo doesn’t disappear. However, iif I press the Edit button again to refresh the list, the photo is gone. Tried in FF3 and IE7.

    2. If I click on a photo in the gallery immediately after I upload it, then it doesn’t open with Shadowbox JS. It opens the image in a new page by itself. Then, if I press the back button to go back to the gallery page, the photo is missing from the gallery. However, if I reload the gallery page, the photo is there and it opens correctly with Shadowbox JS.

    That is in FF3. In IE7, the newly uploaded image opens in a separate page, but when I go back to the gallery page, the photo is still in the gallery, and if I click the photo a second time, it opens in Shadowbox JS. I guess maybe IE7 is doing a page reload when I press the back button.

    I used Firebug to look at the link in the newly uploaded image. The rel parameter looks correct, i.e., it says rel = “shadowbox”. Not sure what is going on.

    3. Looks like there’s a nesting error with the span tags in the gallery image links. They look something like:
    li a span img span -span -a -span -li
    I think it should be:
    li a span img span -span -span -a -li

    But these are all minor issues. The important thing is that …

    IT WORKS! :-)

  117. Byron Bennett Says:

    Happy dance indeed!!!

    Thanks guys, I really couldn’t have gotten there without your input. Thanks for the comments and the suggestions.

    Shack
    1) The Admin delete thing is another json_encode issue….easy to fix at this point…just need a few minutes later tonight.
    2) (Steve mentioned this one too)…This one is harder. I think Shadowbox and Lightbox and those plugins attach the onclick event to images with the rel set when the page first loads. So, anything added to the page after that doesn’t get the listener added. It’s a bit beyond me right now to figure out which ___box viewer is running and figure out what the onclick needs to be set to. I’m pretty sure it can be done, but it’s going to take a little bit of digging…although, Firebug might tell you what function the onclick is pointing to. So it might not be too bad.
    3)I’ll check out the nesting…np

    Steve
    1) Proportional sizing shouldn’t be too bad to implement…probably should be a general default setting and a gallery specific setting…give 2 or three options
    2) Good news on user ID’s and date/time…I’m capturing that when images are uploaded, sow it shouldn’t be too hard to add options for showing those in the captions.
    3) Watermarking, I think is built into the upload class, so that might not be too hard either…just time consuming with the image upload and all that.

    My Wish List
    On my list is to add some styling options, so if anyone comes up with some good CSS for this gallery, I’d love to include it as an option.

    Also, I’m not real crazy about how a blank gallery looks. The different browsers do different things when going from nothing to something in tables or lists…you get some weird spacing and whatnot. I considered having the gallery display:none until something is added and then showing…Any suggestions?

    Also, I’d like to add the upload ZIP file option at some point.

    There’s really so much that can be done with a gallery…NextGen just goes to show how crazy the options can get. I want to keep it dead simple to use, so there has to be a balance.

    Any usability suggestions you have would be welcomed too.

    Thanks again for helping debug! Hope to see you all around here from time to time, with something other than a Bug Report ;-)

    Cheers!
    Byron

  118. af3 Says:

    Hi, does this work with WPMU2.6.5 and above? rgds

  119. Byron Bennett Says:

    Hi af3,
    Sorry, I have no idea. I would be surprised if it did, because it was so hard to get it to work with regular old WP ;-)

    BB

  120. Another PhotoSmash Test Post! » PMOPress Says:

    [...] post questions on PhotoSmash back over at WhyPad in the [...]

  121. Craig Says:

    Just installed new blog, and installed 1.98. I get the blank gallery, the “add photo” link, but it does nothing. Set for all users to be allowed to add.
    Hint?

  122. Byron Bennett Says:

    Hi Craig,

    I just installed 0.1.98 on a brand new blog and it’s working fine, which hopefully means that I didn’t break anything with 0.1.98. The fact that the “add photo” link isn’t doing anything probably indicates that there is a Javascript problem somewhere. There could be a javascript error in another plugin or something. I assume that since it’s a new blog, that you’re on WP 2.7.1, and that should be fine. If you’re a Firebug user (FireFox javascript debugger), take a look and see if you’re getting any JS errors. I’m not showing any errors in FireBug on my new test blog.

    FIreBug is really a web developer’s bet friend.

    If you still can see anything, you might start deactivating plugins to see if there’s a conflict. If that doesn’t turn anything up, send me a link where I can see it if you don’t mind.

    Hope that gets you started.
    BB

  123. Craig Says:

    Did my last comment go through? Does not show as being moderated?

  124. Craig Says:

    Don’t know if you got the other comment. Downloaded wordpress today, no other plugins, have firebug at work but IE Developer’s Toolbar shows nothing. http://www.PS165.org/blog. Email me offline and I will give you an admin login. craig@ps165.org

  125. RobShaw Says:

    Hi Byron, I was having the same problem as Sam (unable to upload photos) and I am using the latest version of your plugin (0.1.98) but appeared to have fixed it.
    I edited “bwbps.js” and replaced var fileToUploadValue = $j(‘input[@name=bwbps_uploadfile]‘).fieldValue(); with var fileToUploadValue = $j(“#bwbps_uploadfile”).val(); and also modified if (!fileToUploadValue[0]) with if (!fileToUploadValue) in the function “bwbpsVerifyUploadRequest”.

    I can now upload photos as normal!

  126. Craig Says:

    I don’t see any errors with Firebug and the .js files are being served. The only other plugin is the lightbox version you suggested, does not work with or without it. Running on Windows 2003 IIS 6.0.

  127. Byron Bennett Says:

    Hey Craig and Rob,
    Hopefully you are both experiencing the same problem…and hopefully there is an explanation for it, though I can’t for the life of me see what that would be.

    I will definitely get a fix out for you guys tonight (may be late, but should be tonight)…in the mean time, Rob could you try just removing the @ symbol from @name=bwbps_uploadfile ?

    That code is virtually right out of the jQuery documentation, though I did notice that it doesn’t have the @ symbol in it.

    Thanks for helping with the debug! The Javascript hasn’t really changed over the last few versions, and it appears to work for most people…weirdness ensues…situation normal.

    Byron

  128. Craig Says:

    As mentioned, I can give you admin access to the blog and ftp if it will help you debug and/or reproduce. craig@ps165.org

  129. Ryan Says:

    Hi Byron, i just love your plugin,but the only thing i feel is missing an alternate option for url image upload/ url image hot linking feature, could by any chance can u add this?? would appreciate if you could.

    Regards,
    Ryan

  130. RodrigoJol Says:

    Hi BB,

    I see the 400kb issue fixed, just passing by to say congratulations, now I think its time to move on into adding new features to this excellent plug in, I was wondering how about if I already upload a directory to my hosting service, and all I need to do is add those pics by URL to a gallery, it would be nice.
    Again, sorry by my english, i’m a spanish speaker.

    Regards,
    RodrigoJol

  131. Ami Says:

    hi there! this looks like an awesome plugin and is what we need for a site we are thinking about developing. question for you: is there a default way to have the url under the image (not the image itself because we are lightboxing it) link to the website of the wordpress user who uploaded it (via the author profile)? alternatively, if that link can’t be done automatically, can the user specify a URL to link it to when they upload it? we are looking to create galleries contributed to by lots of photographers so having proper credit is essential.

    thank you so much!

  132. Byron Bennett Says:

    Hi Ryan
    It appears you and RodrigoJol both have the same feature request. That sort of raises the priority ;-)

    Hi RodrigoJol
    Thanks! The 400k issue took about a couple months off my life, it felt like.

    Let me think on how I might implement your suggestion for URL/hotlinking. It may be possible…just need to figure it out. I’ll put on the feature request list!

    Hi Ami
    That is at least the second time this feature has been requested (allowing the user to specify a url, that is). That shouldn’t be that hard to do. I may even be able to include the user’s website from their profile as an option. I’ll put it on the list.

    Cheers!
    Byron

  133. Ami Says:

    great, thank you! i’ll keep watching this site as that feature is pretty integral to us implementing the functionality. once you have that going, it looks like we’re golden! love that you have taken the time to develop this – thank you again!

  134. Byron Bennett Says:

    Ryan, RodrigoJol
    I’ve added ability to load images from URLs. Hopefully that’s what you were looking for. Let me know if you see any problems. Thanks.

    Ami
    I’ve started on your request, but got hung up on the one above…hopefully will have this in the next few days.

    Cheers!
    Byron

  135. Byron Bennett Says:

    Ami,
    Caption features have been added that allow displaying contributor’s name and link. Hope that helps.

    BB

  136. Chedwa Says:

    Hi Byron I’ve just set up the PhotoSmash Plug in in the latest WP 2.7.1 and I’m trying to upload a jpeg at 140kb and I’m getting the progress bar as if it is all working but then “Image processing failed.” is there permissions I need to set somwhere or somthing I have missed?

    Cheers
    Chedy

  137. Steve Says:

    Great plugin….I am developing a family site with an all range of computer experience. Photosmash is the first Image/Gallery uploader that makes it easy for anyone to use.

    Are you planning to add a multi-file upload facility ? (Flash based ?) With a Gallery its a bit of a long sequence to upload images one by one.

  138. Shack Dougall Says:

    I took a quick look at 0.2.21. Looking good!

    One thing thing that I noticed. In the Add Photo link, the href passes parameters separated by ampersands, e.g., #TB_inline?height=375&width=530&inlineId=bwbps-formcont

    To pass XHTML compliance, the &’s need to be changed to &

    Not sure if this comment will be legible, LOL, since it is using ampersands in it. Hopefully, WordPress will escape everything properly.

  139. Shack Dougall Says:

    okay, didn’t quite work. Should be:

    To pass XHTML compliance, the &’s need to be changed to &amp;.

    Let’s see if that works. Actually, this is a good demonstration of the ampersand problem in general. :-)

  140. Shack Dougall Says:

    With regard to features. It would be really nice if there was some way to break up the gallery into pages and have a setting in admin that lets you choose how many images per page.

  141. Byron Bennett Says:

    Hi Shack,
    Nice to see you back! I noticed that whole ampersand thing in the WC3 validator too, but I thought that it wouldn’t work if you used the … well you know. I’ll give it a try.

    Thanks for the suggestion. I’m putting on the list. Just in time for my big question at the top of this post.

    BB

  142. Byron Bennett Says:

    Hi PhotoSmash Comment Subscribers,

    I’ve posted a question at the top of this post to find out where PhotoSmash needs work to get a better rating in WordPress. I don’t dispute the current rating, I just want to know where I should direct my efforts to make it better.

    So, please chime in.

    Cheers!
    Byron

  143. Shack Dougall Says:

    I suspect that the current rating is a reflection of the initial problems that folks had getting PhotoSmash to work.

    IMO, the ratings aren’t that important. I look at them, but they aren’t the deciding factor. The critical factors for me are that the plugin satisfies my need with minimal effort on my part, that it is under active development, and that incompatibility problems are fixed quickly when new versions of WordPress are released.

    In general, it is better for a plugin to do a few things really well. I use some large kitchen-sink type plugins, but they almost always bite me. And every feature that is added will increase the overhead on both the backend (in processing and db calls) and the frontend (in larger and more numerous javascript/css files for the browser to download). Bigger is not always better.

    I’m not saying that you should stop adding features. LOL. but that it is important to prioritize them and focus on your core which I perceive to center around user-contributed content.

    Some random thoughts follow:

    As an example, of an important, but not so sexy feature. The last time that I looked, there was no organization to the images on the server. They all just go to a single directory. With multiple galleries, this could become a nightmare to administrate.

    My users are asking me for a gallery. One of the suggestions that they had was the ability for users to tag the images a la de.icio.us. User ratings of images are another possibility.

    Another interesting feature might be to allow images to be uploaded via e-mail. This might seem strange at first, but I work a lot with the Second Life virtual world. One of the things that the Second Life client does is to allow the user to take a picture of what they are seeing and then send that as an e-mail to a friend.

    A whole website has developed as a repository for these photos. People snap a picture in the virtual world and the Second Life client automatically e-mails those pictures to the website. It makes for an amazingly transparent and non-intrusive way for people to share images from Second Life.

    Cooliris is on your list. I totally agree. It blows me away, too. Take a look at my wp-piclens-plus plugin. It might give PhotoSmash some Cooliris capabilities without any effort. I haven’t had time to test it yet with PhotoSmash. And it’s been a while since I updated it, but at the very least, it might give you some ideas.

    And I think integration with something like NextGen gallery is a great idea. Let the big-boy do some heavy lifting. ;-) Of course, that adds another dependency and could complicate support.

    Whew, I guess that’s it for now. I’m out of breath. :-)

  144. Shack Dougall Says:

    The more I think about it, the more exciting it becomes. There really is a huge hole in the WordPress gallery plugins related to user-submitted content.

    I guess something like Gallery 2 is an example of a php library that facilitates user content. And there are plugins that integrate with it. However, I haven’t tried them because I don’t have the time/brain power available to grok a whole new framework. WordPress is challenging as it is.

    Simple:Press forum is a great example of how powerful it is to have an application that is designed and implemented inside of WordPress. The seamlessness and ease of installation/maintenance is significant.

    If fully realized, PhotoSmash could fill an essential and empty gap in the whole Web 2.0/social networking aspect of WordPress.

    flickr and related sites would seem to be great places to get inspiration for new features.

  145. Shack Dougall Says:

    hmmm, you know. Come to think of it. Some sort of integration with Simple:Press forum would be really nice.

    Simple:Press allows users to upload images to include in forum posts, but it’s fairly primitive. There isn’t any way to administrate the uploads. They all get put in a single directory. There’s no notification when they are uploaded or interface for seeing what’s there.

    It’s probably beyond the scope of PhotoSmash, but I’ll just throw it out there as a possibility.

  146. Chedwa Says:

    a feature I would like to see would be the ability to upload multiple images at the same time… I havn’t given my rating as yet because I’m still getting the same issue of “Image processing failed.” displaying and no image being uploaded…. sorry to hastle but it would be great to see it work..

    Cheers
    Chedy

  147. Byron Bennett Says:

    Shack,

    Thanks for the insight. It is easy to get crazy with features. One of the things I like about PhotoSmash is that it can be really simple to get going, of course, I am a bit more familiar with it than most ;-) , so I may have a tainted view of its ease of use. I have tried NextGen 2 or 3 times and quickly gave up until I needed to figure out how to do something, then it began to make sense. It’s really a Cadillac, but I got lost pretty quick.

    With PhotoSmash, it does make me cringe just a little every time I add another option to the Admin pages, but the suggestions have been really good. I just hate seeing it become more complex.

    I think I need to get organized, and get a game plan for what goes in and what stays out.

    Perhaps concentrating on two areas: 1) making adding images to the galleries easy (your email image and Chedy’s multiple uploads are good examples) and, 2) making it easy to display images in various ways

    I also have “big” plans for my Supple Forms plugin, but I think I need to spend a little more time getting PhotoSmash where it needs to be.

    Your wp-piclens-plus plugin might just help me out with 2 of my goals…the PicLens readiness, and allowing users to subscribe to galleries through RSS. I haven’t even begun investigating either of those technologies…I’m not even sure MediaRSS is what is needed to let people subscribe through say their iGoogle homepage….I think it is, but don’t really have a clue. My thought would be to let people feed in the last X number of images from specific galleries or all galleries on a site. So, any thoughts or pointers you might have there would be greatly appreciated.

    As I’m writing this, it occurs to me that a cool thing might be to let Site owners opt in to share their gallery images with a central PhotoSmash. This would let the photosmash site get an RSS from participating sites and display them with a links back to the original. Kind of a photo aggregator, similar to the blog aggregators. Probably would have to moderate that, or there’s no telling what you’d get.

    See….it’s just too easy to chase rabbits.

    Anyway, thanks for helping me with my thinking. There’s a lot to be done…not the least of which includes getting Chedwa up and running to give it a try.

    Cheers,
    Byron

    P.S. I worked at a summer camp called Bonnie Doone outside of Charleston, SC when I was in college, eon’s ago.

  148. Byron Bennett Says:

    Hi Chedy,
    Thanks for your patience, I thought I had replied to your earlier comment, but obviously not.

    We’ve been down a lot of roads on not being able to upload photos. I’m hoping that there aren’t too many more to travel, but it appears there’s at least one more. Could you check to see if PhotoSmash was able to create 2 folders:

    wp-content/uploads/bwbps/
    and
    wp-content/uploads/bwbps/thumbs/

    and that they have chmod 777 rights? I’m wondering if SAFE MODE might be an issue here.

    If those folders are there then I’ll need to dig a little deeper. Let me know what you find. Hopefully we can get to the bottom of this and have you up and running soon! Feel free to email me as well. Byron at whypad.com should work.

    Cheers,
    Byron

  149. zac Says:

    Hi,

    Thanks for making this plugin! Really something that WP needs desperately. I was wading through using buddy press and MU but even that doesn’t offer any decent user photo galleries. Sadly I can not get this to work… totally. I have a lot of pages written for the site and when I try and add this plugin I get the ADD A PHOTO link and the space where the gallery box should be, but only a small bullet appears instead of the black box and the link does nothing.

    To further confuse me if I write a new post then it works great.. just not on all the pages that are already up. I have custom templates for those pages.. could that be fouling it up? Firebug reports back errors like:

    reference to undefined property “displayedGalleries”

    Permission denied to call method Location.toString

    bwbpsShowPhotoUpload is not defined

    Any idea what is going on here?

    Cheers,

    Zac

  150. Byron Bennett Says:

    Zac,

    It sounds like something is crashing the javascript. Given that it’s working for you on regular posts and not on the pages with the custom template, the templates might be a good place to look. If you look at your page source, you should see a section in the head that looks like:

    <script type=”text/javascript”>
    var tb_pathToImage = “http://pmopress.com/wp-includes/js/thickbox/loadingAnimation.gif”;
    var tb_closeImage = “http://pmopress.com/wp-includes/js/thickbox/tb-close.png”;
    var displayedGalleries = “”;

    I’m guessing that you don’t see that, which would lead me to believe that the custom template doesn’t make the call: get_header();

    That call triggers the hook where PhotoSmash injects that javascript into the head.

    You can go a couple ways here: 1) you could copy the missing header stuff from one of your pages that’s working, and put it into the custom template header; or 2) you could revamp the custom template header to call get_header();

    I’d really recommend #2 since that will make your pages compatible with more plugins. That’s a pretty major hook for a lot plugins, I imagine.

    If the template does call get_header, then I’ve blown a lot of wind for nothing.

    Let me know how it goes.

    Cheers!
    Byron

  151. zac Says:

    Wow.. you are fast! And correct :) I was just investigating more and sure enough the custom header was missing
    oops. sorry to bug you before looking into this more. Works great now. Thanks so much for the dynamite plugin !!!

  152. zac Says:

    it clipped my code but you know what I was saying… it wasnt calling the hook as you assumed

  153. Nandang Says:

    It’s Work!!!
    Thanx very much
    http://www.superanime.co.cc/?page_id=166

  154. Byron Bennett Says:

    zac
    Excellent! Glad it’s working. I wish they were all that easy to figure and fix :)

    Nandang
    Cool! Thanks for giving PhotoSmash a try. Looks good on your site! BTW, I like that button bar at the bottom of your site’s page. Haven’t seen that before.

    BB

  155. Brian Says:

    Anyway to remove the blue border appearing on images in IE?
    Normally I’d add “border=0″ to the image tag, not sure how I’d do this or if there’s an easy CSS trick that I’m not hip to.

    Anyone have suggestions?

  156. Byron Bennett Says:

    Hi Brian,

    Yes, you can do it through CSS. Try something like

    .bwbps_gallery img{
    border: 0;
    }

    I think using border: none; should work too

    I suggest you do this in your theme’s CSS file or in a separate CSS file that include since I’m updating this plugin so often right now…doing it in the PhotoSmash CSS might get overwritten.

    I need to create an option to let you do some styling that won’t get overwritten every time the plugin is changed.

    Let me know if that doesn’t work for you, and we’ll take another swing at it.

    Cheers,
    Byron

  157. zac Says:

    Hi.. me again. I began the painful process of checking my design in IE and found bugs galore and unfortunately your plugin was not immune. I suspect that again this may be something I did since no one else has brought this up. It works great in FF but in IE 7 it is missing the Upload Image link and, looking at the source, it is in fact missing the entire block of text starting with:

    all the way to

    So all that appears in the black gallery container. Anyone else encountered this?

    z

  158. zac Says:

    ooops keep forgetting about pasting code.. sorry.. everything after the first div up to the bwbps_gallery_div is missing in IE7.

  159. Byron Bennett Says:

    Hi zac,
    If you don’t mind, either post a link or email me a link to an example and I’ll see if I see anything (probably be tonight before I can look).

    Byron

  160. zac Says:

    Cool, thanks Byron. I would email you but I can not find it :P

    One link where I am testing this is:

    http://olympicpeninsulawaterfalltrail.com/hoko-falls/

  161. andy images Says:

    Byron:

    First of all, thanks for the plugin……….as soon as I get my site up and running at full speed I will hit the tip jar. Here are a few requests/suggestions that I think will add to your Photosmash

    auto-email subscriber on successful submit
    auto-email subscriber on successful approval of image
    auto-email subscriber on dissaprove
    option to allow upload for a single subscriber
    auto resize of uploads/minimum size for uploads

    At first the auto mails just a simple message..your photo approved or disapproved. Later the addition of custom text to the email.

    OK, thats it for now, thanks>>

    Andy

  162. andy images Says:

    Byron, one last thing, and excuse me if I am missing something obvious……is there a way to show a page that has a PS gallery and disable the upload box (or point me to the file and the php hook, maybe I is can read a custom field value and disable the upload possibility if a certain value is found? I was peeking under the hood and I see where you are declaring the function, but I am not sure where it is called or the test is made to see if there user has the right level permissions. I hope this makes sense to you.

    Thanks in advance.

  163. andy images Says:

    Just updating that last request, I can set the upload to admin so that will effectively block people adding images..

  164. Byron Bennett Says:

    Zac
    Hi, took a look at your site, and everything looks ok in FF (like you said). Unfortunately, I don’t have IE at home to check it out. But I had a thought.

    If you compare the FF page source with the IE page source and the IE is missing the Add Photos link and the form, then that sounds like there is something weird with the logged in user on IE. The reason being is that the server (at least in the case of PhotoSmash) doesn’t do anything differently for the different browsers. The only thing that would cause that page to display differently would be the Role assigned to the Logged In user.

    If you set that gallery up to let Anyone upload photos, you should see it in IE, even if IE is doing something weird with the logged in cookies or something. PhotoSmash users the standard WP user info.

    So, that would be something to try out. Set the gallery to let Anyone upload photos and try it out in IE. Then work backwards from there. Hopefully this gets you going again!

    Cheers,
    Byron

  165. Byron Bennett Says:

    Hi Andy,
    Thanks for giving PhotoSmash a try. Tips are tremendously appreciated! So, I definitely hope PS does what you’re looking for ;-)

    Excellent suggestions, also, and thankfully, they should be easy to implement…hopefully….for a change. I’ll put them on the list. The emailing to submitters is something that has been nagging at my brain too. On my demo site, folks upload images and apparently I’ve broken the notification or it’s getting sent to spam or something, so I don’t know right away to go and moderate them. Since it’s a demo site, people probably don’t come back to see if they got approved or not, but I want them to know.

    On my demo site, though, I have the galleries set up so Anyone can upload. The trouble with that is that I don’t get an email address (yeah, it seems obvious now that I could make them do one like in comments…but I’m short on time!!!), so I can’t email them anyway. That’s not a problem if you require that they are logged in.

    —-

    On your other comments, you did indeed find the way to control whether the Add Photos link shows up or not…it’s all done through whom you allow to upload.

    Cheers!
    Byron

  166. Tony Says:

    Downloaded and installed, but get “The maximum file size allowed is 400k. Please resize and try again.” Error, can you pls help

  167. Byron Bennett Says:

    Hi Tony,

    Here’s my best guess on what to try:

    Make sure that you have the following folders in your blog directory and that they have a chmod of 777:

    1) wp-content/uploads/ should have a chmod of something more than 000
    2) wp-content/uploads/bwbps/ should have a chmod of 777 (everything is checked)
    3) wp-content/uploads/bwbps/thumbs/ should have a chmod of 777 (everything is checked)

    If you don’t have those folders, something didn’t go right in the install of the plugin. I’m wondering if you have SAFE MODE turned on.

    If they’re not there, you can create them manually and making sure they have the right chmod.

    Let me know how it goes.

    Byron

  168. Tony Says:

    Byron,

    Thanks for your prompt reply , done all still not working, I can see other people had the same problem, just wondering if any of them manage to get it working and what was the solution.

    cheers
    Tony

  169. Andy Levin Says:

    Byron, thanks, the fix I was suggesting didn’t really apply…..I want one page for a gallery upload, another to view. Since each gallery can only have one setting, and I can’t see how I can create a two “galleries” from each set of pictures….so I need to find the code that checks the subscriber level needed to post and then either adds the “Add Photos” ability or not, then use PHP to disable the “Add Photos” ability on the page, but display the images….in other words fool PS into thinking the user doesn’t have upload privileges.

    (If user is not admin OR has post permissions) AND custom field blah blah blah blah

    It looks like this is it!

    if( $g['contrib_role'] == -1 || current_user_can(‘level_’.$g['contrib_role'])){

    Sorry for thinking aloud!

  170. zac Says:

    Thanks for the reply Byron. I wish it were that simple but that did not work. I tried out your demo on IE and it worked fine so it seems to be something I mucked up. I will let you know if I ever figure out what is wrong.

  171. Byron Bennett Says:

    Tony,
    We did get almost everyone working. I think there have been a few people who haven’t been able to get up and running. But in the beginning, there were some problems where the blog wasn’t in the root directory of the website. That seems to have been resolved, unless you’ve found another permutation of the problem.

    If you have a test blog or something that you’d like me to take a look at, I’d be happy to see if I can figure something out. You can email me at byron at whypad if you like.

    BB

  172. Byron Bennett Says:

    Zac,

    Bummer…here’s one other thing to try. Try a different theme on your blog and see if works with a different theme (should work with Default or Classic). If it does, then you can be a little more assured that it’s theme related.

    BB

  173. Byron Bennett Says:

    Andy,
    One of the things you mentioned in your last comment is on my list, though I don’t think it helps you. I want to build an Admin screen that lets you add existing images from other galleries to a gallery. I think that could work pretty well.

    But back to your question…I’m not quite seeing what you’re driving at. Are you wanting to give specific Subscribers the ability to upload images, while preventing others from doing so? I should be able to create a special role that you can assign to certain users that would give the Add Photos link regardless of what the Gallery setting is.

    Currently, you can only control who sees it by whole classes of users: subscribers, authors/contributor, admins, or anyone.

    When set to authors/contributors, subscribers don’t get the link.

    But if you’re just wanting Subscriber A to have the link and Subscriber B not to, I’ve got a little work to do.

    Let me know if I’m missing the boat.

    Cheers,
    Byron

  174. Brash Says:

    Brilliant, thanks for the great plugin, I havent been able to get it working on my site but I just did an auto upgrade and it now works! cheers.

    Something which would make it even more usefull to me and I am sure others would be more caption/comment boxes so that admin could set required fields which have to be filled in before picture upload, eg location of photo, describe how pic was taken, that sort of thing.

    thanks again

    Brash

  175. andy images Says:

    Byron, I use Wordpress as a CMS…..no posts, all pages. SoI set up one page for users to upload, and another page where they can look at the gallery.

    where “disdat” is a custom field for the page set to “true” to disable uploading:

    $blogname = str_replace(‘”‘,”",get_bloginfo(“blogname”));
    $key_name = get_post_custom_values($key = ‘disdat’); (CHECK CUSTOM FIELD)

    $ret = ”;
    $admin = current_user_can(‘level_10′);

    if ($key_name true) {
    GET UPLOAD FORM FOR PAGE

    http://www.100eyes.org

  176. zac Says:

    Yea who knows what it was. I was unnecessarily using a MU install with Buddypress and it was just a big mess… I did a clean install of normal WP and now it works great! Weird that it was only broken in IE, but I guess that is just IE doing its job.. making everything more complicated than it should be :P

  177. Byron Bennett Says:

    Brash
    Glad to hear it’s working! Good suggestion, and it fits well with some of the stuff I’m doing with Supple Forms. I’ve considered how to support Exif data, but that’s still a bit down the road. I’ll put it on the list.

    Andy
    Ah, I see….set up a page that you could do a shortcode to display the upload form only…then set up a page to display the gallery. Should be possible to set up shortcodes that will show the upload form only and one that will show allow you to suppress the upload form while showing a gallery.

    I’m currently working on roles and capabilities for galleries.

    zac
    I completely hear you…the next release of PhotoSmash squashes an IE bug with a nasty little hack.

    Well, hope it’s doing what you need now!

    Cheers,
    Byron

  178. andy images Says:

    Ok, Byron we are moving right along……..another other ideas– I see tremendous possibilities here!

    1) Add custom fields to the upload box, one field for © and a separate box for the caption and one for the website.

  179. Alice Says:

    I’m excited to use this plugin but am having the same problem as Mutiu. I get this error when I try to activate the plugin: ”
    Fatal error: Cannot redeclare class BWB_PhotoSmash in /home/.epic/alice/ipswichma375.org/wp-content/plugins/photosmash-galleries/bwb-photosmash.php on line 41″

    Any suggestions?

    Thanks,

    Alice

  180. Brash Says:

    Hi andy images, thats the sort of thing I am looking for, users would fill in the custom fields determined by admin, this would be the perfect thing for my site.

    Thanks again Byron for this plugin, I can see the requests are going to be endless! lol.

    Brash

  181. andy images Says:

    Alice, why are you nesting Wordpress in all those directories? T

  182. Byron Bennett Says:

    Alice
    What version of WordPress are you using? If you’re not on 2.7, you might try upgrading WP if that’s possible.

    Andy
    I think Alice is probably ok with the directories. Once you get to ipswichma375.org, every thing is standard after that. Before that is just the folder structure on her computer. Errors sometimes report the whole folder structure, not just the url relative to the domain name.

    Andy, Brash
    I hear you loud and clear on the custom fields. That is exactly what I’m doing with my Supple Forms plugin. It’s no small task, but I agree that it would add a lot of benefit PhotoSmash.

    What I’m thinking is that I’d let you construct the fields (like you would in Supple Forms, maybe I even have PhotoSmash rely on SF to build the fields), but instead of using the WordPress Custom Fields or the Supple Forms Custom Table, I would have a field in the PhotoSmash galleries table that would use PHP’s serialize and unserialize to store it. It would be best to have full integration with Supple Forms, but I’ve got some more work to do on SF to allow you to create multiple forms. You wouldn’t want your PhotoSmash fields showing up on the Write Post screen every time you made a post.

    But before I even go there, I’m working on integrating with SWFUpload. There’ve been several requests for mulitple uploads, and I think SWFUpload is the best answer there. But I’m really struggling to figure it out. It’s definitely not plug-n-play :( .

    Cheers,
    Byron

  183. marieken Says:

    Hi Byron,

    It looks like this gallery is exacly what i need. But i can’t get it to work. I must be doing something wrong.

    I see the link Add Photo, I get the upload box to upload the picture. But when I click Submit I go straight back to the page. So i don’t see a photo or a confirmation that the upload is succesfull.

    I thought the problem could be with the folders. So i created in the folder /uploads a folder /bwbps and /bwbps/thumbs. But no luck.

    Have you got an idea what could be the problem?

    Thanks!

    Marieken

    (I have WP 2.7.1.)

  184. Matt Says:

    I know this is taking this in a new direction, but I think it would be quite interesting.

    Would it be possible that instead of uploading the pictures into a gallery inserted into a post, each picture is uploaded into an individual post of it’s own?

    That way, user’s can comment on individual pictures, etc.

  185. Brandon Says:

    I’m also having the same problem as marieken. I have everything uploaded, and activated. When I go to add a gallery, it tells me that a new gallery was created, but it never appears in the dropdown box.

    If I turn on autoadd, it adds the form to the top of a post — when I click on add photo it lets me upload a photo, but then says my user (even though I have it set to everyone) is not allowed to upload an image.

    I’m also using WP 2.7.1

  186. Luciana Says:

    Hi Byron,

    I want to use your photosmash gallery to set up a photo contest for a magazine in Argentina. I keep getting the 400 k error, and I can´t figure out why, because, as far as I could understand by reading the comments (I´m no code guru) the problem had been fixed. Maybe I´ve missed something from the comments above… Here´s some data:

    - I´m using WP version 2.7.1
    - I´m logged in to WP as admin when I try to upload a 14 kb jpg file through the post
    - I´m NOT using lightbox
    - I´ve tried desactivating all other plugins and leaving only photosmash, but the 400kb error still pops up
    - I´ve followed all your chmod hints published on Jan28th in response to Aria (I didn´t have the folders and had to create them manually) – I have all of them 777
    - I´ve downloaded version 0.2.5 of photosmash
    - I can upload photos normally in WP Write Post screen
    - I do not see any files in bwbps or bwbps/thumbs folders after I get the 400kb error
    - the blog is in the root directory of the site
    - I have tried switching to Classic and Default WP Themes, but still got the 400kb error

    I´m sorry if its a way-too-basic question but… how do I check if I have “safe mode” on?

    Thank you, really, for all your effort in helping us all with this plugin.

    Cheers,

    Luciana

  187. Byron Bennett Says:

    Hi, guysn
    I’m without internet for a few days. Will get back to you next week.
    Cheers,
    Byron

  188. Alice Says:

    Hi there,

    Thanks for the advice. I updated WP to 2.7.1 and success! The last problem I’m having is an issue with creating thumbnails. I saved the settings for the gallery to create 100×100px thumbnails maintaining aspect ratio and the gallery just shows the actual size test image. Any thoughts anyone?

    Thanks for a great plugin Byron.

    Alice

  189. Zack Says:

    Hi guys, I’m using 2.7, photos are uploading but I get this above the post text:

    Warning: implode() [function.implode]: Bad arguments. in /home/traynor/public_html/wp-content/plugins/photosmash-galleries/bwb-photosmash.php on line 767

    Let me know your thoughts.
    Zack

  190. Zack Says:

    By the way. I can’t believe i found this plugin. My sister-in-law has been asking me to create a site so everyone that took pictures at these Halloween parties could upload them. What a great plugin. I have also been wanting a plugin that would allow authorized users to create content for another one of my blogs. Couldn’t find anything and realized that this plugin will allow that as well. Great work. Thanks again.

  191. Amy Says:

    I am having the same problem as Alice. Instead of loading as thumbnails, the photos load full size and layer on top of each other in the gallery. In some cases they even are enlarged. I have tried going back and editing thumbnails in the gallery using different settings to try to get a thumbnail to occur, but still get the same large images. I am using WP 2.7.1 and downloaded photosmash just a couple days ago so it is a recent version.

  192. jordi Says:

    Same as Zack. Any answer? Thanks

    Warning: implode() [function.implode]: Invalid arguments passed

  193. Bill Says:

    I would like to use your app to allow ANYONE to upload pictures to a post and to have the admin approve them. (Similar to the way that WP handles comments.) Is this a planned feature release for future? On my blog I don’t have subscribers but I do have content that uploaded pictures would be a great benefit.

  194. Byron Bennett Says:

    Hi Bill,
    Yes. Photosmash does that.

  195. frank Says:

    Is there a way to edit the CSS?

    thanks,
    frank

  196. Byron Bennett Says:

    Right now, you have to make edits to the actual CSS file…it gets overwritten every time you update, so save it off so you can put it back. I plan to put some options in for pointing to a CSS file in your template.

    BB

  197. Amy Says:

    Any thoughts on the thumbnail issue? I still can load any sort of picture, but it does not appear as a thumbnail in the gallery view, just as the full size image layered onto the ones before it. Here is the article where the gallery is located so you can see for yourself: http://aldersgateblog.texas-church.com/?p=716
    Attempting to adjust or edit thumbnail views once they are added in the gallery does not work either. We are using WP2.7.1 I have successful loaded images to your test galleries and had them show up as thumbnails, so I know it can be done.
    This plug-in is great for what we want to do, but this issue is a stoppage from us going out of test phase. Please help.

  198. Byron Bennett Says:

    Amy,
    I will take a look at this tonight and get back to you.
    BB

  199. Zack Says:

    Any idea about the:

    Warning: implode() [function.implode]: Invalid arguments passed

    Thanks

  200. frank Says:

    @ Byron – got it! Thanks!!

  201. Bill Says:

    I had the 400K error and went through each of my Plugins… the incompatability for me was Twitter Tools… As soon as I turned it off Photosmash would work. Turn it on and it doesn’t…

    Not sure if that will help to diagnose the problem or not… perhaps Alex – author of Twitter Tools would have some idea?

  202. Bill Says:

    One additional note… I was getting

    Cannot redeclare class Services_JSON

    In my error log each time I tried to upload and got the error… perhaps a conflict with both of you using the same class?

  203. Byron Bennett Says:

    Amy and Alice,

    If the particular gallery that you’re working with has the right thumbnail width and height settings, there might be something going on with the thumbnail creation. Make sure you’re looking at this on the Gallery Settings page, with that particular gallery selected. Once a gallery is created, it will not be affected by changing the PhotoSmash Defaults settings. You’ll have to change the settings on any existing galleries in the Gallery Settings page. A setting of 0 for thumbnail width or height will cause the thumbnails to be created at the same size as the original. Once you get those like you want them, you’ll need to delete any images that already exist and upload again to get the thumbnails created.

    If that still isn’t working for you, I’ll be happy to work with you to figure out what the problem is.

    Feel free to email me at byron @ whypad.com.

    Byron

  204. Byron Bennett Says:

    Everyone,
    Sorry I’ve been offline for the past few days…any replies to comments have been through my cell phone, which is not very easy, so they’ve been brief or not at all.

    I’ll try to get caught up.

    BB

  205. Byron Bennett Says:

    Bill,
    You were right about the Twitter Tools…maybe that was affecting other people as well…I can only hope!

    I’ve updated PhotoSmash to version 0.2.52 to fix this. Please let me know if you still have problems.

    BB

  206. Byron Bennett Says:

    Zack, Jordi,
    Got it! Thanks. It was related to paging…trying to implode an array that wasn’t really an array.

    Fixed in version 0.2.53.

    BB

    Everyone I haven’t replied to yet…I’ll try to finish catching up tomorrow. If you were having trouble with something, you might want to go ahead and upgrade to the latest as it may have fixed one of your issues.

    Cheers to all!
    Byron

  207. Dilneiss Says:

    Suggestion: Create a watermark in the uploaded images using a customfileimage

  208. Byron Bennett Says:

    Luciana, Brandon, Marieken,
    It’s been a few days since you posted your questions…are you still having problems? Please let me know, I’ll be happy to work with you if you like.

    Byron

  209. Byron Bennett Says:

    Dilneiss ,
    Good suggestion…I’ll add to the list.

    Cheers,
    Byron

  210. marieken Says:

    hi byron,

    yes, i still have the same situation as i described.
    so, if you have any suggestions , that would be great.

    thanks, marieken

  211. Byron Bennett Says:

    Marieken,
    Could you email me at byron at whypad. com? I will get in touch with you by email to see if there are some things we might try. (It’ll be tonight before I can delve into it, but I most certainly will).

    Cheers,
    Byron

  212. Zack Says:

    Thanks for your help. I will install the latest version to see if it fixes the implode problem.

  213. Byron Bennett Says:

    It looks like we got Marieken up and running. There appeared to have been a glitch with the FTP during the initial install. Installing the latest version of the plugin appears to have that all fixed now.

    One down…how many was that left???

    Zack, my fingers are crossed for you, man!

    BB

  214. mcmasterp Says:

    I am truly sorry to bother you but I could not find the answer(its probably here)

    I run WP2.7.1 with latest photosmash.

    when I test upload a photo it disappears, no errors, not in moderation, just gone.

    Maybe the folders didn’t get created? what is the folder structure of the current release?

  215. Byron Bennett Says:

    Hi mcmasterp,

    The folders are:

    1) wp-content/uploads/bwbps/ should have a chmod of 777 (everything is checked)
    2) wp-content/uploads/bwbps/thumbs/ should have a chmod of 777 (everything is checked)

    You say that the photo disappears…if you actually see the photo after it is uploaded, then it is likely that the folders are fine. This sounds like the problem that Briana is having. The upload is occuring ok, but it may not be saving to the database properly.

    Take a look at the folders and see if they are uploading ok. If so, then take a look at your database for tables like [wordpress database prefix] + bwbps_images. If there are no records in there, or the tables are missing, then we’ve got a DB problem.

    Either way, I’ll be happy to help get you up and running.

    Cheers,
    Byron

  216. mcmasterp Says:

    thanks for the quick reply.

    The folders were not created so I went ahead and did that.

    I test uploaded and same result.

    I checked the database, the tables are there but the images one as 0 rows even after upload. also the images folder is empty(and thumbs)

    Hope we can figure this out as this is the perfect plugin for my pet ferret related site.

  217. Byron Bennett Says:

    Hi mcmasterp,

    This sounds similar to what happened with marieken. In that case, it was an FTP problem.

    Check to make sure that all of the plugin files were uploaded properly at the install. You’ll want to make sure you’re on version 0.2.53.

    Shoot me an email at byron at whypad. com if you’re still stuck. We’ll dive in deeper.

    Cheers,
    Byron

  218. Amy Says:

    “To edit a photo’s caption, go to the PhotoSmash options page in wp-admin. Select the desired gallery from the drop down and click Edit. When the page comes back, the images for that gallery will show up at the bottom of the page. There will be text boxes beneath image allowing you to edit captions. Click save to save caption edits. Approve buttons will be present for images needing moderation. Delete will be available for all images.”
    OK- I got that. But our captions are all coming out dark blue on black background- pretty much invisible. How do we change? There is a CSS programmer among us, so if it is in the style sheets somewhere, if you could tell us where specifically, that would save a lot of hunting around.

    Also, I was able to solve my thumbnail problem, but it required me to delete all the photos out of the mis-functioning gallery, change the thumbnail settings and then reload the photos. Would not allow me to correct the thumbnail settings for a gallery while there were photos in the gallery.

  219. Byron Bennett Says:

    Hi Amy,

    That can be controlled through CSS. The CSS file is currently in the plugin folder…file is called bwbps.css.

    I’m not sure whether you’re having the issue in the Admin section or while viewing a gallery in a post. If it’s while viewing a gallery, you can look for rules like:

    .bwbps_gallery_div a {
    color:#FFFFFF;
    }

    Hopefully your CSS person can get that fixed up. It will sort of depend on what your theme is doing, but there are plenty of handles in there that should let you do pretty much what you like to the color and styling. If you do an Inspect with Firebug, you can see the different CSS selectors that are available.

    In the future, I plan to let you specify a CSS file that you can store with your theme…that way if you change the CSS it won’t be overwritten each time you upgrade the plugin. For now, though, make sure you’ve got a copy of the bwbps.css file if you make changes to it, because it will be overwritten if you upgrade the plugin. You’ll just need to put your altered file back in there.

    Glad to hear the thumbnail issue was resolved. I do hear you loud and clear on not being able to redo thumbnails once they are uploaded. I’m putting that on the list.

    Let me know if that doesn’t get you where you need to be.
    BB

  220. paul Says:

    Hi Byron,

    first of thanks for the plugin, it is exactly what I was looking for!

    Most of it works great, but there is a problem that I am having.

    I have created a specific page for visitors to upload pictures, since I want everybody to be able to upload pictures, I have set Minimum role to upload photos: to Anybody and included “[photosmash id=1]” in the page.

    This works beautifully.

    Only for some reason all my other pages are included in the admin settings as well, under “Select Gallery to edit:”. Even though I have NOT included any code in the other pages, all pages have show the “add photo” and gallery.

    I have no idea why that happens and I thought that maybe by deleting the galleries I do not want, the problem might go away. Only I am not able to delete any gallery…

    Whenever I try, a popup window comes up “do you want to delete gallery ID 2..” When I click OK, I am being redirected to a new page which says
    “Are you sure you want to do this?

    Please try again.”

    Without any button to click or anything, so I am unable to delete any category.

    Do you have any idea how to combat those 2 problems?

    Thanks,
    Paul

  221. Byron Bennett Says:

    Hi Paul,

    Problem #1) Make sure that in the PhotoSmash Settings admin page that you have Auto-add gallery to posts: set to “No auto add”.

    Problem #2) Yes…I see that problem too. something must be broken. I’ll have to put in a fix.

    Byron

  222. paul Says:

    Ah, thanks Byron, stupid of me that I didn’t see the solution for nr 1…

    So for me everything is solved, even though nr 2 still exists.

    Thanks for the fast answer! :D

  223. Andre Says:

    Hi Byron.

    It seems like you have a great plugin here. I am trying to install it without success.
    I am running the latest Wordpress version (2.7.1) and your plugin version 0.2.53
    After I install it, I click on PhotoSmash Settings and I receive the following error message:
    “Fatal error: Cannot instantiate non-existent class: bwbps_admin in /homepages/45/d280599868/htdocs/wp-content/plugins/photosmash-galleries/bwb-photosmash.php on line 133″

    I deactivated the plugin and activated it again without success.

    Any suggestions? I could not find an answer amongst the previous questions posted here.

    Thanks,

    Andre

  224. Andre Says:

    By the way, I downloaded version 0.1.99 and it installed ok and I was able to access the settings page, but I really want to use the latest version.

    Thanks,

    Andre

  225. Byron Bennett Says:

    Hi Andre,
    I sounds like some of the plugin files were not copied during the installation. Try FTPing the photosmash-galleries folder into your plugins folder again. And activate again.

    Let me know if that doesn’t help.

    Cheers,
    Byron

  226. Byron Bennett Says:

    Paul,

    Not a problem…I’m seeing the same thing on your 2nd issue…will have to fix.

    Cheers,
    Byron

  227. Andre Says:

    Wow! Your answer came fast.

    That did the trick! Thank you, Byron.
    Now, let me play with the plugin.

    Thanks,

    Andre

  228. Byron Bennett Says:

    Andre,
    Glad that worked…I always cross my fingers with this plugin…had a rocky start ;-)

    BB

  229. Andre Says:

    Hi Byron.

    I don’t want to be spoon fed here, but I can’t quite figure out why I am not able to see the gallery I created.
    I am following the step-by-step described on your plugin page on WP.org, but after I create the gallery, when I hit the button (under the Gallery Settings link) I got nothing. No error message, nothing…

    Not sure what I am doing wrong. By the way, I am using Firefox 3.0.8

    Thanks again,

    Andre

  230. Byron Bennett Says:

    Hi Andre,

    You’ve got 2 ways you can see galleries. You can do the Auto-add (first option in the PhotoSmash Settings page). This will create a new gallery for all posts and pages and display them. If you want to skip a page, you can do a shortcode in that page or post.

    The second way, and the way it sounds like you are trying, is to create a gallery in the Gallery Settings page. Then you need to put a shortcode in the post where you want it to show. [photosmash id=1] (or whatever id # you’re working on).

    Then you have to view or Preview the Post. There you can add images.

    Hope that helps…feel free to email me at byron @whypad .com

    Cheers,
    Byron

  231. Andre Says:

    Byron,

    I emailed you about this issue, but I thought I should add my problem here as well in case someone else is facing the same matter.

    After following your instructions, I was able to install the plugin. The problem now is that I do not see any galleries I create.
    This is what I am doing (again, I don’t want to be taken by the hand, but there is something definitely wrong with my installation):

    - Under the PhotoSmash link on the admin page I click “Settings.” I have the following:
    Auto-Add gallery to posts: Add to top
    New Image email alert schedule: every 1hr
    Default minimum role to upload photos: Subscribers
    Default Moderation status: Moderate
    Text for Add Photo link: Add Photo
    Upload from caption: Select an image to upload:

    Then I hit the “Updated Defaults” button

    - Under the Gallery Settings page I have the following:
    Gallery name: Photos
    Minimum role to upload photos: Subscribers
    Default Moderation Status: Moderate
    Upload form caption: Add Photo

    Now, here is the problem. When I click “Save Gallery” nothing happens. The system shows the blank screen again and the new gallery “Photos” is nowhere to be seen.

    I am terribly sorry for such long email, but I do need help!
    Thank you,

    Andre

  232. Byron Bennett Says:

    Hi Andre,

    If you view your site, do you see your Galleries in your Posts?

    Galleries aren’t shown in the Admin pages, only in the actual posts themselves. Once you’ve added images to your posts, you can work with them in the Photo Manager screen.

    Take a look at your posts and let me know if you’re still not seeing anything.

    Cheers,
    Byron

  233. Andre Says:

    Byron.

    Happy Monday!

    Nope. I don’t see any options when I write either a post or a page.
    Would it be an image, a link, a drop down menu?? Where would it appear?

    I feel like a pain in the neck…I apologize!

  234. Byron Bennett Says:

    Hey Andre,

    Yes…Monday, it is ;-)

    You would actually need to go out into your site and view a Post, or you could see the gallery when you Preview a Post. There should be an Add Photos link right above the gallery.

    So, hopefully this show work:

    1) Make sure the setting for Auto-add is set to either: Add to top, or Add to bottom.

    2) Write a Post and save it (you won’t see anything for the gallery here). You could click the Preview button while you’re writing the post and that will launch the post in another window. You should see the gallery there.

    3) After you’ve published your Post, go out and view it like a visitor would in your site. You should see the gallery.

    When auto-add is turned on, it creates a new gallery for a post the first time it is Previewed or Viewed. You can add images in the Preview if you like.

    Hope that helps.

    Cheers!
    Byron

  235. Andre Says:

    Hey Byron.

    I’ve done that over the weekend. What happens is that when I go to the page I created, I see the option to upload the photo. When I click on the link, it opens the window to upload the photo. I browse my computer, find a photo (I am trying with small ones – like, less than 200px in size) and upload it. But it only shows a black screen!

    Whenever you have a chance, go to http://www.GoingtoBrazil.com/?page_id=9 to see what I am talking about.

    Is this possibly because of the theme I am using?? I believe that’s the only explanation I can come up with.

    Again, thanks a bunch!

    Andre

  236. Byron Bennett Says:

    Andre,

    Cool…yes I see the gallery there. There might be something else going on.

    One thing to check -
    Using your FTP client, check to make sure the following 2 folders exist:

    1) wp-content/uploads/bwbps/ should have a chmod of 777 (everything is checked)
    2) wp-content/uploads/bwbps/thumbs/ should have a chmod of 777 (everything is checked)

    If that is all set or if you need help with that, shoot me an email and we’ll take a deeper dive.

    I should be able to help out tonight if needed.

    Cheers,
    Byron

  237. Andre Says:

    Byron.

    I will need to work on this this evening as well.
    Anyway, thank you very much for taking the time to help me.

  238. Andre Says:

    Byron.

    I checked my server info. I do not see the wp-content/uploads/bwbps/ content (there isn’t a file and/or folder called bwbps inside my uploads folder.

    Can I manually upload this? That’s where my problem is, I think.

  239. Byron Bennett Says:

    Hey Andre,

    Yes…you will not actually upload the folders, but rather create them.

    You should be able to add the folders using your FTP client. Be sure to set their permissions to 777. Using Internet Explorer as your FTP client, you can do that by right-clicking on the folder. I use Transmit on a Mac and have to do Get Info. Sometime you can’t type in the 777 and instead you have to put check marks in a series of check boxes. If that’s the case make sure all of them are checked.

    Let me know.

    Byron

  240. Andre Says:

    Oy vey! I am becoming a pest! I know that!
    Anyway, I created the two folders and changed the permissions to 777.
    Nothing!

    So I deactivated the plugin and activated it again…still nothing.

    The black screen shows on my site, but I am not able to upload anything.

    The bwbps & and the thumbs folders should be under uploads, correct?

  241. Esteban Says:

    hello
    I am looking for something like this excelent plugin ;) but also that users can comment on each photo…
    Is there any way to implement it or you’re planning add this feature for the next version?

    thanks !
    Esteban

  242. Byron Bennett Says:

    Hi Andre,

    I think we’ve got you fixed. The initial install didn’t go through properly due to the FTP problem. That meant that folders and tables didn’t get created. You created the folders manually, and that fixed that. But the tables should have regenerated upon reactivating the plugin, which did not happen. I’m stumped as to why that didn’t get called. I forced a call to the initialize function and everything appears to be ok now.

    Let me if you’re still not 100%.

    Cheers,
    Byron

  243. Andre Says:

    Hi Byron.

    Your help to get this corrected was absolutely amazing! Thanks.

    I am going to test a little now to make sure everything is working properly, but as far as I can tell, everything is!

    Take care and keep on improving this great plugin. I am sure a lot of people have been waiting for something like this.

    ps. have you thought about creating a plugin that allows the visitors to create their own pages on someone else’s blog? I want my blog to be more of a community kind of place, but I don’t want to install WPmu (too complicated for me). But I would love my visitors to be able to create their own little blogs inside mine…

    Anyway, just an idea.
    Take care, Byron.

  244. Byron Bennett Says:

    Hi Esteban,

    Sorry, PhotoSmash does not currently have commenting for images, but there have been several requests for this feature. I will definitely put it on the list, along with Star ratings, and allowing images to be uploaded in the comments section.

    Unfortunately, the list is getting quite long, so I’m not sure when these will happen. There’s just not enough time!!! :)

    Cheers,
    Byron

  245. Byron Bennett Says:

    Andre,
    You’re welcome!

    I am currently working on some things that might enable that sort of behavior down the road. But it will probably be a while before they happen ;-)

    BB

  246. zac Says:

    Hi Bryon,

    Again.. awesome work! To nitpick for a minute I have my template to validate except 1 error which seems to be generated from this plugin.

    It seems W3C doesnt recogize the aria-required attribute. Any thoughts on this or is it just me?

  247. zac Says:

    oh sorry.. ignore that.. totally unrelated to your plugin :-p PhotoSmash Rocks !!

  248. Byron Bennett Says:

    Hey Zac,

    I spent a little time a while back trying to get the plugin to Valid XHTML, but you may have found another gremlin.

    I don’t recognize that attribute either: aria-required

    Can you take a look in FireBug using Inspect and see where that attribute is showing up?

    I’ll be glad to fix it if it’s in PhotoSmash, but I don’t remember using that one.

    Cheers,
    Byron

  249. Byron Bennett Says:

    Ah..dang. A minute too late ;-)

  250. zac Says:

    Heh heh.. you are sooo fast ! Apparently it is a new accessibility attribute that doesnt validate and no one really pays attention to it yet. It is popping up in some WP templates though.. anyways totally unrelated to your plugin but here is a little article on it if you are curious.

    http://jonathanstegall.com/2009/03/06/form-attribute-aria-required/

  251. paul Says:

    Hi again Byron,

    sorry to say that I am having some problems…

    it seems that I am bothered by the 400k error, don’t know why, as from what I have read that problem was solved months ago.

    Anyway, my problem is that on many occasions I get the 400k error, while the actual file size is much smaller than that.

    After inspecting a bit more, it seems that all files ARE uploaded to ../wp-content/uploads/bwbps, only NOT to the thumbnails folder and NOT being displayed on the website.

    Do you have any ideas about this?

    Thanks,
    Paul

  252. Byron Bennett Says:

    Paul,

    This may indeed be a memory problem, particularly if you are able to upload the same files at some times and not at others.

    I assume that the files you’re working with are jpeg, gif, or png. Those should all work fine.

    A couple of things to check would be to see what the memory limit you have allocated on your web server.

    1) Is there a file size at which all of the uploads fail?
    2) Do the files that fail work sometimes and not at others?
    3) Do the failures occur when simultaneous uploads are occuring?

    If any of these are in play, that could indicate that there actually is a memory problem at play. I may be able to do some things to alleviate that, but I’ll have to investigate.

    One of the things I’m currently working on is a Debug page in PS Admin section that will give you some info to help trouble shoot problems.

    Let me know what you find. We’ll keep looking into it

    Byron

  253. paul Says:

    Hi Byron,

    thanks for the fast reply.

    1) No, happens with all kinds of different file sizes
    2) Yes, the same image sometimes works and sometimes doesn’t
    3) Never did simultaneous uploads, so I guess not

    Here is my php info http://www.mcthailand.com/phpinfo.php if that is of any help.

    I have also adjusted my .htaccess file with these settings

    php_value post_max_size 5M
    php_value upload_max_filesize 5M
    php_value memory_limit 300M
    php_value max_execution_time 300
    php_value max_input_time 300

    Only strange thing is that I cannot seem to find those settings in my php info file.
    But even my images of 1+Mb are uploaded to the folder, only not displayed on the website and no thumbnail creations, so I guess these settings don’t matter much for this problem.

    Any help is greatly appreciated and please let me know if you want more info or testing done by me.

  254. Byron Bennett Says:

    Hey Paul,

    It definitely sounds like a memory issue. What happens with the thumbnail creation is that PHP converts the image into some uncompressed format or something that makes it like 20 times as large. So you could wind up with 10M of memory usage during the thumbnail creation on top of the 10M that WordPress takes up. That is usually what causes these problems.

    I don’t remember how to check what your memory limitation is, but it’s in the ini file for PHP. I use shared hosts, so I don’t have any control over that on my sites. See if you can figure out what the memory limit is in your case.

    I need to see if there are more memory efficient methods of doing thumbnails than the one I’m using.

    Sorry I don’t have a solution at this time.

    BB

  255. paul Says:

    ?Hi Byron,

    different question this time, am still fooling around with the previous! :D

    My site is in Thai language and when people upload pictures they want to type Thai characters.

    When they type Thai characters while uploading the image, the Thai characters are visible, but once the image is uploaded it is changed into gibberish.

    Strange thing is that if I go into the admin area and change the name into Thai characters the correct Thai name is displayed on the site.

    The website uses utf-8 encoding and Thai characters look like this: ??????????????????????????

    Do you have any idea what changes to make so the Thai characters are displayed on the website when using the upload function?

    Thanks again!

  256. Terry Says:

    I am using floatbox plus. Will this plugin work with PhotoSmash. If so, how do I configure in admin panel?

    Cheers,
    Thanks

  257. Byron Bennett Says:

    Paul,
    This is a problem I’m having with my other plugin as well. They seem to be saving incorrectly to the database when it comes to various character sets. I’m not sure what the answer is, but hopefully someone can give me a clue.

    Still looking for the a solution…
    Byron

  258. Byron Bennett Says:

    Terry,
    I’m not sure that PhotoSmash will currently do what Floatbox needs. Floatbox appears to use a “rev” attribute instead of the rel.

    This may cause problems. If you give it a try and find that it does, let me know and I can add that to the list of future modifications.

    I downloaded and tried out Floatbox, and it appears to be working fine with PhotoSmash. It also let me back to one of my favorite videos: Where the heck is Matt?

    Cheers,
    Byron

  259. Terry Says:

    Thanks so much Byron, I assume I should enter “rev” in configuration. Cool video, enjoyed that.

    Cheers,
    Terry

  260. Byron Bennett Says:

    Hey, Terry,
    Photosmash isn’t set up for the rev attribute. And I don’t think you need to use it in this case. In my test, I might have had the rel attribute set to lightbox[album]. But I’m not sure. If it’s not working for you right out of the box, you can set the rel in Gallery settings for any galleries that are already created, and in PhotoSmash Settings to set th default for any new galleries.

    BB

  261. Lili Says:

    Hi,

    I would like the images to link to webpages on a per-upload basis. How is that possible? So far it can only link to the image file itself or the uploader’s website as set in their wordpress.com profile. Ideally, I’d drop the link I want the image to lead to in the caption field when uploading, and the image would then link to that.

    Also, there’s only a crop or original size version, it doesn’t seem to be able to resize pictures while keeping the ratio. For example, I’d use a picture using an url, and I would like it to always be resized so the width is 125px and the height is autmotically calculated to respect the original picture’s ratio.

    All of this would make this plugin perfect, I think. ^_^

  262. Lili Says:

    Oh ok, I think I worked the ratio part out. Would still love feedback on the linking part! :)

  263. william Says:

    Is there a way to sort photos in a gallery reverse chronologically?

    Like, as it stands now, when you add a photo it will end up in the last slot on the last page. I’d like newly uploaded images to go in slot 1 of page 1.

    I think I’ve narrowed sorting down to these 2 lines in my bwb-photosmash.php:

    $lastImg = $pagenum * $g['img_perpage'];
    $startImg = $lastImg – $g['img_perpage'] + 1;

    But everything I’ve tried to reverse the image loading won’t properly populate the gallery. Any help? Any plans to add a ’sort by date/caption/user’ feature to admin section?

    Thanks in advance. I love the plugin.

  264. Terry Says:

    This is different… I cannot get the upload photo overlay (ajax uploader) to show when I click “add photo” and “add photo” does not even show in IE 7

    get this in address bar: mysite/#TB_inline?height=375&width=530&inlineId=bwbps-formcont

    cheers,
    Terry

  265. Adam Says:

    Hey Byron!

    Just wanted to say how helpful this plugin is! I’ve been using Wordpress for a long time now on a lot of different sites and have come across a lot of great plugins. Photosmash has added the most value out of any plugin I’ve ever used. Thank you!

    As far as updates go… (and I see you’re still actively working on the code)… how long before we might see the auto-resize feature? Being able to have a user upload a photo of any file size and have it convert to a standard size under 400k would be the one upgrade that would make Photosmash perfect in my books. Some of my users are technologically useless and can’t figure out how to resize their own images. Failing that, a way to bump up the minimum file size might be helpful.

    Thanks again, Byron! This is a great plugin for Wordpress users!

    Cheers,

    Adam

  266. Byron Bennett Says:

    Hi Adam,

    Thanks for the props! I am indeed continuing to work on the plugin and hope to have some updates in the next couple of weeks. The trouble with the resize is that the real limitation is set by your PHP configuration. I need to change the 400k message to something that reflects the reality of your config, which may be more or less. 400k is near the max of my Web Host, so that’s why I picked it.

    I do plan to make some resize options in the future, but unfortunately, this will still be affected by your Host’s imposed memory limitations.

    The real obstacle is the memory limitation, not the upload limitation. When PHP goes to resize an image, it uses a large multiple of the upload size.

    I’ll keep you posted as I go along.

    BB

  267. Byron Bennett Says:

    Hi Lili,

    I will be adding that linking feature down the road….hopefully not too far. Lot’s of feature requests, as you can see.

    Thanks for giving PS a try!

    Byron

  268. Javier Sánchez Says:

    Hi,
    First of all, thanks for this plugin. It’s a really good one
    I’m using this plugin in 2 blogs and in one it works fine but in the other I have a problema since the thumbails are created but the whole picture is not saved in the server in bwbps directory, so when I click the thumbail I get an error saying the image does not exist

    It suppose it has something to do with the server config, since in the other hoster it works fine.

    Any idea about what could be happening?

    Thanks for your help
    Regards
    Javier

  269. Adam Says:

    Hey Byron,

    Ok… so if I have upload_max_filesize set to 8M in my php config, is there a workaround to bump the file size Photosmash allows? Is 400k coded into your upload utility or are you saying the actual limit is determined by my config?

  270. Byron Bennett Says:

    Hi Adam,

    The 400k is just an arbitrary number I put in there to try to steer users to a file size that should work with most configurations. If your configuration allows more, then it should still upload ok.

    The 8M for upload_max_filesize is good, but the real kicker is the PHP Memory Limit. On my host, mine is set to 40M. Wordpress itself takes about 10M of memory, but when I upload a 500K image, it sometimes will not create the thumbnails because the memory requirement for thumbing a 500K image eats up the other 30M.

    If you can change your PHP config, set the PHP Memory Limit to 100M and that should let you upload and create thumbs for fairly large images.

    PhotoSmash doesn’t have anything in it that will prevent large images. At this point, it’s all in the PHP Memory Limit.

    BB

  271. Byron Bennett Says:

    Hi Javier,

    Glad to hear it’s working on one of your blogs fine. In your blog that’s not working properly, check the folder:

    wp-content/uploads/bwbps/

    Use your FTP client and check the permissions. If permissions are not set to 777, set them like that and try an upload.

    Let me know if that doesn’t get you going. It’s the only thing that I can think of right now.

    Cheers,
    Byron

  272. Javier Sánchez Says:

    Hi Byron,
    Thanks for your quick response. I had already set the permissions to 777 but I had the same problem, so it’s not a permissions problem

    Regards
    Javier

  273. Byron Bennett Says:

    Important announcement!! Folder/File permission 777 is a security risk. I have been erroneously recommending that you set the upload folders to that setting. There may be cases where your server requires use of 777, but that should be the exception instead of the rule.

    Please use 755 instead. If you cannot upload with the folders set to 755, try 777, but set it back to 755.

    The latest version of PhotoSmash contains a Plugin Info page in the Admin section that assists in determining your upload folder permissions. When you upgrade, check the Plugin Info page to see how your folders are set. If you have one of the 3 checked folders set to 777, PhotoSmash will provide a button that will let you automatically reset those permissions back to 755. You should test uploading images after setting back to 755.

    There is also a setting that will cause PhotoSmash to switch the folder permissions to 777 during upload and back to 755 after upload. This should reduce the risk, but should only be used if absolutely necessary.

    Please let me know if anyone finds any problems with that code.

    Thanks,
    Byron

  274. Brian Says:

    Is there a way to keep captions from being truncated?

  275. David Says:

    Hey there!

    I got a problem when using both WP Shopping Cart and this plugin the
    upload function stops working. I’m pretty sure it’s because both these plugins
    uses Thickbox and there’s some kind of confliction when using both…

    Anyone got any tips how to solve this?

    Sorry for my bad english :)

  276. Kim @ What's That Smell? Says:

    Great plugin! I too would love to see the user be able to type in their preferred link for the caption so anonymous users can upload rather than it pulling from the contributor website.

  277. Kim @ What's That Smell? Says:

    Question…any chance a $$ Contribution to the plugin would convince you to make some changes to the caption/link options in the next few days? If so, you can email me and we can chat about it. Thanks!!!!!

  278. Lili Says:

    Good thinking!

  279. Byron Bennett Says:

    Hi Kim,

    Contributions are always great motivators :) . I do have one thing of the front burner right now that I’ve got to finish. Let me shoot you an email for details.

    Cheers!
    Byron

  280. Fernando Says:

    Hello

    I love your plugin
    and would like a help!
    could the user to upload and post the picture is not entirely unique, in the gallery?

    as this example
    http://www.worth1000.com/contest.asp?contest_id=23099&display=photoshop

    or this example that the real
    http://desafiospsbrasil.wordpress.com/2009/04/17/33%C2%BA-desafio-iniciante/

    and other questions, you can remove the black background?

  281. Fernando Says:

    Hello sorry I am Brazilian and use the translator!
    thank you for resolving the black, that really helped a lot!

    but I would like to know if you can, you send the photo and elaficar in separate post, every picture she is posted as a gallery only!
    and not all the images together you know?

    This is possible as the example that I sent?

    thank you and your plugin that will make a difference in my blog

    tanks e sorry

    Brasil ehehe ( ronaldinho ) kkkk

  282. Anthony Acosta Says:

    Hi,

    Great plugin.

    Was wondering it you had a sidebar tag / code that I could use to display a random image from the galleries on my sidebar. If not, is there one in the planning stages for future versions of this plugin?

    Thanks
    Anthony

  283. Jacques Says:

    I haven’t seen anyone else post this yet… so I thought I’d throw it out there.

    Installation was fine but larger photos – a big issue for me – wouldn’t upload no matter what I did to the upload filesize.

    Finally tracked it down to the GD lib function: imagecreatefromjpeg which is a memory pig. Forgot that I’d dealt with it once before. It just dies and then photosmash tells you the file size was too large.

    Added this to the top of the class.upload.php file.

    ini_set(‘memory_limit’, ‘64M’);

    Now it’s fine. My memory limit was 32M before and clearly wasn’t enough. Hope it saves someone some time and frustration.

    Might be worth looking at using imagemagic instead for file sizing – just a thought… I may look into it to avoid this memory jump hack.

  284. Byron Bennett Says:

    Jacques!

    That is excellent help. I’m using an upload class from http://www.verot.net/php_class_upload.htm that handles all of that manipulation. I’ve been thinking of trying phpThumb or one of the other classes to see if they get any better memory usage.

    Please let me know if you do anything. I’d be very interested in squeezing better performance + memory usage out of this thing!

    Thanks,
    Byron

  285. Janelle Says:

    Hi Byron,

    Thanks for this great plugin. It’s the most intuitive & the best I’d tried so far.

    Btw, here’s a problem I’m facing. I could hardly squeeze in 3 thumbnail photos in a row. The thumbnail is 150×130.

    Could you tell me where in the css stylesheet should I change in order to reduce the spacing between each adjacent thumbnail? I think this way I should be able to put 3 in a row.

    Thanks!

  286. Byron Bennett Says:

    Hi Janelle,

    Glad you like PhotoSmash! I’m really glad to hear you find it intuitive. I hope that’s the case for most people.

    Unfortunately, the image size/spacing isn’t really controlled by the CSS file. In order to do the images per row functionality, I did some calculations in the code and applied that to the image div’s.

    Could I take a look at your gallery so I can get a better idea of what you’re dealing with? If it’s not public, then maybe a screen shot might help. Seeing it live would be most useful since I could use FireBug to Inspect the elements and see where the dimensions are coming from.

    Cheers!
    Byron

  287. Jacques Says:

    I made another change for my client…

    …added a resize routine at the beginning of ajax_upload.php so the “full size” file isn’t necessarily as large as what was uploaded depending on a user selection in the upload form. (noticed this was on your to-do list).

    The size option values are set in a settings file dropped into the photosmash_gallleries directory (didn’t want to mess with the DB today) and included on ajax_upload.php and bwbps_photosmash.php.

    If you want them send me an email.

    All the best.

    By the way – great plugin! Ridiculously user friendly.

  288. Janelle Says:

    Hi Byron,

    Thanks!

    I would love to have the files you mentioned. Do I simply copy the files to overwrite the existing ones?

    Regards,

    Janelle

  289. Cita Says:

    Hi Byron,

    I’ve just used your plug-in to build my website, and it’s simply the answer to my gallery need. However, I’ve started to experience the same problem with some people.

    You see, I built my main website with it and there’s no problem. But now I begin building another website (the sub-domain of the first one) and the image started to refuse to be uploaded even though it’s under 400kb. My little solution for now is changing the image formats to jpeg, since gif and png are the ones with problems. I don’t know how changing it to jpeg solved it, it just work. I did upload a lot of png to the main website, but none of gif. Now jpeg would upload no matter how big the size.

    Could it be related to the memory in the php everyone is talking about? I’m really blind on how to modify it. Can someone help me? :(

    Thank you!

  290. Byron Bennett Says:

    Hi Cita,

    That is strange. I’m not sure why jpeg would work and not gif/png, unless maybe there is something to do with an older version of PHP or something that’s not supporting gif.

    Could you take a look a the Plugin Info page and just copy and past that whole mess into an email and send to me? byron @ whypad.com

    I’ll take a look and see if I see anything that might ring a bell.

    Cheers,
    Byron

  291. Byron Bennett Says:

    Hi Janelle,

    I suppose you’re referring to the files Jacques mentioned. I’ll try to incorporate his functionality in the near future.

    Cheers,
    Byron

  292. Janelle Says:

    Hi Byron,

    I was using Lightbox2. It works well with your gallery plugin. But, there’s one problem. It doesn’t display the caption set in PhotoSmash Galleries. Apparently, Lightbox2 grabs the img title of the photo to display it.

    Do you is there anyway to allow for img title in PhotoSmash Galleries?

  293. Byron Bennett Says:

    Hi Janelle,

    I’m running Lightbox 2.8.2 on my PMOPress.com test site, and it is displaying the image caption in the lower left. This is working with the Image Caption Style setting set to either Caption or Caption [by] Contributor.

    I have my “Re” setting in PS Admin set to: lightbox[album]

    Also, there are 2 different versions of Lightbox 2…be sure you’re using the one by Rupert…here’s the link:

    http://wordpress.org/extend/plugins/lightbox-2/

    Hopefully one of those things will help us get to the root of the problem.

    BB

  294. Rodrigo Bueno Says:

    Hi!

    I’m having the 400k problem.

    The folders /wp-content/uploads/bwbps/thumbs and wp-content/uploads/bwbps exists, was seted to 755 (I can’t set it to 777) and the images that i tried to upload are there, in the folders. The upload is succesfull. But I get the 400k error and not shows the images in gallery. I see that the tables wp_bwbps_images, wp_bwbps_imageratings and wp_bwbps_galleries are empty.

    I read that other peoples haved the same problemed and appear that they solved it. But I have the last version. Any idea to solve it?

    System config (from the plugin info page):

    * Operating System : Linux
    * Server : Apache/2.2.10
    * Memory usage : 3.86 MByte
    * MYSQL Version : 5.1.34
    * SQL Mode : Not set
    * PHP Version : 5.2.9
    * PHP Safe Mode : Off
    * PHP Allow URL fopen : On
    * PHP Memory Limit : 128M
    * PHP Max Upload Size : 100M
    * PHP Max Post Size : 64M
    * PHP Max Script Execute Time : 240s
    * PHP Exif support : Yes ( V1.4 )
    * PHP IPTC support : Yes
    * PHP XML support : Yes

    Site test page: http://blogcelular.info/imagens/amor

    Thanks!

  295. Byron Bennett Says:

    Hi Rodrigo,

    I was able to upload images to your site. My images were only 58k, and they appeared to have thumbs created properly. Hopefully, you will see these images awaiting moderation in your Admin/Photo Manager page.

    Here is the link to the last thumb.

    http://blogcelular.info/wp-content/uploads/bwbps/thumbs/1240802008.png

    Try loading a smaller image and see if that works for you. I noted that your PHP Memory Limit is set to 128M, which is very good. So I would have thought that would allow you to upload and thumbnail fairly large images. But try something smaller and see if that works.

    Cheers!
    Byron

  296. Byron Bennett Says:

    I wanted to announce that a new feature has been added to PhotoSmash in version 0.2.6. You can now include a URL field in the upload form. The URL can be used as the caption link for images. This how’s and where’s are documented in the Usage section above.

    Cheers!
    Byron

  297. Rodrigo Bueno Says:

    Hi Byron. Thanks for atention.

    Yes, the image are there, in folders. But in admin painel, I see the message: “No images in gallery yet…go to post page to load images.”

    If I try to upload a image, I receive the success message and the image is showed at the ajax window and at the page. But if I refresh the page, no image is showed and it is not in moderate page.

    Can you help me, please? Thanks.

  298. Byron Bennett Says:

    Hi Rodrigo,

    That is strange. It sounds like the database entry is not being saved. I’ll need to look at the ajax_upload.php code and see if there is anything that might be at issue.

    I’ll post back after I get a chance to check out.

    Byron

  299. Hoek Says:

    Hey. I’m new to all this.

    I moved my site to another hosting company, and suddenly, i’m getting that 400k error.
    Both servers are on Linux, WP 2.7.1 and Photosmash 0.2.6.

    My tables are being created, i can upload images to wordpress normally, and it doesn’t matter what i’m setting the permissions to; the 400k error is still there, *however* the image *gets* uploaded, and after pressing F5, it appears there.

    Another question; Byron, what purpose does the Thumbnails tab in “PhotoSmash Default Settings” have? If I set it to “Maintain aspect, 125×125″ (as everything else is nonsense and renders the purpose of a image gallery senseless IMHO) and create a new gallery, i have to set the same for each gallery. That’s just stupid and not what i understand as “*default* settings”.

  300. Hoek Says:

    Ok; i just compared the two servers’ info and here we go:

    Server with Photosmash working correctly:

    PHP safe mode: off
    Allow URL fopen(): off

    Server with Photosmash giving me the 400k error (but still uploading):

    PHP safe mode: on
    Allow URL fopen(): on

    So it seems it’s PHP safe mode related…?

  301. Byron Bennett Says:

    Hi Hoek,

    Safe Mode definitely creates a problem. You’ll need to manually create the folders on that server. Safe Mode prevents scripts from creating folders….fun! They actually removed safe mode in PHP 6, I think. To verify whether those folders exist, you can go to the Plugin Info page in PhotoSmash Admin. The section right at the top lists folders that need to exist, and tells you whether they exist or not and the Permissions, which should be set to 755. So, if they don’t exist, and with safe mode on, they shouldn’t, you’ll need to create via your FTP client.

    As to your other question, the Thumbnails section in PhotoSmash Default Settings are the default for any new Galleries that will be created in the future. So, any existing galleries, you’ll need to fix up in Gallery Settings. If you haven’t uploaded anything to them, then you might just want to Delete them all and let the Default take over.

    The reason that I’ve included the thumbnail settings at both the PhotoSmash Default and Gallery Setting level is to give people flexibility and control at the gallery level, as well as setting a default for the setting you want new galleries to have. Just in case someone out there needs/wants to set the thumbnails for one gallery at 100 X 100 and for another gallery at 300 X 300, or whatever.

    The other thing that I realize is that I need to give people the ability to update multiple galleries with a particular setting simultaneously. That will hopefully satisfy most people who don’t want granular control at the gallery level…I’ll put it on the list ;-)

    Let me know if creating the folders doesn’t get you going. I’m hoping that Safe Mode is the only problem, but we shall see.

    Cheers,
    Byron

  302. Hoek Says:

    Byron, thanks for the immediate reply!

    As i investigated further, my web hosting company uses suPHP to even out the disadvantages of having Safe Mode on.

    That explains why my folders indeed have been created and why i have no trouble uploading images – if now I only could get rid of that 400k error message…

    So with safe mode on and suPHP, everything seems to be working correctly, but we’re getting a false alarm that the upload failed. Which is annoying, since you can’t upload many photos in a row with that error message – and it confuses new users.

    Concerning the thumbnail settings: What you explain makes completely sense; that’s, in fact, exactly what I imagined it to do. However, changing my default gallery settings (Thumbnail size) has absolutely no effect on then newly created galleries!
    That’s annoying to no end =(

    Strangely, this behavior is on both servers, so it’s seemingly not related to safe mode/suPHP.

    Do you have an idea?

  303. Byron Bennett Says:

    Hi Hoek,

    I had another read of your post, and it would appear that your upload folders do exist. That makes me think that there might be something in my code that is barking when Safe Mode is on. I’ll need to look through the ajax_upload.php file and see if I can spot anything.

    Unfortunately, I can’t test with Safe Mode on, because I don’t have access to a server with it on. Hopefully I’ll be able to spot something. Please let me know if you come up with anything!
    Thanks,

    BB

  304. Byron Bennett Says:

    Hoek,

    If you’re still here and have GMail chat, send me a chat request at bwbnet @ gmail.com

    I’d like to have you try a couple of things to see if we can get this fixed. If not, I’ll email you a couple of things to try.

    Hopefully we can get to the bottom of this.

    And on the Thumbnail settings….yes, I know what you mean. The fix I proposed in my previous post should give us the best of both worlds. There’d need to be a mass update page or something, but I’ve got to get some time to write that.

    Byron

  305. Mich Joanisse Says:

    Hi There, I am trying to activate plug-in, which is giving me the following fatal error when trying to activate in plug-ins directory:

    Plugin could not be activated because it triggered a fatal error.

    Fatal error: Cannot redeclare class BWB_PhotoSmash in /var/www/vhosts/beta.lowdownonline.com/httpdocs/wp-content/plugins/photosmash-galleries/bwb-photosmash.php on line 52

    Any help would be greatly appreciated.
    Thanks

  306. Byron Bennett Says:

    Hi Mich,

    In the past, that error has been due to the WordPress version being run. Are you running WP 2.7?

    Alice, above, had same problem, updated to WP 2.7 and it worked fine after that.

    Hope that helps,
    Byron

  307. Mich Joanisse Says:

    Hi Byron, I do have version 2.7 currently running. I will install 2.7.1 and see if this solves the problem. Thank you for the quick response, greatly appreciated! Will recommend plug-in to other developers if succesfully installed, much potential.

  308. Byron Bennett Says:

    Hi Mich,

    No problem. If you’re already on 2.7, and upgrading doesn’t help, you might try reloading (delete the old folders and re-FTP) the plugin. Another problem I’ve seen in the past was that FTP didn’t get all the files out there properly.

    There are some new features coming in 0.3.0 specifically for developers. Custom fields, custom forms, and custom layouts. Hopefully, it’ll make somebody’s life easier and not just mine harder ;-)

    Cheers,
    Byron

  309. Mich Joanisse Says:

    Byron, it appears the upgrade did solve my first problem. Sorry to bother you with all this. The help is definetely well appreciated. My thumbnail default properties do not seem to be working. The image seems to display in gallery as actual size.

    It also bleeds out of surrounding box/div.

    Any suggestions?

  310. Byron Bennett Says:

    Mich & Everyone,
    New version is released fixing 2 bugs.

    I have fixed the Defaults issue. In my tests, I always used Auto-Add galleries, and this used the defaults properly. When manually creating new galleries on the Gallery Settings page, the defaults weren’t being populated. That should be fixed now.

    The easiest way (if you haven’t loaded a lot of stuff) to get everything back to where you want it, is to delete existing galleries and recreate them. If you’re adding them to all posts, then the Auto-Add feature is nice.

    Sorry for problems, folks.

    Hope that fixes things.

    The new version, 0.2.61, also includes a new version of Colin Verot’s Upload class. It’s Release Candidate 2 of version 2.7, but he has confirmed that it’s ready for use. My testing also supports this. This update is important because it fixes a 400k issue for people who had SAFE MODE on.

    The new release should be on WordPress momentarily.

    Cheers,
    Byron

  311. David Says:

    When we use this Gallary, will the images be mapped my Google images?

    Because plugin like Nextgen does not help SEO in anyway.

    Will this allow us to list the images for Google images robot to take.

    Please help

  312. Ultimate Guide To Using WordPress For A Portfolio ?? Says:

    [...] PhotoSmash Galleries This plug-in allows you to manage multiple galleries and even more than one gallery per post. [...]

  313. Ultimate Guide To Using WordPress For A Portfolio Says:

    [...] PhotoSmash Galleries This plug-in allows you to manage multiple galleries and even more than one gallery per post. [...]

  314. Byron Bennett Says:

    New version out, 0.2.62, fixes the over zealous url validator and adds a couple of features related to caption & thumbnail links.

    Please let me know if you find any flubs.

    Cheers,
    Byron

  315. Kim @ What's That Smell? Says:

    Byron, you (and this plugin) are the greatest!

  316. Byron Bennett Says:

    Hi Kim, Thanks for the kind, if slightly exaggerated, words ;-)

    Cheers!
    Byron

  317. Eugene Duvenage Says:

    Hi,

    I have WordPress 2.7.1 installed on a windows hosting account and installed PhotoSmash 2.6.2.

    When I use the admin page of photosmash [http://www.myurl.com/wp-admin/admin.php?page=bwb-photosmash.php] and change any of the defaults under Gallery Defaults and click the “Update Defaults” button I get a blank page and the settings are not changed if I click back. I am redirected to [http://www.myurl.com/wp-admin/admin.php] after clicking “Update Defaults”. All the tables and directories seem to have been created during the init process so I am at a loss.

    Any ideas would be appreciated.

  318. Mich Joanisse Says:

    Hi Byron, i downloaded upgrade. Only problem/inquiry i am experiencing at this point are as following:

    1) the file limit size of 400kb does not seem to be taking action.
    2) Is there a way to specify a maximum file size dimension in future versions? :P
    (Would be a nice feature, keeps a consistency in images.)

    Other then that, everything is running as intneded, and has turned out to be a great experience, the website currently in development will be launching live within the next few days.

    When it is, i will forward you link to website to check out how i have implented your plug-in for multiple uses, one of those including a photo contest.

    Cheers!

  319. Byron Bennett Says:

    Eugene,

    I did a fresh install of the plugin on a blog that had not had it installed before on it was working ok. But that was a Linux blog. I was hoping that you were have some temporary connectivity issue or something…did you get it straightened out?

    Let me know if not, we’ll start thinking of things to try.

    Cheers,
    Byron

  320. Byron Bennett Says:

    Mich,

    I’ll look forward to seeing what you’re doing with…please send the link when it’s read ;-)

    On your inquiry, I do intend to provide dimension settings for the main image in the near future.

    Cheers,
    Byron

  321. zac Says:

    Hey there Byron,

    I just thought of a feature that would be really cool.. if there was a template tag or widget that could show the latest photos that were added to any of the galleries anywhere on the site, maybe from an RSS feed. I have seen a plug-in, called photo sidebar widget, that does this if supplied an RSS feed so maybe it could be mashed with that? I dont really have any lucid ideas on how to make that happen… just a thought, thanks again for all of the awesome work on this!

    Cheers

    Zac

  322. Byron Bennett Says:

    Hey Zac,

    Thanks for the suggestion! We’re thinking along the same lines. Once I get this rather massive upgrade out the door, I’m going to turn to adding display features…rss, integration with fancy viewers, etc.

    I do want to let people mashup their galleries by tags, latest added, contributor, etc. I also really want to add photo-level comments and ratings. But I also want to make it even more social than that by having a central site that will mash up all PhotoSmashers that Opt In. Sort of an automatic Flickr for WordPress PhotoSmashians. I’ve been noodling on how to make that work, but haven’t got the model worked out in my head yet. I do have a domain name, though…which I’ll withhold…just to be mean ;-)

    Clearly I have more ambition for this thing than I have time or possibly even ability…but, there’s nothing wrong with dreaming big and aiming high.

    Cheers!
    Byron

  323. Eric T Says:

    Hi all, I’m having the same problem as some of you
    Cannot redeclare class bwb_photosmash in /var/www/vhosts/louloumagazine.com/subdomains/blogues/httpdocs/stylespy/wp-content/plugins/photosmash-galleries/bwb-photosmash.php on line 52
    and I use Wordpress 2.7.1

    Can some one help me?

    thanks

  324. Byron Bennett Says:

    Hi Eric,

    There have been a number of folks who’ve had that issue, and it has always been resolved by upgrading WordPress. Since you’re already on WP 2.7.1, that doesn’t really seem like an option…so…maybe you can try reloading PhotoSmash through FTP, and the reactivating it.

    Let me know how that goes. I don’t really have an idea beyond that right now…hopefully that will fix you up.

    Byron

  325. Eric T Says:

    Hi Byron, thanks to answer so fast
    It’s still not working. I’m using 0.2.62 version. is that the last one?

    thanks

  326. Byron Bennett Says:

    Hi Eric,
    Yes, 0.2.62 is the latest version.

    Do you have any other plugins running? If so, you might try disabling them to see if one of them is causing a conflict.

    Please let me know if you come up with any ideas. This is a stumper.

    Byron

  327. rootherb Says:

    Any future plans to allow this to work with WPMU/Buddypress?

  328. Byron Bennett Says:

    Hi rootherb,

    I didn’t have MU plans, but having seen BuddyPress, I’m thinking it will have to be on the list. In my mind, PhotoSmash is sort of a natural for BuddyPress since they are both community oriented. I don’t know if BuddyPress intends to add PhotoSmash-like functionality, but that would be cool.

    I have no idea as to the differences between MU and regular WP, so I don’t know what kinds of things would need to be changed. Could be major. I don’t know.
    Cheers,
    Byron

  329. Paul Says:

    FWIW I am using your plugin with WPMU 2.7 and it works like a charm!

    Don’t know about Buddypress, but at least no change to your plugin is necessary if people want to use it with WPMU 2.7 alone.

  330. Byron Bennett Says:

    Paul,

    That’s great news! Thanks for letting us know.

    Byron

  331. Paul Says:

    My pleasure, but I just realized something…

    At the moment I do not allow people to have their own blog yet, so I am not sure if it will work on other people’s blogs, but I do know it works for the main one in WPMU 2.7.

  332. SKunder Says:

    I am using this plugin on CornsnakeMorphGallery.com and am having issues where once a Gallery is created, its settings can not be changed even though I manually go in and change. For example, Amelanistic is missing the “by Contributor” and Lavender the thumbnail sizes are wrong. I am running this on 2.7.1. I have tried deleting the original Amelanistic gallery and creating a new one with the correct settings, but it still comes up wrong on the website.

  333. SKunder Says:

    I have also been told by my users that the upload is confusing because their is nothing that directs on how to continue uploading to a Gallery. As a user, you just have to sort of guess or close the box and hit “Add Photo” again.

  334. Byron Bennett Says:

    Hi SKunder,

    Hopefully we can get things working properly for you. Please forgive me if I cover things that you’re already doing, this asynchronous communication mode doesn’t allow me to figure out where you are in the process very quickly, so I’ll cover the basics as well…

    1) Gallery settings are not being changed, even when being changed manually:

    Note 1: Changing the thumbnail size in Gallery Settings does not affect previously created thumbnails. I’m planning on giving you some options for doing this down the road. Sorry it’s not there now.

    Note 2: Making a settings change in the PhotoSmash Settings page doesn’t (in most cases) affect the behavior of existing Galleries. Right now, Gallery settings must be set for each gallery in the Gallery Settings page. I also plan to give you some options for updating existing galleries en masse so you don’t have to go into each gallery and change their settings.

    The troubleshooting part:
    – When you’re changing the gallery settings, they have to be changed in the Gallery Settings page (not PhotoSmash Settings). Changing the PhotoSmash Settings page only changes the defaults for new galleries that will be created in the future.

    – So, you’ll need to select the galleries individually, click Edit, then make your changes and click the Save Gallery button.

    – Assuming you’ve done all that, when you make the changes, are they being saved (i.e. when the page comes back, are your changes set properly)? If not, then there is something weird going on with the database save.

    If the Gallery Settings are being saved properly, and the changes are not being reflected when the Gallery is displayed in your posts, then 2 things might be at issue: 1) the page might be cached; 2) the post might be referencing the wrong gallery.

    To check to make sure the post is referencing the right gallery, you can go to Photo Manager page and call up the gallery that you made changes for in Gallery Settings and make sure that the images are the same ones that you’re displaying on the post. If not, then the gallery being displayed isn’t the same one that you were updating the settings for.

    2) Users are confused by the upload form:
    - There is good news here. Version 0.3.0 of PhotoSmash will let you build the upload form any way you like, or you can just use the Standard Form.

    - If you have a suggestion on how I might improve the standard form, I’d love to hear it.

    Hope that helps,
    Byron

  335. SKunder Says:

    Thanks for the response!

    I am going into the individual galleries and changing the settings, not changing the default. I had thought that it might be a caching issue, but contributors are seeing it too which nixes that idea. I also confirmed the settings are correct in each of the galleries and the correct ones are in the post.

    My only suggestion to the standard form would be to clear the information in the input fields (and maybe have it also say “continue uploading” or some other such wording) when the upload is completed so that users know they can continue uploading if they wish. I think it’s perfectly fine as is other then that.

    On another note, the big requests from my contributors are the following:

    - Multiple Photo Uploader
    - Email to Contributors upon approval/denial of images
    - Auto-Resize Uploader
    - Contributor option to delete own images

    If these are not being released with 0.3 (expected release date?), would a financial contribution possibly get it moving along?

  336. SKunder Says:

    Something I just noticed…

    For some reason PhotoSmash is automatically creating galleries for pages that I put a specific gallery on. For example, I created a “Featured” gallery and put it on the the home page…PhotoSmash automatically created a new gallery titling it “Welcome to the Cornsnake Morph Gallery.”

    The other thing I noticed…Even if a gallery is set to only allow Authors/Contributors, Subscribers still have access to the “Add Photo” button.

  337. SKunder Says:

    Ok, I’ve pinpointed the automatic creation…Every time I click “Add Photo,” no matter what is specified on the page, its creating a new gallery and placing the images there? It’s happening on every page as both an Admin and a Subscriber.

  338. Byron Bennett Says:

    Hi Skunder,

    It sounds like you’re hot on the trail of what’s going on. And it sound like something might be awry in the code, but I haven’t seen that behavior before. With all the work that I’ve been doing on 0.3.0, it is quite possible that something got slipped into 0.2.6x that wasn’t meant to be.

    Could you send me an e mail at byron @ whypad.com? Hopefully we can get to the bottom of this.

    Cheers,
    Byron

  339. 19 WordPress plugin för skapa bildgallerier! | ZtrixQ.se Says:

    [...] PhotoSmash Galleries - PhotoSmash Galleries gör det väldigt enkelt att skapa ett galleri med bilder i era inlägg eller sidor, även era besökare har möjlighet att ladda upp bilder. Ladda upp era bilder med Ajax och Lightbox and Shadowbox integrerar med PhotoSmash Galleries. [...]

  340. william Says:

    Once again, love the plugin. But I’m noticing a lot of odd behavior in it of late.

    First, the AJAX upload box gives random errors, even sometimes when the file size does not exceed 400K. Images uploaded when it says “Success” don’t fit in the AJAX box. Sometimes it randomly gives write permission errors. Other times, if the file exceeds the allowable size, it will upload a thumbnail but not the actual image. It shouldn’t allow either if the original file is too large.

    Also, when you click “Done” after uploading images, it should automatically refresh the current gallery page, otherwise it displays stuff all broken.

    Just my thoughts on ways to improve it / problems I’ve found. Mostly all of it centers around the AJAX upload box.

  341. Flocki Says:

    Great plugin.
    Can’t save the settings in the Backend. Any ideas?

  342. Eric T Says:

    Hi Byron, it ok now, it was a hosting provider security problem.

    I have an other question for you, is it possible , when someone click on the thumbnail to be redirect to an article instead of only the picture? Like have an unique post for each picture.

    thanks to let me know

  343. Byron Bennett Says:

    Hi William,

    As to files being too large, the plugin is currently using the upload class found on Verot.net. This class uses PHP’s GD image manipulation library. I am told that the ImageMagick may use less memory and would allow for larger images to be uploaded. So that might be an option in the future.

    As to uploaded files not fitting in the AJAX box, version 0.3.0 will give you some options around that. The one option that it doesn’t give, that I should add is to give you the ability to set the dimensions of that box.

    The creation of the Thumbnail, but not the actual image is puzzling. Is that consistently repeatable?

    Likewise, the random permissions is puzzling as well. If that is repeatable, I can take a look and see what is going on. Are you using the Role Manager plugin? Also, is this happening with certain galleries?

    As to refreshing after clicking Done…when it’s leaving stuff broken, are you referring to Lightbox not working on new images, new image captions only being set to caption only, all of the above, or other? It’s a good suggestion, because I’m not sure how to fix those two problems.

    Cheers,
    Byron

  344. Byron Bennett Says:

    Hi Flocki,
    Glad you like the plugin!

    Have you checked the plugin info page to make sure the tables exist? I’m not sure why they wouldn’t be saving otherwise.

    If you have a test blog or something that I could take a look at, I’d be happy to.

    Cheers,
    Byron

  345. Byron Bennett Says:

    Eric,

    Glad to hear that your problem went away! Those are the best.

    Yes, you can set your Caption style so that there is no caption (just a thumb), and it will link to the user submitted URL. You have to make the settings like the image below in the PhotoSmash Settings page. If you have any existing Galleries, you’ll need to update them to have the Caption Style set properly too. I’ll add a screenshot to this comment in a second.

    On the Gallery Defaults tab:

    Include URL

    And on the Viewing tab:

    Caption settings

  346. Eric T Says:

    Thanks Byron, I’m really impress who fast you answer back to our question. Most of all compagnies don’t give this service. Bravo

    What I’m looking for is more that every picture upload by a user generated a post.

    This is why, I love this plugin and i think it’s exactly what i’m looking but I will have to add extra fields (i.e. name, city, …) and I want the result to be able to be view want people click on the thumbnail and redirect to a unique post for every photo.

    is that something possible?

    thanks

    eric

  347. Flocki Says:

    Thanks for your quick answer. Sorry for the inconvenience, all my fault. I got a bit confused with photosmash settings and gallery settings.

  348. Byron Bennett Says:

    Flocki,
    You’re welcome. Glad it’s working right now!

  349. Byron Bennett Says:

    Eric,

    Many of the changes in version 0.3.0 of PhotoSmash were commissioned by developers trying to do something very similar to what you describe. They also wanted to create new WordPress Posts on the upload of new images.

    So, it has the ability to add custom fields, custom forms and layouts, and to specify an alternative include file for the Ajax_upload.

    In short, it is designed to be very developer friendly. If you choose to stick with PhotoSmash, I wouldn’t spend too much time working on these things with the current version since a lot of what you need is baked into the next.

    Cheers,
    Byron

  350. Eric T Says:

    thanks Byron, I will look forward for 0.3.0 version

    merci

  351. SKunder Says:

    I’m not sure if this has already been suggested, but…
    As you know, I have over 100 individual galleries on the website I’m using this plug-in on. I have a problem determining if the photos are put into the correct gallery because the information in the PhotoSmash backend doesn’t list what gallery it was in. Some food for thought for future releases. :)

  352. Byron Bennett Says:

    Hi SKunder,
    Wow, that’s a lot of galleries. Very cool!

    I was having the same problem, so it’s already in there in version 0.3.0. So now in Photo Manager, it shows the gallery ID with a link to the gallery in Photo Manager…might be redundant if you’re viewing the gallery, but in All Images or Moderate, it’s helpful.

    Also added the ability to edit the URL.

    Cheers,
    Byron

  353. SKunder Says:

    Awesome. Like I said, wasn’t sure if it was already mentioned. :)
    And yeah, I’ve got it running 108 galleries and counting!

  354. Mich Joanisse Says:

    Hi Byron,
    I have one more inquiry before we get launched on this local newspaper website!

    Before i begin, thanks in advance for the time spent on helping/aiding the problems of plugin users, it is greatly appreciated!

    I noticed the file size restriction does not appear effective, is there something i have done wrong on my end? How can i get around this problem, how can i find a solution?

    Thank you in advance,
    Mich Joanisse

  355. Byron Bennett Says:

    Mich,

    That’s great to hear! You’re very welcome.

    You are correct, the file restriction is not effective. At this time, it acts as a guide to steer people towards uploading smaller images, primarily because most people’s web hosts don’t allow very much memory to deal with the image manipulations, and 400-500k images is where most folks tend to run out of memory.

    In the next version of PhotoSmash, you will be able to set the dimensions that the main image will be resized (and/or cropped) to. It still does not place any restrictions on the file size of the uploads, but it will generate much smaller files from the image upload based on the settings you choose.

    Are you concerned with the actual file upload size or the size of the images after they are uploaded?

    Cheers,
    Byron

  356. SKunder Says:

    These last few posts brought up a question for me…

    The auto resizer…Will it resize the photos to what you specify and if the photo still does not fit into those specifications, crop them too? For example, my size requirement is 600×450. An 800×600 photo would resize properly, but an 800×500 wouldn’t and would need both resized and cropped.

  357. Byron Bennett Says:

    Hi SKunder,

    You can choose to resize only or resize and crop if needed. The thing it won’t do is Upsize images that aren’t big enough.

    Byron

  358. SKunder Says:

    Awesome! That’s what I was hoping for! :)

  359. Chris C Says:

    Hi Byron,

    First of all I would like to say thank you for creating such a great plugin.

    I was wondering if you could give me some advice as to how to create a required checkbox on the upload form to certify that users have permission to use the images they are uploading? Any suggestions/help would be greatly appreciated.

    Cheers!

  360. Byron Bennett Says:

    Hi Chris,

    You’re welcome!

    With version 0.3.0 of PhotoSmash, you will have the ability to add Custom fields to the upload form. With that functionality, you could create a checkbox for the user to check and put images into moderation where you could confirm whether they checked it or not.

    I don’t have Required fields built into this functionality, but using this with the custom forms, you could do that yourself with some fancy Javascripting.

    I don’t have a solid go-live date for 0.3.0 yet. I am working with a couple of developers who are using this for clients, and I want to make sure that nothing major would need to change before making it public.

    It is such a massive addition of functionality, I’ve considered forking PhotoSmash into Light and Developer versions. I’m afraid that people may venture into the Advanced functionality and become frustrated with it. But I don’t want to support two versions of the plugin either.

    Ah well…sorry for dangling something that is out in the future as an answer to your problem, but it really exists and really works. It’s just not ready to go public.

    Cheers,
    Byron

  361. Byron Bennett Says:

    Chris,

    Another thought I’ve been having is to add an optional standard field (like the alternate URL field) that would be License. It would be a drop down with a number of standard selections, and I could include a couple that would say that the uploader is not the owner of the image or something similar.

    If you’re interested in something like that, let me know what options you think would make sense in addtion to all of the Creative Commons licenses (I’d add all of them as selections).

    Byron

  362. Chris C Says:

    Wow. That was a fast response! Thanks Byron.

    I understand your concern with supporting two versions of the plugin; might be more trouble than it is worth.

    I think allowing the admin to add a custom field is a great idea and would probably be the best option to provide the greatest flexibility.

    Another question for you… Is there any way to display the most recently uploaded image first?I’m not that great with PHP/javascript/AJAX yet so I am not really sure how to do this.

    Also, will the ratings feature be included in 0.3.0?
    I know you probably get 100s of suggestions, but I thought of two things that might be cool to include…

    - In terms of the ratings feature…. This (http://www.masugadesign.com/the-lab/scripts/unobtrusive-ajax-star-rating-bar/) star rating script would be cool to include in there.

    - What are your thoughts on including a box on the dashboard with all the images in moderation? I think it would make it much easier for the user to admin their galleries. Just a thought!

    Thanks again Byron. I really think what you are doing is awesome and greatly appreciate it.

    Chris

  363. Chris C Says:

    …Another good looking star rating script..

    http://www.yvoschaap.com/index.php/weblog/css_star_rater_ajax_version/

  364. ron Says:

    I read through all of your notes but didn’t have time to read through all the user comments. Hopefully I’m not repeating… but this is exactly a type of plugin i’ve been looking for with the exception of letting users upload more than just images.

    Any thoughts of allowing users to upload MP3 files or other file types you could allow or disallow through the settings of the plugin?

  365. Byron Bennett Says:

    Chris
    Great suggestion about the dashboard approval box. I’ll put it on the list.

    Currently, Photosmash can’t do sorting. It’s on the list, though.

    And the star rating…also going on the list.

    Clearly, it’s a very long list…and you haven’t even seen the doors that version 0.3.0 will open up ;-)

  366. Byron Bennett Says:

    Ron
    Yes, there have been requests for the ability to upload videos, et al. I’m going to have to think about how to do that.

    BB

  367. ron Says:

    Awesome! Thanks for the quick reply Byron.

    Looks like you have quite the beast ahead of you. Can’t wait to see upgrades.

  368. SKunder Says:

    Is 0.3 still on track to be released this week?

  369. George Serradinho Says:

    Hi,

    I just wanted to say that the plugin looks great. I have not tried it yet, but might give it a go.

  370. Byron Bennett Says:

    SKunder,

    I think I’m going to put 0.3 in the Development version on WordPress, so some folks will have the chance to try it and comment before we go live with it.

    I’ve been holding it back because it keeps expanding and getting much needed refinements. But, it’s pretty solid at this point.

    Interested in giving it a trial run?

    Byron

  371. Byron Bennett Says:

    Hi George,

    Thanks! I hope you find it useful! If you give it a try, you’re getting in at a major sea change for the plugin. It’s only 5 months old, but it feels like 5 years to me ;-)

    Byron

  372. SKunder Says:

    I’d be interested in tossing it up on a non-active site (which will run this plug-in once 0.3 is released) and providing a review. 0.2 has performed wonderfully for my users and I believe most of their requests will be met with 0.3.

  373. Ross Says:

    Love this plugin – one small issue.

    The tabs style in the bwbps.css stylesheet is clashing with the Thesis stylesheet and lightly corrupting Thesis’ tab navigation. Small workaround is to set the photsmash style to the same as the Thesis style, although I’d prefer they didn’t clash.

  374. Byron Bennett Says:

    SKunder, excellent. I will try to get that dev version out there tomorrow night. I’m quite glad to hear that this thing is performing well in the wild. Documentation is…of course…yet to come for 0.3. It’s always the absolute last thing.

    Anyway, your feedback will be much appreciated!

    Cheers,
    Byron

  375. Byron Bennett Says:

    Hi Ross,
    You sure don’t get tired of hearing when somebody actually likes PhotoSmash! Thanks!

    As to the issue…thanks for the heads up. I will make some adjustments to that CSS to prevent the clashing.

    Cheers,
    Byron

  376. Byron Bennett Says:

    Hi, All!

    PhotoSmash 0.3.00 is in public beta. Seriously…this is a Beta of beta software ;-)

    To get it, download the Development version at the WordPress PhotoSmash Other Versions download page. It will be version 0.2.99 if you install it…so you can auto update when the official release happens.

    Beta Testers (on non-mission critical sites) are welcomed! Please post your feedback or email to me at byron @ whypad . com

    Cheers!
    Byron

  377. Flo Says:

    hi, is there a way to get certain images displayed in the sidebar (like the newest from gallery x), or a page where only 1 (the newest) image of all galleries are displayed.

    I kinda need some features like nextGen gallery has. I.E. a random image displayed.

    is this already possible? I couldn’t find any info about it.

  378. eyal Says:

    Great News, ill try it now !!!

  379. eyal Says:

    hi, will this version support rating and comments on photos?

  380. Byron Bennett Says:

    Flo,

    Version 0.3.00 does support shortcodes to grab a single image. The other things you mentioned are not in there yet, but they are on the list.

    The ultimate goal would be to have a sidebar widget / sidebar shortcode or template tags that you could display single images, a gallery, or a smart gallery (think Smart Playlist a la iTunes) that could include random images, or images based on tags, etc…it will ultimately be very cool (if it works ;-) ) but there’s a lot of coding to do to get to that point.

    It’s hard to believe this plugin is only 4 months old (I might have said 5 months somewhere else). It went up Jan 19 of this year. It’s come a long ways, but has much further to go.

    Cheers,
    Byron

  381. Byron Bennett Says:

    eyal,

    Thanks for giving it a try. I look forward to your comments!

    Sorry, ratings and comments aren’t in there yet. On the list, though, and it’s better prepared for that (or maybe I’m better prepared). You’ll see that the leap from 0.2.6 to 0.3.00 is more of transforming PhotoSmash into a gallery framework/CMS-like beast.

    BB

  382. Flo Says:

    @Byron
    great to hear, thanks for all your work so far!

    I hope there is a smooth upgrade from the current version available ;)

  383. Byron Bennett Says:

    The sites I’ve upgraded so far have been completely transparent from both the Admin and Viewer perspectives. The Admin just has more options in the Admin panel. So it shouldn’t cause any different behavior in your site if you just upgrade and don’t do anything. That said, there are some pretty massive changes at the very core of the plugin, so I can’t be 100% sure for all cases. I’m really hoping our Beta test will flush out any major issues before the release.

    Cheers,
    Byron

  384. SKunder Says:

    Upload isn’t working on my site. Users can upload and it SAYS they’re uploaded but then they disappear when you go off the page. I’ve been wondering why I haven’t heard anything from my users…And that’s why!

    Is their a list of changes somewhere for what all was added to 0.3?

  385. Byron Bennett Says:

    SKunder,

    There was a problem with a plugin conflict in the old version of PS that could have caused that, but that should not affect 0.3.

    Oh…wait…Did you Deactivate and then Reactivate the plugin when you upgraded to 0.3?

    You could do that or go into Plugin Info and scroll down and click the Update DB button.

    Let me know if that’s not it. We’ll get to the bottom of it. It sounds like a DB problem, and my best guess would be that the database is missing some of the new fields. But I could be wrong.

    BB

  386. SKunder Says:

    If I deactivate and then reactivate will i lose the existing images?

  387. Byron Bennett Says:

    @SKunder,

    Nope…you should be safe. I’ve tried to make sure that you can update without losing things. The one exception is if you make changes to the bwbps.css file. 0.3.0 addresses this by allowing you to point to another file.

    BB

  388. SKunder Says:

    Well, to get it to work I had to do both deactivate/reactivate and Update the DB. Strange, but it’s working now.

  389. Byron Bennett Says:

    That’s weird. Deactivate/reactivate should have triggered the “Init” process, which is essentially the same thing the Update DB button does. I’ll have to take a look and see if anything is amiss.

  390. SKunder Says:

    A suggestion…
    Instead of the GALLERY ID section in the Photo Manager listing the #, how about the name of the gallery? The number doesn’t help me identify what the gallery is.

  391. SKunder Says:

    Also, how about a total count of photos in the entire plugin in addition to the per gallery.

  392. Byron Bennett Says:

    I used Gallery ID since that is what you would use to reference it in a shortcode. The ID is also shown in the Drop Downs, and it does link to the gallery. But I take your point. I

    Having the gallery name will particularly be helpful when I get the query feature up and running.

    I can also do a total count. Where would you suggest putting it? Someone (maybe you) had earlier suggested a dashboard widget (brilliant idea, btw). That would definitely be appropriate.

  393. SKunder Says:

    A dashboard widget would be a superb location for the total count.

  394. Tony B Says:

    My upload form stopped popping up when I click the Add Photo link. Why would it do that? It worked the other day.

    When I click the Add Photo link, it does nothing.

  395. Byron Bennett Says:

    Hi Tony,

    My guess would be (if you didn’t do anything to PhotoSmash), that a new plugin got added and is causing a conflict. You might try going through your plugins to see if turning any of them off fixes the problem. If so, let me know which one and I’ll see if it’s something I can address in PS, or if it’s something beyond the pale in the other plugin.

    I could also be a theme issue if you’ve changed themes. I’ve seen some themes do some really bizarre things like stripping the javascript actions off of elements.

    BB

  396. Tony B Says:

    Thanks, Byron,
    It’s something with the Theme I’ve been tinkering with lately. I tested the gallery on WPs default theme and it worked.

    I’ll retrace my steps with the previous plugins and theme mods and get to the root of the problem.

  397. Byron Bennett Says:

    Tony,

    Cool. Let me know if it’s something I should be taking into account. One plugin to be aware of is the one that moves the javascript file includes from the header to the footer. PhotoSmash has got some scripts that need jQuery to be in the header.

    BB

  398. Tony B Says:

    The javascript files are not being called from the Theme I built from scratch. This is my first custom theme. Is there something I need to do to call those javascript files?

  399. Tony B Says:

    Got it. I added to my Header.

  400. Byron Bennett Says:

    Tony,

    You need to call get_header(); I believe. This triggers WordPress to queue up all sorts of files.

    BB

  401. Tony B Says:

    I meant the wp_head function.

  402. SKunder Says:

    Byron, did you be chance figure out why the resize isn’t working on my site? I redownloaded & reuploaded the latest release and activated/decativated & updated the database…Still got nothing.

  403. Joerg Says:

    Hello. Is there a way to upload images via ftp and integrate them manually, or take pictures from the media libary? I have a htaccess-logged webspace and so the upload don’t work correct for me…

  404. Linda Says:

    Just a FYI if you are upgrading to Wordpress 2.8

    I decided to upgrade one of my sites to Wordpress 2.8 and noticed that the “Add Photo” link was no longer working.

    Turns out one of the new upgrades to Wordpress was JS script loader Improvements. Long story short, my problem turned out to be that I did not have this piece of code in my footer.php file . I added the code and everything works fine again. Hope this helps others who might have a similar problem.

    Additional information can be found at http://codex.wordpress.org/Version_2.8

  405. Linda Says:

    Drats, the code isn’t visible. Try this
    <?php wp_footer(); ?>

  406. Shack Dougall Says:

    Hi, Byron!

    It’s been a while since I looked a PhotoSmash and I’m impressed with the progress! I usually make major changes to my website around the time that a new version of WordPress comes out. WP 2.8 is here, so I’m taking a serious look at incorporating PhotoSmash, now.

    One question and then a few comments. The question: What is the idea behind the allow_no_image tag in custom forms?

    Now, the comments:

    1) I’d really like to see some way to manage file sizes. It wouldn’t necessarily have to be a hard limit (although that would be nice), but I’d at least like to see the file size in the PhotoManager, so that I can take that into account when I decide to approve/delete.

    2) Would be nice if there was a way to convert the images to jpg with an admin-defined quality setting. This could be done automatically on upload and/or have the conversion triggered in the PhotoManager during the approval process. Again, I’m thinking about file size.

    3) We really need to get a handle on this problem where a new image behaves differently from other images. That is, an image that was just uploaded doesn’t open in shadowbox when you click on it. I know that this is a known issue and that it might not be easy to solve, but we need something here. At the least, maybe an option to have the page reload after the user presses the Done button.

    3) Not as important. Might be nice to have a way to limit the number of uploads per user per day. I can easily do this through policy. I’ll just tell people that I won’t approve more than X per day. The reason I’m thinking about this is that some people go overboard when posting pictures of their creations, e.g., by posting pictures of their creation when viewed from every possible angle.

    4) Also not as important. Would be nice to have a way to move and/or copy an image to another gallery. Here, I’m thinking about creating a gallery that is something like the Editor’s Choice. As admin, I’d like to be able to copy the best images from other galleries and put them in one or more special galleries to highlight the best ones.

    There are two things that I’m going to take as action items for myself:

    a) I’ll investigate adding CoolIris support via my wp-piclens-plus plugin and update the plugin if necessary. At this point, I don’t even know if wp-piclens-plus still works in WP 2.8, but I’ll take a look at it.

    b) I want to make it so that a PhotoSmash gallery can be embedded inside of a Simple:Press forum post. This almost works out of the box. The only complication that I’ve found so far is paging. Anyway, this might generate some sort of a patch that I’ll submit to PhotoSmash and/or Simple:Press. Too early to tell.

    But I’m loving PhotoSmash. Looking good!

  407. Byron Bennett Says:

    Hi Shack,

    Welcome back! I’ve got a lot of documentation to catch up on. Thanks for poking around in the development version. What you’ve probably noticed there is that it gives developers a whole lot of flexibility to use PhotoSmash for way more than just your average photo gallery.

    The [allow_no_image] tag includes a hidden field that tells the upload Ajax function not to check to see if an image was selected. Why on earth would you want to do that in a photo gallery, you ask? Well, you wouldn’t. But if you were creating an upload form for something like submitting a new business to Yelp, you could do that with PhotoSmash, using a custom upload script. Your Yelp page would normally include a logo for the business, so if the user had one, they could upload it, but if not, the script could be set to allow uploads with No Image. I plan to offer an enhancement pack for developers that would assist in doing that sort of thing.

    To your comments:

    1) Managing the file size: this is totally doable. Take a look at the docs for the upload class to see what all Colin has made available there.

    2) I think this is possible with the upload class as well.

    3) One thing that is available in the development version is the ability to call a custom javascript on the Ajax return. If we could figure out what the function is to add the Shadowbox listener to the onclick in the new href, this might not be to bad to add.

    3b) A nice feature that can be added at some point. Could have it just not show the form for those users.

    4) Planned. My idea for this is to give you an iTunes (or maybe iPhoto is more accurate) like experience where you can easily mix and match and do Smart Galleries and more.

    a) If you do get something going for CoolIris, I’d be very glad to plaster a big link to your plugin for that. I really want a full-blown RSS for PhotoSmash, but the list is so sickeningly long I can’t even see it on there. I still don’t have a great grasp of RSS and its implementation. It seems too much like magic to me. But I’d like to have a couple different feeds…a gallery specific feed and a latest photos feed…if those make sense as feeds.

    b) That’s a very cool idea. If there’s something I need to do on my end, I’ll be glad to do it.

    BB

  408. didymos Says:

    Hi,

    Great plugin, but I have a problem with it:

    I’ve made three galleries on one page. Every gallery has 10 pictures. The problem is, when I click “next” below the gallery (paging enabled) it changes both galleries page, not one… That sucks ;)

  409. Jess Says:

    Hi Byron,

    I’ve just installed PhotoSmash and love it – I’d just like to ask – is there a way to have new images added to the top of the gallery rather than the bottom?

    I’ve got it set up on my site for fellow artisans and craftspeople to share their work, and I’d love it if the most recent was at the top.

    Thanks,

    Jess

  410. Byron Bennett Says:

    didymos
    Wow…I didn’t think of that, but I see how it’s happening. I’ll have to consider how to fix that…I think it’s tricky, but fixable.

    BB

  411. Byron Bennett Says:

    Jess
    Thanks for trying it out! Sorting is baked into the next version, so it shouldn’t be too long. It’s not in the Development version on WordPress yet, but I’ll post here when it is.

    BB

  412. didymos Says:

    Hi,

    Thanks Byron! Paging is the biggest problem for me right now, as I said before… when i click next in one gallery, it’s reloading all galleries on one page at the same time. It wolud be just great if you could fix it.

    The next thing is what Jess said – newer pictures should be at the top, and not at the bottom of the gallery.

    As you (probably) know, encoding is wrong, when you’re adding a description to the picture (using non-asci characters, like national letters, ex. “?ó????” – that’s polish).

    And the last thing: Photosmash is just great. I was looking for a plugin like this for weeks!

    PS. Where I could get the latest development version to test it?
    Thanks!

  413. Byron Bennett Says:

    didymos,

    There’s a link to WordPress where you can find the development version. Sorting isn’t in that one, unfortunately. And I can’t put the latest one out until I get a couple things ironed out.

    I have no idea how to correct the encoding problem, I’ve looked, but no avail. It’s on the list, though!

    Byron

  414. didymos Says:

    Thanks for everything Byron! So I’m waiting for the 0.3 stable version now…

    Greetings!

  415. Francisco Tabares Says:

    Hello Byron.

    First of all I want to thank you for this incredible and great plugin. It has been very useful to me.

    I have a private blog, and I want that the last photo that is published (or added to the gallery) is shown at first.

    I don’t see this option in the admin mode, and I don’t know witch file I have to modify.
    Thank you for your attention.

  416. Byron Bennett Says:

    Francisco,

    Glad you’re giving PS a try! The current version doesn’t sort latest to earliest, but the next version will. It should be available in a week or two!

    Byron

  417. Francisco Tabares Says:

    Thank you very much Byron!

  418. zac Says:

    Hello.. I am excited to try out your latest release.. however on the test site I am working on I am only getting the black box but not the Add your Photos link. I switched to classic theme thinking maybe that my custom theme broke it but nope.. maybe just something I am missing in the admin ?

  419. Byron Bennett Says:

    Hi Zac,

    Welcome back!

    Is that only on the front page that you are not getting the Add Photos link, or is it on the individual post pages as well? Also, the link doesn’t show up if you are not authorized to upload photos for a particular gallery, so make sure you’re logged in and all that (just checkin’).

    Byron

  420. zac Says:

    Hi Byron!

    I was trying it out with an individual post but nowhere else yet….

    http://www.zacharydesigns.com/blog/testing-photosmash

    I set the default minimum role to Anyone and I tried it both logged in as Admin and logged out…

  421. zac Says:

    Oh .. i figured it out, I had manual form placement checked.. now I can play :)

  422. Byron Bennett Says:

    @zac,

    Excellent! I was thinking it had to be something in the settings. That particular one has tripped me up too. I’ll need to document that really well…like maybe a big button in the Admin that says, “Why doesn’t my Form show up?”

    Let me know if you find anything…abnormal.

    Thanks,
    Byron

  423. Joerg Says:

    Hello Byron,

    can you helP?
    http://www.whypad.com/posts/photosmash-galleries-wordpress-plugin-released/507/#comment-2538

    I’d like to use Pictures from the media libary with your plugin, but how?

    Thanks for your help.
    Jörg

  424. Byron Bennett Says:

    Joerg,

    Sorry, but PS can’t do that yet. This is among a few highly requested features, like uploading zip files or FTP, browsing the media library, or importing from Flickr/PhotoBucket. They all need to happen at some point, but it’s a ways out, I’m afraid.

    Byron

  425. Shack Dougall Says:

    Just a quick status about what I found regarding CoolIris.

    My wp-piclens-plus plugin does sort of work with PhotoSmash. The primary place where it doesn’t is when there is a multi-page gallery. If you click on an image on any page, it should open CoolIris on all the pages, but it only opens the images in the current page.

    It really needs to be integrated into PhotoSmash, but to do it cleanly will require some refactoring in PhotoSmash. To build the feed, you need to know the urls of various links that are in gallery. Because of the high level of customization that is possible in PhotoSmash, these urls aren’t always straightforward to calculate and the calculations of the urls are currently intermixed with the code that generates the html.

    So, to cleanly implement the feed, the code that generates the urls and the code that generates the html would need to be teased apart. Then, the html generation and the feed generation would both make calls to procedures that generate the urls. I might attempt this once 0.3 is released, but it doesn’t make sense to do the work on a beta release. I’m also uncertain about how successful such an effort would be, given that PhotoSmash is still under such active development. It might be difficult for you to merge my changes back into the development stream.

  426. Byron Bennett Says:

    Shack,

    Thanks for the CoolIris work. I haven’t looked into it at all, so I have no idea what is needed. I think it makes sense to wait for 0.3 to come out (and it’s getting very close…just refactored to allow different types of forms (custom forms mixed with standard forms) on a single page).

    If you could let me know what is needed from a PhotoSmash perspective, that would give me a huge start on fixing PS. I don’t know whether it’s looking for an XML file that is called through AJAX or if it is looking at the gallery itself and trying to come up with the image urls from there.

    As to the other issue you brought up where newly uploaded images don’t pop to Shadowbox or Lightbox, I found in the Shadowbox documentation something that may make that work. I’ll hit that after 0.3 comes out.

    I’m going to put a new beta out tongiht or tomorrow. A couple of major core changes around Custom Forms and Layouts. Custom Forms are moving to their own table and out of the WP Options functionality (shouldn’t have cut that corner to begin with), so any existing custom forms will need to be copied and pasted back in to add them to the table – there’s the Beta of a Beta coming out.

    Thanks again!
    Byron

  427. Byron Bennett Says:

    Shack,

    BTW, you were right about having to separate the URL generating code from the html generating code. I had to do that for one the last couple of changes…there’s a function called calculateURL().

    Even so, I don’t know that it would work for the feed since there are so many haywire options a URL might wind up.

    We’ll have to see.

    Cheers,
    Byron

  428. geo Says:

    Hi,

    i have some problems with version 0.2.62. I can upload pictures, but after upload, they are saved to both folders (bwbps, thumbs) without changes. So my thumbs are similar as normal images. I have set Thumbnail width (px): 125 and Thumbnail height (px): 125. And style crop images. Could you help me?

    Thanks

    geo

  429. Byron Bennett Says:

    Hi Geo,

    It sounds like everything should be set to work right. Did you check the Thumb sizes in PhotoSmash Settings or Gallery Settings? You’d need to edit each gallery individually to make sure they are set right. The next version of PhotoSmash has mass update buttons by all of the relevant settings in the PhotoSmash Settings page to update all galleries to the new settings, but that doesn’t help you with 0.2.62,

    Let me know if it’s still a problem.

    BB

  430. SKunder Says:

    Where is this project at now? My users are impatient for for the resizing which I guess will only be possible if the mass update button is available. :)

  431. Byron Bennett Says:

    Hi Skunder,
    The mass update button is availabe now in the latest Development version on WP. If you go into the PhotoSmash Settings page, there is a save button beside each parameter that is mirrored in the Gallery Settings. That button doesn’t update the global defaults, so you still have to save the PhotoSmash Settings if you make a change from the default. But clicking the mass update button will update all Galleries with the number you have in the text box.

    The Mass Update in the Gallery Settings isn’t enabled yet, so ignore that for now.

    BB

  432. Matt Simon Says:

    Hi I think this plugin is excellent and I’m suprised that its the only one like it around. As always though I have a problem.

    When I edit the css file it makes very little change to the gallery. I say very little as certain things like the background can be changed but I cannot get rid of the grey border around my gallery. When I inspect it in firebug it shows a grey border (#CCCCCC) but this is nowhere to be found in the css file??

    Also I cannot make any change to the ‘add photo’ text – I’d like to move it and style it. Any ideas?

    I am using Wordpress 2.8 – not sure if this has an effect on it.

    Any help would be great thanks.
    Matt

  433. SKunder Says:

    Looks like it’s working! Their was no response letting me know that it was completed after I clicked the icons, so that might be something you want to look into doing. As I’ve said, I’m very happy with the plug-in and look forward to it progressing. :)

  434. SKunder Says:

    What is the path to the uploaded images? I’ve had to switch hosting and I can’t seem to locate them.

  435. Lise Strandlien Says:

    When I use the shortcode to place the form: [photosmash form], I got the message ” Current user does not have authorization for uploading to this gallery.” when I tried to upload an image. I have the role setting to “anybody”, but I get the message even if I am logged in as admin.

  436. Lise Strandlien Says:

    I would like to have an option to show custom fields in the admin Photomanager tool. This is because I have added custom fields as name, e-mail and phone, instead of using registered users option. If this option is added, it is possible for wordpress users to create simple photo contests.

  437. Byron Bennett Says:

    Hi Skunder,

    I feel for you. Switching hosts can be a bit of a pain. The images are located at:

    /wp-content/uploads/bwbps/

    The Thumbs:

    /wp-content/uploads/bwbps/thumbs/

    The transfer should work fine. The two things to verify are the permissions are 755 on those new folders once created, and make sure that you get all the PhotoSmash database tables moved over with their data.

  438. Byron Bennett Says:

    Hi Lise,

    I may have some problems with the logic of how that works. But for now, try adding a gallery id and a no_gallery=true to the shortcode. Something like:

    [photosmash id=## no_gallery=true form]

    You can get the gallery ID from the Gallery Settings page. The ID numbers are shown in the dropdown picker. If you don’t already have a gallery picked out for this, you can create one here as well.

    If that doesn’t work for you, let me know what you’re trying to do and I’ll see if there’s a way.

    Byron

  439. geo Says:

    Hi Byron,

    thank you for your advice, but it doesnt work still… I mean that it could be caused by some permisions problems, which this plugin signalise:

    # Image path: /var/www/******/wp-content/uploads/bwbps
    Exists – but not writeable.
    CHMOD attempted and failed. – Permissions: 0775
    # Thumbnail path: /var/www/******/wp-content/uploads/bwbps/thumbs
    Exists – but not writeable.
    CHMOD attempted and failed. – Permissions: 0775
    # Uploads path: /var/www/******/wp-content/uploads
    Exists – but not writeable.
    CHMOD attempted and failed. – Permissions: 0775

    I have set 0775, but get this errors. Permissions for Upload Folders has value Don’t use 0777. I am not happy to change permissions to 0777 – then it works, but i get the problem with thumbnails (they are not resizing and settings are ok), which I have written above. Have you any ideas how to fix this?

    Thanks

  440. SKunder Says:

    Thank you, Byron. This whole host switch has been very unpleasant.

  441. Lise Strandlien Says:

    Thanks! It work like a charm. Great plugin!

  442. Lise Strandlien Says:

    when I choose not to use the thickbox, but view the form on a page, the upload function does not work. The page just reaload, and nothing happens.

  443. Lise Strandlien Says:

    I just discovered that it is because I use [photo id = 5 smash no_gallery = true form] as shortcode that the upload does’t work, not because I use the form direcly on the post.

  444. Bcarter Says:

    I’ve been looking for something like this on one of my WP sites for a while now. Thank you so much.

  445. william Says:

    Your upload box continues to be plagued by all the bugs from every previous version. Could you please redesign this before adding a slew of new features?

    Random errors (file size limit when no image has even been selected for upload), misaligned everything, the file size limit not actually reflecting what’s set by PHP (and thereby being utterly useless), failed upload errors when the image is clearly uploaded, no errors when the image isn’t uploaded successfully, it still does not refresh the page when you close the upload box (which it must do in order for lightboxes to work properly and other formatting changes), etc.

    It is broken from the bottom up. Please work on the upload box!

    Not trying to be harsh, still love your plugin and appreciate all your work. :)

  446. william Says:

    Forgot to mention, adding a custom form does nothing, because you cannot select it in any gallery. The dropdown list of custom upload forms available simply does not include anything but .

  447. byron Says:

    William,
    Sorry it’s not working out for you. Clearly, it’s still a work in progress. You may want to try again later after I’ve had a chance to fix some of the things you’ve mentioned. If you are interested in providing fixes for the things that trouble you most, I will be glad to see if they fit with my overall aims for the plugin.

    Regards,
    Byron

  448. Byron Bennett Says:

    Hi Lise,

    Sorry hadn’t replied earlier…I’ve been out of pocket for a few days. Have you got it working like you want? It sounded like you did, but just checking.

    Byron

  449. Byron Bennett Says:

    Hi Geo,

    Sorry for the delay in replying. It does sound like a security issues. If you’d like to dive deeper into the problem, send me an email at byron at whpad . com

    BB

  450. Pikus Says:

    Hello!

    I am looking for something, but I don’t know what and I don’t want to try everything I find in the net…

    What I would like is:

    - something (maybe a plugin) that works with wordpress
    - users should be able to register and upload their photos
    - the photos uploaded by users should be visible on a different page (because I do not want a “post” in the main page for every photo added
    - those users should not have rights to add posts, or if they add posts, they should be visible on a different page, so that the only MY posts will be updated on the main wordpress page
    - I would like random photos to show on the sidebar, maybe as a widget
    - I would like to chose the “photo of the day” to show on a different page and in thumbnail in the sidebar

    And now I explain the same in other words
    I would like users to upload their pictures (for example the photo of their computer) to my wordpress blog, they need to register in order to do it and they need to add a description, what is the hardware, software and so on… random computer pictures will show in my wordpress l my wordpress blog. Users can click on a wordpress page and they can see a list of pictures ordered by date of everybody’s computer… and can put their comments…

    Please tell me if something like this exists already… maybe yours? PhotoSmash?

    Thank you

  451. Byron Bennett Says:

    Hi Pikus,

    PhotoSmash comes close. The uploading and security you mention are the primary features of PhotoSmash. The widget is on my roadmap, but doesn’t exist yet.

    Byron

  452. Pikus Says:

    so just the widget is missing? do you have an estimate time?

    when the widgets will be available it will be necessary just an easy automatic update?

    That would be wonderful! I have a nice simple little project and I am sure I will come out with some ideas to make your plugin the best, and I think it’s not difficult, because I am searching and searching and yours seems to be the best for my needs.

    I would like an answer to those questions above… and I would like to know whether is possible or not to have your support if I have some questions or need some help.

    Maybe you have a forum?

  453. Stefani Says:

    Hi there, your plugin is great but I unfortunately can’t use it cause it doesn’t seem to work properly with Wordpress v. 2.8. Everything works fine up to upload and the image appears on the page, but if I then refresh that page, the image uploaded disappears.

    The image is stored in the correct folder, it just doesn’t get found after it’s been uploaded.

  454. Lise Strandlien Says:

    Hi, Byron –
    The shortcode [photosmash id=## no_gallery=true form] did show the form in a seperate page, but its not possible to upload pictures to the gallery. The page reload (or when using thickbox, the layer closes down), and no message is showing.

  455. Lise Strandlien Says:

    I tried it once again and now it worked. I’m sorry for the inconvenience.

  456. Byron Bennett Says:

    @Lise,
    Glad to hear it’s working. I’ve noticed that sort of thing before where you try it once and nothing happens and then try it again and it works. I have no idea what that is all about.

    @Pikus,
    Sorry, I don’t have an estimate on when the widget will be ready. I’m very involved in developing this plugin, but there is a LOT of work to be done. I’m hoping to get my latest release out soon and move to a new site that’s more focused on plugins. But until then, you can post any support questions here.

    @Stephani,
    It sounds like everything is working up to the point where it should be saving to the database. If you’d like, send me an email at byron @ whypad . com and we can take a deeper dive into the problem.

    Cheers,
    Byron

  457. Pikus Says:

    I can see that it works fine, you can see it here:http://www.przepiekna.pl/galeria-test/

    People can add the pictures, well… But how can they change them? Is it possible for the users to “at least” change the caption to the picture they added?

    If a gallery has many pictures, they will be displayed in 1 page only or it is possible to have the numbers in the bottom to go to page 2, etc…?

  458. geo Says:

    Hi Byron, I have fixed the previous issue which I had (the problem was, that i have manualy created upload folders and permissions was set on me, not on server – so without permissions 777 wasnt photosmash able to upload)… But…

    It works perfect for few days. Now i havent changed anything and when I try to upload, i get error Image processing failed (permissions are ok). I read above something about this, but dont find any idea how to fix it.

    Thanks for help

    geo

  459. Lise Strandlien Says:

    I have created a custom form, but it’s not possible to select in “gallery Settings/advanced – costum form name” (The name on the costum form is not showing, just ) .
    ‘Use Custom Forms’ is turned on in PhotoSmash Settings/Advanced.

  460. Byron Bennett Says:

    Hi Lise,

    Good catch! Thanks!

    I’ll have a fix in for that tonight. I’ve been using the shortcode for that and hadn’t tried the Gallery Settings dropdown since I moved the Custom Forms to their own table.

    FYI, the shortcode would look like: [photosmash id=## form='my_custom_form']

    That ought to work now. I’ll get the gallery dropdown working tonight…it’s still using the old paradigm.

    Thanks again!
    Byron

  461. Julia Says:

    Hi Byron
    This is a great plugin.
    My problem is that I can only get administrators to upload. I’m on WP 2.8. I tried it with all the other plugins disabled, and that didn’t work. I have changed permissions to 777 as you outline above.
    I have set photosmash settings to “Anybody”. But when I log out as admin and in as a subscribed user, I can’t see the upload photo link.
    Any ideas?
    Thanks,
    Julia

  462. Byron Bennett Says:

    Hi Julia,

    Hopefully an easy fix. Your galleries probably got created before you changed the PhotoSmash setting. So they probably got defaulted to Admins only.

    If you go into Gallery Settings and edit the galleries, you will need to set your galleries to Anybody and save them.

    Once we get to the next version, there is a mass update button that will let you set all galleries at once. For right now, you’ll need to do each gallery individually.

    Hope that gets it going!
    BB

  463. Julia Says:

    YESSSSSSS!!!!!!!!
    Thank you! Thank You! That did it – it’s perfect now. And so prompt!
    Now, if only I’d thought of asking you about four hours back!
    Julia

  464. Stefani Says:

    Bit of a silly thing, but the close button on thickbox doesn’t load, so my form has a broken image up at the top. I’ve checked and the file does exist in the correct location. Anyone else having that problem?

    Would love to see a vote function per photo and ability to add a watermark to images in future.

    The developers version is really amazing. The custom layout is my favourite feature. Adds so much flexibility. Thanks.

  465. Jason Cooper Says:

    Is there is a way to hide/suppress the gallery placeholder (the black box) until the first set of images has been submitted?

    Thanks!

  466. SKunder Says:

    I’m a bit confused…I thought the mass updater was working? It’s not doing anything on my websites.

  467. Byron Bennett Says:

    @Stefani,

    I’ll need to check out that close button…that’s weird. Glad you’re liking the plugin!

    @Jason,
    No way to hide that on the standard layout. If you do a custom layout, it does get hidden. I’ll look into an option for hiding that in the future.

    @SKunder,
    Any particular setting it’s not working on? Or is it all of them. The button should submit an Ajax call to update all of your existing galleries with the value you’ve selected. The PhotoSmash Settings is not affected by that save, so you have to save those settings normally.

    But it should be working. I’m able to update settings. But I haven’t tested all of them. It uses a standard method that should work for them all, but there could be a bug. A hint as to where to start looking would be helpful.

    BB

  468. SKunder Says:

    • Thumbnail Style
    • Max Image Width
    • Max Image Height

    I’ve only checked the Thumbs/Images section as it is major for my site.

  469. Byron Bennett Says:

    @SKunder,

    Ah….It is probably making the change properly. But the gallery continues to show the thumbs and images at the original size they were Resized to upon the original upload. Those settings currently only affect new uploads.

    To make sure the mass edit is working, you s/b getting the pop-up that says how many galleries were updated It might come back as 0 if the values were already set to the value you’re trying to save, but if you change the value to something new, it should give you a # of galleries updated.

    You should also be able to go in and see the new settings in the individual gallery settings.

    Hopefully that is all working fine. But that doesn’t solve your problem, which is that you want to change the size of pre-existing images/thumbs. I’ve been debating how to handle that. The simplest thing is to set the image height and width properties in the img tag, forcing the browser to do the resizing. This has the unfortunate affect of stretching and warping and degrading the quality of images that don’t match the ratios/sizes. The other thing I’m considering is providing a means for admins to resize images and thumbnails within a gallery en masse.

    But I’m not sure how that will work with such a large number of images and script timeouts et al.

    Any thoughts?

    BB

  470. zac Says:

    Hi Byron,

    Wanted to say I have been testing your beta for a couple of weeks and its working great. I am going to work on tweaking the layout and input fields now and see what happens…

    I was wondering, do you know how I could get all of the information that is entered into the input fields and export them as a CSV or something? I am fairly lost when it comes to mySQL but would this be fairly easy to just download the table generated by user input?

    Thanks,

    z

  471. Byron Bennett Says:

    Hi Zac,

    You should be able to Export the contents of your WordPress (and PhotoSmash) tables through your Host’s database admin tool…probably phpMyAdmin or something similar.

    In phpMyAdmin, you can:

    1) Click on your Table
    2) Click Export – there should be a CSV option.

    At some point, I want to provide both backup and Export functionality within PhotoSmash to allow people to easily share gallery settings/designs, as well as let people backup their setup. But for backing up, you could use something like WP-DB-Backup.

    BB

  472. wolf Says:

    Hi
    i am using the photosmash gallery plugin at my site , it is very nice and usefull plugin but i have a litle problem with it , my site is intended for russian community so most of the posters use russian language but when writing captions in russian language they are shown at the gallery like : “Ñ by admin-3″ instead of the caption posted by user . is there any way to fix it?
    Thanx in advance :-)

  473. Duane Hardy Says:

    I am having similiar problems as many others have with getting images to load. I have looked through every post here and google my issue but have not found the solution. I have created a new blog and I am trying to get Photosmash to work properly. You can see the install at http://blog.estonish.com/?page_id=3 .

    I am only able to get images to load via url. I have tried to upload several images from my hard drive without success. All upload attempts end with “image processing fails”. All URL loads give me a success but it does not upload the image if permission is 755. Only shows caption if one is provided. It does upload the image if the permission is 777. All images are less than 400K. Can someone help me fix this? Here are my settings:

    PhotoSmash Info

    * Image path: /vservers/h181012wp/htdocs/wp-content/uploads/bwbps
    Exists. – Permissions: 0777
    * Thumbnail path: /vservers/h181012wp/htdocs/wp-content/uploads/bwbps/thumbs
    Exists. – Permissions: 0777
    * Uploads path: /vservers/h181012wp/htdocs/wp-content/uploads
    Exists. – Permissions: 0777

    Database Info

    Tables:
    o wp_bwbps_images: Exists
    o wp_bwbps_galleries: Exists

    Server Settings

    * Operating System : Linux
    * Server : Apache/2.2.3 (Red Hat)
    * Memory usage : 11.29 MByte
    * MYSQL Version : 5.0.45
    * SQL Mode : Not set
    * PHP Version : 5.1.6
    * PHP Safe Mode : Off
    * PHP Allow URL fopen : On
    * PHP Memory Limit : 32M
    * PHP Max Upload Size : 2M
    * PHP Max Post Size : 8M
    * PHP Max Script Execute Time : 30s
    * PHP Exif support : Yes ( V1.4 )
    * PHP IPTC support : Yes
    * PHP XML support : Yes

  474. Byron Bennett Says:

    Hi Duane,

    Does the Browse – Upload work if permissions is set to 0777? I think you indicated such in your post, but wanted to make sure.

    My understanding is that the URL works for you with 755 and 777, but that Browse isn’t working for 755, but does work for 777.

    PhotoSmash is over most of the upload problems in the comments above. Most of the problems that we see now are due to Web Hosts that restrict uploads for 755 and they only work for 777. The other problem we sometimes see is when the database is not properly updated, but the symptoms you’re referencing don’t seem like that.

    If you can confirm that the upload is working for 777, that would indicate most likely a restriction by your Web Host.

    Byron

  475. Upgraded to WordPress 2.8.1 » WhyPad Says:

    [...] upgraded three sites to WordPress 2.8.1.  None of them missed a beat.  Also, PhotoSmash seems completely unfazed by its new [...]

  476. Duane Hardy Says:

    Bryon,

    Upload does not work under any circumstance.

    URL works for 777 but not 755. 755 gives a success message but the image is not imported only the caption.

    Let me know if you have other questions.

  477. Geneve Says:

    Hi there, I’m in the process of working on a website and this plugin is EXACTLY what I’ve been looking for – which is awesome.
    Only problem I’m having is that I’d love to tweak the css file but.. I can’t find it. Granted I’ve been staring at the computer way too long working on this already, but I’ve looked well.. everywhere.
    It’s in the file I downloaded, but once it was uploaded to yahoo (my host) it vanished.
    I tried uploading it by itself, it said the upload was successful, but it isn’t there.

    I feel like I’m going crazy. x_x

  478. Byron Bennett Says:

    Hi Geneve,

    Are you able to connect using an FTP client? You should be able to see it with an FTP client provided you have the proper permissions to view the folder.

    That is strange.

    BB

  479. Byron Bennett Says:

    Duane,

    Have you had any luck? I noted that you had tried out NextGen Gallery. Were you able to get it to upload? If so, then it should be possible to get PhotoSmash to upload if you still want to try to get it going.

    If so, shoot me an email at byron at whypad.com, and I’ll be glad to work with you.

    Cheers,
    Byron

  480. Duane Hardy Says:

    I’ve experimented and seem to have it working properly now. I dumped wp 2.8 and changed back to 2.7. I up my max image upload to 10m and turned safe mode off. I had to set permissions to 777 on the plugin to work also.

    Have you experimented with any code to insert images from a gallery in the sidebar? I was thinking about trying to put the 6 – 8 most recent images in the sidebar. Do you have any suggestions on how to handle this?

  481. Byron Bennett Says:

    Duane,

    I’m glad to hear it’s working. Not sure why you’d have to switch back to 2.7. WP 2.8 has some nice features if you can get it running. The Admin pages are certainly faster. I used to dread editing a post or page, it was so slow to load.

    Over the next month or so, I plan to release some widgets, including one that will let you do what you’re suggesting. But it’s likely to be several weeks out before I get to that. If you’re a PHP coder, then you could probably whip one up without too much trouble. I believe that the field in the wp_bwbps_images table is created_date…. so your SQL could order by that field in descending order. Be sure that you call only images with a status > 0, so you don’t get any that are in moderation.

    If you can wait, this is on the drawing boards.

    Let me know if you hit any other snags.

    Byron

  482. Byron Bennett Says:

    PhotoSmash 0.3 has been released. Please visit the new PhotoSmash page at Smashly for questions and comments. Comments are now closed here.