Jump to content
Sign in to follow this  
najaru

Impedire la visualizzazione dello storico nomi a chi non è dello staff in IP.Board

Recommended Posts

najaru

Ecco una spiegazione fatta da AndyF su come impedire la visualizzazione dello storico nomi a chi non è dello staff in IP.Board

E' una semplice modifica della skin.

ACP > Look / Feel > Skin Manager > (scegliere la skin) > Manage Templates / CSS > Profiles > dnameWrapper

trovare...

<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>

e cambiare con

<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>

e salvare

Quindi ecco come lo vedranno gli appartenenti allo staff:

dname_restrict_1.png

e come lo vedranno gli utenti normali:

dname_restrict_2.png

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Crea Nuovo...

Important Information

By using this site, you agree to our Terms of Use.