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.
<%=Entry.FooterSnippet%>
<% If Not Entry.AuthorProfile Is Nothing AndAlso Not String.IsNullOrEmpty(Entry.AuthorProfile.Bio) Then %> <div class="authorinfo"> <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> <%=Entry.AuthorProfile.Bio%> </div> <% End If %>
Updated C# code for v5.0+ package:
<% if (Entry.AuthorProfile != null && !string.IsNullOrEmpty(Entry.AuthorProfile.Bio)) { %> <div class="authorinfo"> <img src="<%=AvatarUrl(50)%>" alt="<%=Entry.Author%>'s avatar" class="avatar" width="50" height="50" /> <h4><%=Entry.AuthorLink%></h4> <%=Entry.AuthorProfile.Bio%> </div> <% } %>
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.
I'm trying to get the bio to show up for a host user but it comes up blank. Can you replicate this issue?
Please make sure that the bio field of this current host user is visual to public(you should find it in the profile settings of the user) and share your link with us. Thanks.
Senior developer for dnn solution & founder of ultimate dnn blog module - SunBlogNuke, 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: DNN7 Blog Integrated with ModuleSearchBase
B- please FIX the bugs...driving me nuts!!!! Error: Edit blog entry is currently unavailable. DotNet...
-- kkuhns
Re: Fighting DNN Bugs Ⅱ: Why Can't Remove Google Analytics
Thanks a lot for your reference and it should be helpful for community guys. :)
-- Baldwin
please ensure you log any bugs to http://support.dnnsoftware.com - i searched and couldnt see this one...
-- Cathal
Re: Build DNN Rotator with GalleryPlus
How do you place the gallery within a blog entry. I saw in the below demo that a token was used ([SL...
-- Mary
Re: Enhance DNN Article Footers with Author Profiles
Please make sure that the bio field of this current host user is visual to public(you should find it...
I'm trying to get the bio to show up for a host user but it comes up blank. Can you replicate this issue...
-- Lucas
Re: [Kudos]DotNetNuke Blog Module In Depth Review
Yes, the latest package is absolutely compatible well with DNN7 and the performance was enhanced a lot...
Is it compatible with DNN 7
-- swayam
Re: SunBlogNuke 6.0 Technology Preview
No, actually the v6.0 had been available to downlaod for upgrade - http://www.sunblognuke.com/blog/entryid...
this article says that version 6.0 is not for production use. the article is from may 2013... is sun...
-- pekai
The opinions expressed here in are my own personal opinions and do not represent my employer's view in anyway.
© Copyright 2009 - 2024