.pdf)
WHM Plugins
x3 theme provided the ability to dynamically add icons and groups of icons in the cPanel interface. New groups and icons can be created to appear on a per-server or per-reseller basis.
dynamicui files that can be added in a variety of locations:
x3.
x3.
dynamicui files are loaded in the following order:
dynamicui file, the previous file key will be overwritten.
An example of a dynamicui.conf file can be found in the following location: dynamicui_$var.conf or dynamicui.conf file that describes the link to the custom feature you are adding. It should resemble the following:
description=>$LANG{'Webmail'},if=>!$ENV{'CPRESELLER'},feature=>webmail,file=>
webemail,group=>mail,height=>32,imgtype=>icon,itemdesc=>$LANG{'ASIWebmail'},
subtype=>img,type=>image,url=>webmaillogin.html,width=>32,itemorder=>2,searchtext=>
$LANG{'webmail-searchtxt'}
=> to associate keys and values. To view a list of required key pairs, click
here. here to hide. | Key | Type | Value | Example |
|---|---|---|---|
| itemdesc | string | The name of the item as it would appear in the cPanel interface. |
Support |
| itemorder | integer | Describes the location of the item in the cPanel interface. |
10000 |
| group | string | The icon group in which the item will appear. | group_pref |
| url | string | The path to which the item will link. | http://support.example.com |
| description | string | The item description displayed in the Branding Editor. |
support link |
| if optional |
string | A conditional that allows you to check configuration settings and determine whether or not the item should appear to the user. This key is useful for access control. |
!$CONF{'skipawstats'} $CPDATA{'FEATURE-AWSTATS'} |
| searchtext optional |
string | Additional keywords used with the x3 theme's Quick Find feature. |
support |
| feature optional |
string | Name of a feature the account must have access to in order for the item to be displayed. | support |
| acontent optional |
string | Additional attributes to include in the item's <a> HTML tag. |
target="_blank" |
| onclick optional |
string | Any Javascript that should execute when the item's link is clicked. | show_optionselect('leechprotect'); return false; |
| module optional |
string | Specifies a module in /usr/local/cpanel/Cpanel/ without which the item will not appear. | ImageManager |
http://support.example.com, you would need to add the following lines to the appropriate .conf file:
itemdesc=>Support, itemorder=>-100, group=>group_pref, url=>http://support.example.com, description=>support link, imgtype=>icon, subtype=>img, type=>image, file=>support, height=>32, width=>32
dynamicui files are processed on a per-line basis, meaning that the file would need to have the line breaks stripped to resemble the following:
itemdesc=>Support,itemorder=>-100,group=>group_pref,url=>http://support.randomhosting company.com,description=>support link,imgtype=>icon,subtype=>img,type=>image, file=>support,height=>32,width=>32
.png, .gif, and .jpg. .png is recommended.
x3 interface requires a few keys and associated values. For a list of required key pairs, click
here. here to hide. | Key | Type | Value | Example |
|---|---|---|---|
| groupdesc | string | The name of the group as it should appear in the cPanel interface. |
Custom Group |
| group | string | The name of the group as used for associated icons. group_ prefix. |
pref |
| grouporder | integer | A weight indicating where the group should appear in the cPanel theme. |
1 |
| description | string | The group description which will appear in the x3 Branding Editor. |
Custom Group |
| Key | Type | Value | Example |
|---|---|---|---|
| imgtype | string | Always set this key to icon. |
icon |
| subtype | string | Always set this key to img. |
img |
| type | string | Always set this key to image. |
image |
| file | string | The name of the icon file, which should reside in /usr/local/cpanel/base/frontend/$theme/branding/ |
support |
| height | integer | The height of the icon.x3 theme, always set this value to 32. |
32 |
| width | integer | The width of the icon.x3 theme, always set this value to 32. |
32 |
dynamicui file:
groupdesc=>Support, description=>Grouping for support icons, grouporder=>-10, group=>support_menu, imgtype=>icon, subtype=>img, type=>image, file=>support, height=>32, width=>32
dynamicui files are processed on a per-line basis, meaning that the file would need to have the new lines stripped to resemble the following:
groupdesc=>Support,description=>Grouping for support icons,grouporder=>-10,group=> support_menu,imgtype=>icon,subtype=>img,type=>image,file=>support,height=>32, width=>32,
dynamicui file loaded after the one that creates the icon or group you wish to hide. This new entry contains a "skipobj" key with "1" as a value. For example:
file=>filemanager,skipobj=>1