MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Fresh MonoX Installed, at first OK but after a while all gravatar is resetted?  (Mono Support )

Viewed 33320 time(s), 8 post(s) 5/16/2012 5:37:48 PMby marcus.tham
marcus-tham

marcus.tham

5/16/2012 5:37:48 PM
hi there,

I've successfully installed MonoX for evaluation purposes as I need to build a Social Network site.

Everything works good when I freshly installed, however, there are some problems when I customize using admin CMS.
I then login using normal user, but i found that all gravatar for user is resetted.
I then check the related table -> dbo.[UserAvatar] and found that the avatar is having the same data?

Besides, I'm a bit confused on the following features:
1) Blog
-> How can user create their own blog?

2) Media Galleries
-> Thus far, I only found out that users can create album, but no media galleries.

I hope to get some answers from here as I'm not sure if full source code is required for customisation.
thanks.

This content has not been rated yet. 
88 Reputation 12 Total posts
marcus-tham

marcus.tham

5/18/2012 6:17:16 PM
Can anyone help me with the above?
Thank you.
This content has not been rated yet. 
88 Reputation 12 Total posts
khorvat

khorvat

5/18/2012 9:46:13 PM
Hi,

sorry for waiting on reply,  we should investigate the user avatar issue separately from this topic so please open a new one with the detailed explanation and it would be great if you could post the error logs too.

1. Blog - we have a separate WebPart module that allows you to enable Blog per person creation. Let me know if this suits you so I can provide you with the code.

2. Media Galleries

Let me quote myself
there two types of galleries built-in to the MonoX, Photo Gallery a more specialized one oriented exclusively to Photos, and there is a File Gallery a more generic one where you can upload any kind of file form videos and photos to documents.
 
Photo gallery sample can be found here, while File gallery sample can be found here. For the File gallery you should register and go to the Site Wall or your profile Wall, then try to upload any kind of files and you will get the File Gallery preview.

As for the customization you don't need source code to do any kind of customization you can do everything without the source code. Although it is much easier to perform the customization if you can take a peek at the source code.

Let me know if you need anything else.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
marcus-tham

marcus.tham

5/19/2012 4:25:40 PM
Dear Khorvat,

Thanks for your prompt reply.

1. Appreciate if you can enlighten me with the Webpart module for member / user's blog.

2. OK, I understand now for the File Gallery and thanks for your link.

3. While for the Gravatar / Avatar issue, I'll open a new topic and upload the log file as soon.

4. Thanks for your license info, if full source code is not required at the moment, I'll re-consider on the Priority Support Edition once I finished my evaluation.

Meanwhile, I need to know where should I go to kick-off the customization from the free monox, I read a post here, but I haven't have a time to follow it yet.
Can you provide me more information from how to kick-off my customization?

Really appreciate your help!



This content has not been rated yet. 
88 Reputation 12 Total posts
khorvat

khorvat

5/21/2012 10:12:42 AM
Hi,

we will provide you with the Blog Per User module /code soon, and as for the kick-off you can start wit the following:

Building a custom Web part
How to: Create a custom pager template
How to: Extend MonoX and ASP.NET Profile

API Reference Guid - Online
User Manual

If you have more questions let us know.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
imarusic

imarusic

5/21/2012 12:21:43 PM
Hi,

Regarding the users blog, below is a code that you can use during the registration. It will create a blog for user:

public void CreateBlogForUser(MembershipUser user)
       {
           BlogEntity blog = new BlogEntity(GuidExtension.NewSequentialGuid());
           blog.Name = user.UserName;
           blog.Slug = UrlSeoOptimizer.GetOptimizedString(blog.Name);
           blog.DateCreated = DateTime.Now;
           blog.UserId = new Guid(user.ProviderUserKey.ToString());
           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);
       }

Registration happens in Monox Membership editor. So you should use MembershipEditor's AccountCreated event and there create a blog for particular user.
More about extending the MonoX Membership editpr can be found here.

Regards
This content has not been rated yet. 
3016 Reputation 428 Total posts
marcus-tham

marcus.tham

5/21/2012 3:10:53 PM
Dear Khorvat & imarusic,

Thank you very much for your support.

I'll kick-off my project first and revert to you should I have any other inquiry. :D
This content has not been rated yet. 
88 Reputation 12 Total posts
khorvat

khorvat

8/15/2012 12:23:19 PM
Marcus, I'll close this topic, so please open a new one if you have further questions.
This content has not been rated yet. 
15993 Reputation 2214 Total posts