You're welcome
Tayeb.
Make sure you read the other posts
TCB especially sv1cec, it's not as easy as just running an installer, but it's not hard to do. I'm not a coder at all, but just reading and experimenting will give you the result you want.
This post seems to be the most important one for you. It did help me a lot
https://vborg.vbsupport.ru/showpost....&postcount=192
His code only allows moderators to warn user in their own forum, and admins being global mods in all forums.
Not really my business, but I think you want to give this only to moderators/supmods. You risk a civil war on your site when people who are not staffmembers can warn.
If you need it, just edit the code from sv1cec:
HTML Code:
<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])"><a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a> ?
</if>
to something like
HTML Code:
<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND ($bbuserinfo[userid]== 10 OR can_moderate($forum[forumid], '', $bbuserinfo[userid]))"><a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a> ?
</if>
Where you should replace 10 by the ID of the group you want to give warn.