Wednesday, May 11, 2005

Showing full names for post


I looked through all of the templates that are available for pLog, and I noticed that all of them don't show the full name for the authors of the posts.  I made the following change to allow this to work.


Change:



<span class="date">
{$postOwner->getUsername()}
| {$locale->formatDate($postDate,"%d %B, %Y %H:%M")}
</span>


To:



<span class="date">
{if strlen($postOwner->getFullName()) > 0 }
{$postOwner>getFullName()}
{else}
{$postOwner->getUsername()}
{/if}
| {$locale->formatDate($postDate,"%d %B, %Y %H:%M")}
</span>

No comments:

Post a Comment

Empowering Family Legacy: How I Transitioned to Self-Hosting with Gramps Web

For several years now, I've been maintaining a genealogy website containing information from both my and my wife's family history. O...