Quote:
Originally Posted by m-tuning
Very Nice!
I made a dutch version, hope you don't mint:
|
It's ok, I'm planning to phrase this hack and I'll make use of your Dutch version then
Quote:
Originally Posted by hornstar1337
Thanks, just wondering who will have permission to view the ban logs tho? can you set that for only staff?
|
Quote:
Originally Posted by m-tuning
Yes, i need that too.
Have been editing the plugin but I don't get it to work properly.
|
There is no control to do this, but I'm probably going to add one.
Currently, you need to edit the templates.
You need to edit the
memberinfo_block_userlog template.
Find this:
Code:
<if condition="$block_data[baninfo]!=''">
<fieldset class="statistics_group">
<legend>Bans</legend>
<ul class="list_no_decoration">
$block_data[baninfo]
</ul>
</fieldset>
</if>
and change it to
Code:
<if condition="is_member_of($bbuserinfo, X, Y, Z)"><if condition="$block_data[baninfo]!=''">
<fieldset class="statistics_group">
<legend>Bans</legend>
<ul class="list_no_decoration">
$block_data[baninfo]
</ul>
</fieldset>
</if>
<else />
Ban Logs are only visible for staff members.
</if>
This will display the message "Ban Logs are only visible for staff members." to all usergroups which can't see the logs, you can change it to whatever you want.
Be sure to replace the X.Y,Z in
Code:
<if condition="is_member_of($bbuserinfo, X, Y, Z)">
with the usergroup numbers which are allowed to see the logs.