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

Unlocking Raspberry Pi Potential: Navigating Network Booting Challenges for Enhanced Performance and Reliability

I've set up several Raspberry Pis around our house for various projects, but one recurring challenge is the potential for SD card failur...