Blog Author object

rated by 0 users
This post has 2 Replies | 2 Followers

Not Ranked
Posts 2
Points 25
Christian Schiffer Posted: Thu, Feb 22 2007 7:06 AM

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...

Smile

Top 25 Contributor
Posts 948
Points 14,515
CS Developers

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
Wyatt - The Geek Cowboy

  • | Post Points: 20
Not Ranked
Posts 2
Points 25

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

  • | Post Points: 5
Page 1 of 1 (3 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com