If you’re a web host and you’d like direct links from cPanel into your billing or support system this tutorial should give you all the information you need.
We will build some icons into a new group that only your direct (root owned) customers can see, this means the customers of your resellers won’t be affected and you’ll be able to keep your reseller hosting white label. If you want to create icons which everyone can see (including users of your resellers) just skip the Features List section at the end.
For this tutorial you will need root access to your cPanel/WHM powered server, you’ll also need to know how to use SSH, have a copy of WinSCP or similar, have a text editor like textpad or notepad.
Before you create the custom icons in cPanel you should create a new group (or box) to put them in. If you want to put your custom icons into an existing group or box you can skip this step.
Creating the group is simple, we just create a new dynamicui config file in a specific directory.
My menu group will be called ‘Evohosting’ so I will call my config file dynamicui_evohosting.conf
Paste the following: description=>MyGroup,file=>group_mygroup,group=>mygroup,groupdesc=>MyGroup, grouporder=>20,imgtype=>icon,subtype=>img,height=>32,type=>image,width=>32
At the moment your new group will be called ‘MyGroup’, if you’re familiar with Linux then the line above should be more or less self explanatory.
Note: all of the code above should be on one line, make sure Nano doesn’t paste it into two lines.
Have a play about and keep resaving that file until you have it how you want, however it won’t be displayed until you have put an icon into there.
As my group will be called Evohosting, this is how I’ll be editing that line: description=>Evohosting,file=>group_evohosting,group=>evohosting,groupdesc=>Evohosting, grouporder=>1,imgtype=>icon,subtype=>img,height=>32,type=>image,width=>32
Now we have created a group, lets put an icon into it. We’ll do this by creating a custom cPanel plugin. Create / find an image you’d like to use for your icon, it needs to be in PNG (not with a transparent background) or a JPEG. It also needs to be square, but it can be any size as cPanel will resize it for you.
Fill in the form and upload your image to this web page.
The form isn’t very helpful so here are some hints for it:
Once you have everything how you want it, press Submit to download your plugin file.
The file you have downloaded is just a text file, open it with a text editor such as TextPad.
From here you can tweak the file how you want, for my tutorial I just want to tweak one line, this is because I want to put my icon into the ‘Evohosting’ custom group I created earlier.
Replace with: group:Evohosting
Once you’re done, save the file, you can edit it on the server using nano or vim too.
Next you need to upload that plugin file to the server, I use WinSCP as it’s very quick. I’ll be uploading it to /~/ directory. Stuck? Upload it to a user’s home directory by using their FTP account, then in SSH cd /home/user/dir/ then chown root:root filename and mv filename /~/
To install the plugin takes only a moment, for this tutorial I have named my plugin evobilling.cpanelplugin – replace that with whatever filename you ended up with. Do this in SSH:
Now your new icon/plugin has been created, unless you screwed up the plugin file (easily fixable) or the dynamicui_ config file (also easily fixable) then the custom cPanel icon should be visible to all users of your cPanel as long as they use x3. Login as a user and check.
If it’s not visible then check the two files to make sure the icon is in the correct group (I would guess the group name may be case sensitive):
If you want to change the icon then it’s also very easy, do the following in SSH:
Once uninstalled you can edit the .cpanelplugin file and re-install it (step 4) or even re-generate one (step 1) and re-upload it (step 2).
Once you have your group and icons how you want them you can setup some feature lists.
Remove the Icons/Plugins from all the other feature lists.
Add your users to your feature list.
Now you should have your icons in only the feature lists you want them, so you can continue to provide white-label reseller services to your customers.
If you need to build an ecommerce website to sell computers, tablets, TVs, phones, and cameras, then you have to check out these Prestashop themes. All of these Prestashop...
Superb fast support and exceptional service, thank you! In particular Tim and Andy go the extra mile, thanks guys. Patient polite and professional :-) I had decided to try out another hosting company, which lasted about 24 hours before I realised that I was not going to get the same level of service from them that Evohosting provides. Without a glitch I was back with Evohosting... and putting it all down to experience! Highly recommended.