This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

Paul's Time Sink

| Main | Albums |

Showing full names for post

Paul Westbrook | 11 May, 2005 14:20

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>

Powered by LifeType
Design by Book of Styles