The source for the Blog Post Editor Gallery Panel is located here. This mod makes it possible to add and integrate your CS Galleries images to your CSBlog. You can select images and wrap HTML around them to display them from your blog as you see fit. The HTML wrapper code is manually copy-n-pasted into your post in FTB HTML mode.
A few installation guidelines from the readme.txt:
While built for a single use blog, I've tried to conform to standard CS practices so that the mod can be used on a multi-user community site. But to do so, because you need to load certain elements of the CSGalleries object model, you must be able to derive your CSGalleries application key from the Request.Query object of your CreateEditPost page. My blog ApplicationKey is "dave_burke_blog" and my gallery ApplicationKey is "dave_burke_gallery." So to obtain the ApplicationKey for galleries to use on the Gallery Panel, I did a Replace("_blog","_gallery") on Request.Query["app"]. Its a good idea to standardize application names in CS as much as possible from my experience.
Because CSGalleries images are generated on-the-fly, images selected in the Gallery Panel must be saved to disc as .JPGs so they can be displayed in feeds and on blog posts. This is included in the mod and is based on the CSGalleries ImageHandling Component. I created three subfolders in my primary photo storage folder with the same names of the command arguments passed from the Gallery Panel individual image buttons' _OnItemCommand event.
Add a reference in your CommunityServerBlogs project to CommunityServerGalleries.
Add the following line to your language Resources.XML file:
<resource name="Weblog_CreateEditBlogPost_GalleryPanel">Gallery Images</resource>
Create read/write subfolders from your photos storage folder if you want to save .JPGs there. The default location is /photos/storage. If you go this route you may want to change the default "~/photos/storage" fileSystemStorageLocation element in communityserver.config to "/photos/storage" to generate the JPG storage directory string, or strip the tilde. Depends on your site config and preferences, of course.
That should do it. This is a fun mod, something I wanted to do for a while. As I said in the readme, I am not responsible for unanticipated results of applying this mod. While I am always here to help, you're on your own. Don't blame me if you can't post to your blog anymore after applying the mod. :-)
Oh, there's an issue I messed with but never resolved. If you select a gallery subcategory in the panel category dropdown (rather than display pictures from all categories as is the default) and then select an image, that category photo list display is not retained and the photo list goes back to displaying from all categories. (That's why I added a "Refresh" button next to the category dropdown, even though it autoposts back.) If you can figure this out and can persist the picture list display on category after selecting an image, please let me know! Thanks!