Jump to content

Hi. Try adding something like this to your post template:

{{$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}}

Credit to SeNioR

 

User Feedback

Recommended Comments

Комментариев пока нет

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.


Guest
Добавить комментарий...