اینم کد درستش!
{{$addWarningUrl = \IPS\Http\Url::internal( "app=core&module=system&controller=warnings&do=warn&id={$comment->author()->member_id}", 'front', 'warn_add', array( $comment->author()->members_seo_name ) );}}
{{$wr = base64_encode( json_encode( array( 'app' => 'forums', 'module' => 'forums-comment' , 'id_1' => $comment->topic_id, 'id_2' => $comment->pid ) ) );}}
{{$addWarningUrl = $addWarningUrl->setQueryString( 'ref', $wr );}}
{{if member.modPermission() and $comment->author()->member_id != member.member_id }}
<li data-ipsTooltip title="{lang="warn_user_title"}" class="ipsType_light"><a href="{$addWarningUrl}" data-ipsDialog data-ipsDialog-title='{lang="warn_user"}'><i class="fa fa-exclamation-triangle"></i></a></li>
{{endif}}