Ok..
I got blogs creating upon registration by adding the following code I found on the forums
Slightly edited..
//create usr blog
BlogEntity blog = new BlogEntity(GuidExtension.NewSequentialGuid());
blog.Name = membershipUser.UserName;
blog.Slug = UrlSeoOptimizer.GetOptimizedString(blog.Name);
blog.DateCreated = DateTime.Now;
blog.UserId = userId;
blog.ApplicationId = MembershipRepository.GetInstance().GetApplicationId();
blog.LanguageId = LocalizationUtility.GetCurrentLanguageId();
MonoXCacheManager cacheManager = MonoXCacheManager.GetInstance();
cacheManager.RemoveAll(CacheKeys.Blog.Root);
cacheManager.RemoveAll(CacheKeys.Blog.Editors);
using (BlogRepository rep = BlogRepository.GetInstance())
rep.SaveBlog(blog);
I added the code to my
public override void CreateAccount(MembershipUser membershipUser)
function.. at the end after i know the account was created..
Ok now I seem to be able to navigate to
http://localhost/blog/posts/username/
and load the blog up.
Ok, now I think I need to build a customer part that I can place on all my members profiles to list just their blogs..
I am thinking I can prob inherit
<%@ Register TagPrefix="MonoX" TagName="BlogList" Src="/MonoX/ModuleGallery/Blog/BlogList.ascx" %>
and sets its property somehow to the current profiles name ?