Webadmin - remove tabs

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
agatha
Normal user
Normal user
Posts: 49
Joined: 2015-10-30 11:13

Webadmin - remove tabs

Post by agatha » 2015-10-30 11:31

Hello together,

in webadmin, I would like to remove some tabs for administration level "user".

E.g. all users with administration level "0" shall not be able to change their signature. For this behalf I could either remove the whole tab or I could disable the accordant field.

I already removed the "external account" by editing the file "include_treemenu.php". But I could not find, where to do this with single tabs (or fields).

Thanks a lot
Agatha

User avatar
mattg
Moderator
Moderator
Posts: 21025
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Webadmin - remove tabs

Post by mattg » 2015-11-01 03:30

In the file

./phpwebadmin/hm_account.php remove the lines 248 >> 278

ie remove this bit.

Code: Select all

      <div class="tabbertab">
          <h2><?php EchoTranslation("Signature")?></h2>       
   
        <table border="0" width="100%" cellpadding="5">
            <tr>
               <th width="30%"></th>
               <th width="70%"></th>
            </tr>   
            <?php
               PrintCheckboxRow("SignatureEnabled", "Enabled", $SignatureEnabled);
            
            ?>

            <tr>
                <td valign="top"><?php EchoTranslation("Plain text signature")?></td>
                <td>
                    <textarea cols="50" rows="4" name="SignaturePlainText"><?php echo PreprocessOutput($SignaturePlainText)?></textarea>
                </td>
            </tr>
            <tr>
                <td valign="top"><?php EchoTranslation("HTML signature")?></td>
                <td>
                    <textarea cols="50" rows="4" name="SignatureHTML"><?php echo PreprocessOutput($SignatureHTML)?></textarea>
                </td>
            </tr>   
         </table>
      </div>       
That will remove that tab form ALL levels of view.


If you need the tab for higher level users then we will need to do something else (put an If statement just before that line)

You should also not that everytime you upgrade hMailserver, you will need to make this change to the PHPWebAdmin
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

agatha
Normal user
Normal user
Posts: 49
Joined: 2015-10-30 11:13

Re: Webadmin - remove tabs

Post by agatha » 2015-11-02 09:35

That was exactly what I was looking for.

Thank you very much.

Post Reply