Jump to content

Format usernames


OctoDev

Recommended Posts

In the postContainer I found out that  {$comment->author()->link( $comment->warningRef() )|raw} is the username of the user that posted a reply and topic. How can I make it formatted?

 

This is the group format, but for some reason its not outputting the name - rather the group.. How can I make it format the name like that?
{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->formattedName" raw="true"}

 

just instead of having that group here, it will only format name with group format:
http://i.imgur.com/xrGto30.png 

 

Link to comment
Share on other sites

Example:

{template="userLinkFromData" group="global" app="core" params="$row->author()->member_id, $row->author()->name, $row->author()->members_seo_name, $row->author()->member_group_id"}

Change variables.

​I tried using exact your code but it didn't work, white page. 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...