Show vertical bar in plugin

hape

Verified User
Joined
Jul 22, 2010
Messages
80
Location
Poland
Hello,

I write my own plugin for DirectAdmin. How to show in Plugin a vertical right bar?
This bar: bar.png

Do you have any functions for that?
Thank you.
 
Hello,

It's most likely that you need to adjust template's file for this: /usr/local/directadmin/data/skins/enhanced/user/plugin.html which by default uses wide header and footer:

PHP:
|?TREE=» <a class=tree href="/`PLUG_COMMAND`">`LANG_PLUGINS`</a>|
|?HELP_SECTION=`USER_HELPER`/|
|HTM_HEADER|
|HTM_HEADER_WIDE|

|OUTPUT|

|HTM_FOOTER_WIDE|
|HTM_FOOTER|

Compare it with subdomains.html:

PHP:
|LF_STANDARD|
|?TREE=» `ALL_DOMAINS_SELECT` » <a class=tree href="/CMD_SUBDOMAIN?domain=`domain`">`LANG_SUBDOMAINS`</a>|
|?HELP_SECTION=`USER_HELPER`/subdomains.html|
|HTM_HEADER_FULL|

|SUBDOMAINS|

<table class=list cellspacing=1 cellpadding=3>
<form name=info action="CMD_SUBDOMAIN" method="POST">
        <input type=hidden name=action value="create">
        <input type=hidden name=domain value="|DOMAIN|">
        <tr><td class=list colspan=2>|LANG_ADD_SUB| <input type=text name=subdomain size=8>.|DOMAIN|</td></tr>
        <tr><td class=listtitle align=right colspan=2><input type=submit value="|LANG_CREATE|"></td></tr>
</form>
</table>
|HTM_FOOTER_FULL|

You can use PHP code in template's files: https://help.directadmin.com/item.php?id=74 for more flexibility.

So feel free to test it on your own and update us with results.
 
Thank you.

Done,

edit file: /usr/local/directadmin/data/skins/enhanced/user/plugin.html

and change content to:
Code:
|HTM_USER_TOP|

|OUTPUT|

|HTM_USER_BOTTOM|
 
Back
Top