First time here? You may want to check out the blog archive, subscribe to the RSS feed, sign up for free email updates, or follow me on Twitter. Thanks for visiting!
There are some awesome ways to optimize your post footers, like related articles, subscription options, and social bookmarking icons allow readers to browse and share your content. Today I would like to share another ways you may be also interested in, display the author information at the bottom of each post. The following tutorial will provide you with the ability to show off the avatar, the biography with Ultimate DNN Blog Module - SunBlogNuke on your DNN website.
I’m sure that many of you may not be familiar with xhtml, css or vb.net but I assure you that this guide will walk you step by step through the process of installing this on your DNN website. It’s really just a bunch of copying and pasting. And if you have any questions simply leave a comment and I’ll help you out.
<% If Not Entry.AuthorProfile Is Nothing AndAlso Not String.IsNullOrEmpty(Entry.AuthorProfile.Bio) Then
<toolkit:Gravatar ID="gravatarImg" CssClass="avatar" runat="server" Size="50"
MaxAllowedRating="G" OutputGravatarSiteLink="false" EnableViewState="false"/>
<h4><a title="Posts by <%=Entry.Author%>" href="#"><%=Entry.Author%></a></h4>
Updated C# code for v5.0+ package:
if (Entry.AuthorProfile != null && !string.IsNullOrEmpty(Entry.AuthorProfile.Bio))
<img src="<%=AvatarUrl(50)%>" alt="<%=Entry.Author%>'s avatar" class="avatar" width="50" height="50" />
If you have any trouble working on it just leave me a comment and let’s figure it out together.
Thanks, i try to use that!
Is it possible to turn this into a widget?
No but you can try out the author widget module whether it fit your requirements. Hope it helps.
Click here to cancel reply.
Remember my details
Notify me of followup comments via e-mail
Senior developer for dnn solution & founder of ultimate dnn blog module - SunBlog(Nuke), which is the best publishing tool for DotNetNuke (DNN) websites, with a focus on simplicity, ease of extensibility, web standards and usability. It includes a great suite of modules for blogging on your DNN site.
Re: Integrating Twitter into Your DNN Blog
Is there any ERROR information in the Event Log page? It may be caused by some potential issues, such...
Hi, I followed your instructions and was able to get our customers tweets working exactly as you said...
Re: Integrated Social Graph into DNN Blog
Hi Matt, As the above code describe, the settings is the current portal settings so the email field...
By the way, I see above it might come from Portal Settings but I just can't seem to find where I can...
Hi - Can you tell us where settings.Email is coming from? Where it can be changed? Or what specific...
Re: How to Migrate DNN Blog Data of SunBlogNuke
Also to solve these 2 issues, please upgrade the latest package, which had been repackaged today with...
Please see the replies below: 1) Your website looks strange and actually I had solved it out but the...
Another two questions: 3) When I imported the file from the old site, all the post dates changed to the...
Thanks for the directions, Baldwin. Two things: 1) On my old site, I'm running an old version of Sun...
Re: Turn Content Slider Widget into a jQuery Carousel
It is in the widget settings panel and should be placed in the above section of "Available Tokens (Post...
The opinions expressed here in are my own personal opinions and do not represent my employer's view in anyway.
© Copyright 2009 - 2013
Back to top