More control over displayed features in the skin

interfasys

Verified User
Joined
Oct 31, 2003
Messages
1,821
Location
Switzerland
List of tokens for if-then-else

|*if USERSPAM="ON"| |LANG_SPAMASSASSIN|
|*endif|

is a nice start, but we need more of them. No point showing a user the mailing list entry if we didn't activate this feature for him.

It's a bad user experience. The user has to click on the feature to get a message telling him that he has no access.

We know the skin supports if-then-else, but we need a list of items that can be tested in the if statement.

Tokens in user.conf don't work!

We also need CUSTOM_ITEM_ 1 to 4 to be available to the user cp so that we can do something with the extra options that we have added to their package.
 
Last edited:
If all of the currently hard coded links were put in the skin, it would finish up the language pack implementation aswell as allow the ability of more precise plugin placement by modifying and/or replacing existing links.
 
Last edited:
Ditto! We need to see this already. While I like the skin it can and will become a mess with plugins. We need to add custom items and the ability to tuen items on and off via the gui.
 
Wish granted!
http://www.directadmin.com/features.php?id=518

Let's see if there are still some missing switches.

I've found a bug in enhanced already:

In user/show_domain.html
should be
Code:
||*if USERDATABASEMAX!="0"|
			<a href="|HTTP|://|HOSTNAME|/phpmyadmin">|LANG_PHPMYADMIN|</a><br />
|*endif|

In template_user_bottom.html
should be
Code:
|*if USEREMAILMAX!="0"|
        <tr>
          <td width="33%" class=bar-row1>|LANG_EMAILS|</td>
          <td width="33%" class=bar-row1 align="center">|USEREMAIL|</td>
          <td width="34%" class=bar-row1 align="center">|USEREMAILMAX|</td>
        </tr>
|*endif|
|*if USERFTPMAX!="0"|
        <tr>
          <td width="33%" class=bar-row2>|LANG_FTP_ACCOUNTS|</td>
          <td width="33%" class=bar-row2 align="center">|USERFTP|</td>
          <td width="34%" class=bar-row2 align="center">|USERFTPMAX|</td>
        </tr>
|*endif|
|*if USERDATABASEMAX!="0"|
        <tr>
          <td width="33%" class=bar-row1>|LANG_DATABASES|</td>
          <td width="33%" class=bar-row1 align="center">|USERDATABASE|</td>
          <td width="34%" class=bar-row1 align="center">|USERDATABASEMAX|</td>
        </tr>
|*endif|
 
Last edited:
Back
Top