Jump to content
WebFlake
  • 0

disable "User tool", "Display name history"


Diconfrost VaNz

Question

2 answers to this question

Recommended Posts

  • 0
  • Administrator

Assuming you just want to hide it for members and such...

 

ACP > Look & Feel > (choose skin) > Manage Templates / CSS > Profiles > dnameWrapper

 

Find...

<if test="hasDnameHistory:|:is_array($records) AND count($records)">
                {parse striping="dname" classes="row1,row2"}
        <foreach loop="records:$records as $row">
                <tr class='{parse striping="dname"}'>
                        <td>{$row['dname_previous']}</td>
                        <td><strong>{$row['dname_current']}</strong></td>
                        <td class='altrow'>{parse date="$row['dname_date']" format="short"}</td>
                </tr>
                </foreach>
        <else />
                <tr>
                        <td colspan='3' class='no_messages'>{$this->lang->words['dname_no_history']}</td>
                </tr>
    </if>
 
 
Replace with...
 
<if test="hasDnameHistory:|:is_array($records) AND count($records)">
                <if test="$this->memberData['g_is_supmod'] == 1">
                {parse striping="dname" classes="row1,row2"}
        <foreach loop="records:$records as $row">
                <tr class='{parse striping="dname"}'>
                        <td>{$row['dname_previous']}</td>
                        <td><strong>{$row['dname_current']}</strong></td>
                        <td class='altrow'>{parse date="$row['dname_date']" format="short"}</td>
                </tr>
                </foreach>
        <else />
                <tr>
                        <td colspan='3' class='no_messages'><div align='center'>Access Denied</div></td>
                </tr>
    </if></if>

 

This will display an Access Denied message in place of the display name history for any usergroup that is not a Super Moderator or Administrator.

 

Otherwise, if you want to hide it for everyone simply comment out the block of code I instructed you to find.

  • Upvote 2
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...