OctoDev Posted March 28, 2015 Share Posted March 28, 2015 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 More sharing options...
The Jimmo Posted March 28, 2015 Share Posted March 28, 2015 What do you want to format it as? Are you looking to change the DOM or style? Link to comment Share on other sites More sharing options...
OctoDev Posted March 30, 2015 Author Share Posted March 30, 2015 What do you want to format it as? Are you looking to change the DOM or style? I want to format them so the usernames are like formatted with their group color/customizion. Link to comment Share on other sites More sharing options...
Adriano Faria Posted March 30, 2015 Share Posted March 30, 2015 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. Link to comment Share on other sites More sharing options...
OctoDev Posted March 31, 2015 Author Share Posted March 31, 2015 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 More sharing options...
naXe90 Posted March 31, 2015 Share Posted March 31, 2015 {template="userLinkFromData" group="global" app="core" params="$comment->author()->member_id, $comment->author()->name, $comment->author()->members_seo_name, $comment->author()->member_group_id"} http://prntscr.com/6npekz Link to comment Share on other sites More sharing options...
OctoDev Posted March 31, 2015 Author Share Posted March 31, 2015 {template="userLinkFromData" group="global" app="core" params="$comment->author()->member_id, $comment->author()->name, $comment->author()->members_seo_name, $comment->author()->member_group_id"} http://prntscr.com/6npekzCheers mate. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.