Community Server Tips
Useful tips for using and developing with Telligent's Community Server

CS2007 CSModule - Creating a blog and/or gallery for existing users

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

Comments

Tabs wrote re: CS2007 - Creating a blog and/or gallery for existing users
on 22 May 2007 1:49 PM

Great module, this works a treat on large volume CS sites.

External Feeds wrote Community Server Byte for May 23, 2007
on 23 May 2007 11:20 PM

blog bits Microsoft&#39;s Simon Guest on how to embed Silverlight Videos in Community Server using an

kevin wrote re: CS2007 CSModule - Creating a blog and/or gallery for existing users
on 29 May 2007 7:13 PM

i ran into an error with your module which is causing it to try and auto create when a new member joins. ie cs tries to create 2 galleries and 2 blogs for the user which results in a key error. I have a detail of the error over in the cs forums. I am running 2007 sp1

Dave wrote re: CS2007 CSModule - Creating a blog and/or gallery for existing users
on 31 May 2007 2:32 PM

Thanks Kevin, i've fixed this and updated the download

©2008 daverhodes.net
Powered by Community Server (Commercial Edition), by Telligent Systems