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 Seamless Integration: Navigating Unexpected Hubitat Device Queries and VLAN Challenges for a Smoother Home Automation Experience

During my network debugging efforts , I came across an intriguing observation related to the two Hubitat devices on our network. The logs b...