I am creating a new theme for cs 2007 beta 1 and am trying to display the picture of the current blogger on each bloggers blog instead of our companies logo. I need to find the object witch returns me the Author of the blog. Please help, I am working on a tight deadline...
I am glad to see that you are using the latest bits of Community Server, this makes the task very easy. Simply add the following line to your theme.Master file for the blog theme that you want to display the picture for.
<CSControl:UserAvatar UseAccessingUser="false" runat="server" LinkTo="Profile" />
This will display the owner's avatar image whenever someone is viewing the front page of the blog. Then when someone is viewing a particular post on the blog it will display the avatar of the post author. Therefore, if you have a blog called TestBlog with owner testUser. When you visit the homepage of TestBlog you will see testUser's picture. Additionally, if the admin user creates a post on TestBlog and you view that post you will see the avatar of admin.
To test with I placed the code in the ContentPlaceHolderID="bcr" placeholder on the default blog theme.
Wyatt Preul
Thank you very much for your reply, However I already found a different solution for my problem, not as elegang unfourtunaly. We use the blogg for our intranet so when and if the time comes that we will implement an internet solution with crossposting capabilities for our intranet blogg I will most certainly have time to implement your kind reply.
Thank you and kind regards
Christian Schiffer
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com