Dave Burke : Freelance .NET Web Developer specializing in Online Communities

CSGalleries : MultiImage Upload Mod available

Let's be honest.  CSGalleries, no matter how sweet it is, is pretty worthless without multi-image upload support.  I wanted to post some pics and link to them from my blog but there was no way I was going to upload the images one at a time.

So I spent the last couple of late-night nerd sessions adding one.  If you're familiar with nGallery, this CSGalleries multi-image upload function works the same way.  A screenshot of the MultiImageAdd admin page is below.  How it works is you create an image directory to where you'll upload your images with FTP (like nGallery.)  Then you use this MultiAdd component to select a category and enter all or selected images from the directory into CSGalleries in one step. 

I wanted to add multi-subfolder selection support (like nGallery) and an auto-delete option, but I had issues with auto-postback on the folder dropdown control and with file-locking issues on auto-delete. I wanted to get this mod up and didn't want to dick with those particular details, so I contented myself with a single upload directory and deletion as a separate one-click process.  I purposely used the Galleries:ParentCategories base dropdown control instead of the Galleries:CategoryCheckBoxList used on the single upload CSAdmin form so that I could preserve real estate and because I never assign images to more than one category.

The mod requires changes to SiteUrls.config, Resource.xml, adds a new CommunityServerGalleries.Controls.PictureMultiAdd.cs class, an .ASPX page in /admin/galleries, and a .ASCX usercontrol in /themes/default/Galleries.  A new interface is added to the GalleryDataProvider, and a method each to CommunityServerGalleries.Pictures and to the GallerySqlDataProvider.  A readme with detailed instructions and source is located at http://dbvt.com/x/cs/CSMultiImageAdd.v1.zip

Use your own Cantalope Quotient to apply this mod, but let me know if there are any issues or questions!

Sweet.  So now I can finally do a cool CSGalleries/CSBlogs integration mod I've been wanting to do since I can actually add photos to CSGalleries in a sane fashion. 

 

 

Comments (8) | Post RSS RSS comment feed

Posted on 4/2/2005 7:38:00 AM by Dave Burke
Categories: Community Server
Tags:

Related posts

Comments (8) -

4/9/2005 3:12:15 PM Permalink

This has got to be the best CSGalleries mod EVER!  I won't need to wait to pay for the FTP Server add-on anymore haha.  I did run into www.communityserver.org/.../ShowPost.aspx">a small glitch but was able to figure it out.  Thanks for the mod.

iso3200 |

6/16/2005 7:23:15 AM Permalink

Thx Dave,

I want to know if compatible with CS 1.1 RC3?

Dili |

6/16/2005 8:29:04 AM Permalink

Dili, I don't know and probably won't be finding out, as I plan on skipping CS 1.1 because of the long list of mods I made to CS 1.0.  If I do migrate to 1.1, I will certainly blog about it and port the multi-image upload mod.

daveburke |

6/17/2005 5:20:11 AM Permalink

Thx Dave again for your reply, but and now I want to try to compile with CS 1.1 Goes RTM, I'll ask you any question if there is problem.

BTW,I have added your MSN into my list,which my MSN is dili@wellknow.net

Dili |

7/28/2005 2:58:36 PM Permalink

I am trying to add the MultiImage Upload Mod...
I downloaded the code and the readme....
Step 3 says:  3) Add the following items to your language Resources.xml file.

I dont have a resources.xml file in my source code files.
Maybe Im missing something.
Please help!!
Thanks so much Smile
Brandy

BP |

7/30/2005 11:36:04 AM Permalink

Brandy, check in the Languages\en-US folder.  Should be in the root of the project.  Regards!

daveburke |

11/1/2005 2:06:32 PM Permalink

Does anyone have pre built dlls that they can share with me with instructions on how to add them correct to my CS server?  I have tried following the instructions supplied with the .cs files to build the project in VS but I obvious just do not have the skills to get it to build correctly.  I got more then a few errors during the build process..  

THanks for any help you can provide

Duane |

11/1/2005 2:15:34 PM Permalink

Duane, you might want to check the CS Wiki or search on "build" or "compile" on the CS Forum at communityserver.org.  In short, your CommunityServerWeb project resides on your IIS site and it references all other CS projects which can be located anywhere.  Hope that helps.

daveburke |


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke