Quote:
Originally Posted by ThaEbilSlaya
Hello i had v1.0 on my site and i just recently today upgraded to the new version.
But before i upgraded and even with the new upgrade a normal registered user is able to see the warn info in post on the forums.
I am not very familiar with any of the coding etc i just follw directions i did every as said for the v1.0 and also everything for the new upgrade but it still shows for a normal registered user that has no mod access.
Can anyone help me out or point me in the right direction to try and correct this problem.
Thank You
|
How exactly do you want this handled?
The code below will show the "Warn Username" only to the moderators of a particular forum and the administrator. It will show "View Username warnings" to all moderators and the administrator. If you have more than one administrators, you need to play with the last if, let me know if you need help.
Use it at your own risk, I am not exactly an expert in this thing:
In postbit template, find
HTML Code:
<if condition="$show['postcount']">#<a
Above that, insert the code below, instead of the code suggested in the hack.
HTML Code:
<!-- checks for warning system -->
<if condition="$post[usergroupid]!=6 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])"><a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a> ?
</if>
<if condition="$post[usergroupid]!=6 AND $bbuserinfo[groupid] == 7">
<a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[username]'s Warnings</a> ?</if>
<if condition="$post[usergroupid]!=6 AND $bbuserinfo[userid] == 1">
<a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[username]'s Warnings</a> ?</if>
<!-- end of warning system -->
I hope this is what you want.
John