This is an update to my previous assembly for CS2007.
Description
The functionality exists in CS2.1 and above for the site administrator to set auto create blogs and/or galleries on for new users but no functionality exists to create them for existing users. These CSModules add this functionality by attaching to the csa_PostUserUpdate event which fires when a user edits their profile. When these CSModules are installed all the user need do is navigate to their profile and click save, this will create a blog and/or gallery for them using the same settings defined for new users in the control panel.
CSModules
AutoBlogCreate - creates a blog for the user when they edit their profile.
AutoGalleryCreate - creates a gallery for the user when they edit their profile.
Instructions
Download here
Copy RhodesD.CS to your bin folder
If you have a communityserver_override.config file in the root of your website, add the following between <Overrides> </Overrides>
<Override xpath="/CommunityServer/CSModules" mode="add">
<add name = "CreateGalleryOnUserUpdate" type = "RhodesD.CS.Components.AutoGalleryCreate, RhodesD.CS" />
<add name = "CreateBlogOnUserUpdate" type = "RhodesD.CS.Components.AutoBlogCreate, RhodesD.CS" />
</Override>
If you do not have a communityserver_override.config file, create one and add the following
<?xml version="1.0" encoding="utf-8" ?>
<Overrides>
<Override xpath="/CommunityServer/CSModules" mode="add">
<add name = "CreateGalleryOnUserUpdate" type = "RhodesD.CS.Components.AutoGalleryCreate, RhodesD.CS" />
<add name = "CreateBlogOnUserUpdate" type = "RhodesD.CS.Components.AutoBlogCreate, RhodesD.CS" />
</Override>
</Overrides>
These modules require that you have Auto Create on for Blogs (located at /controlpanel/BlogAdmin/Options/GeneralOptions.aspx) and Galleries (located at /controlpanel/photoadmin/options/generaloptions.aspx)
Posted
May 21 2007, 07:36 PM
by
Dave