Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge RSimoes's Avatar
    Join Date
    Oct 2008
    Location
    Austin, TX
    Posts
    18

    Default Custom Display Groups in cPanel

    I was interested in placing a custom cPanel plugin in its own x3 display group. Are these display groups hard-coded, or can I add one?

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by RSimoes View Post
    I was interested in placing a custom cPanel plugin in its own x3 display group. Are these display groups hard-coded, or can I add one?
    Very long story short, there is no good way to add your own custom display group at this time.

    One method I use essentially forces the group to always default to being at the top or bottom of the page. I just copy the HTML generated by API2 to trigger the appropriate CSS. I paste this code into index.html of my style.

    I can get you a code sample if you desire.

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge RSimoes's Avatar
    Join Date
    Oct 2008
    Location
    Austin, TX
    Posts
    18

    Default

    Thanks for the response, David. What you describe is exactly what I had in mind as a last resort.

  4. #4
    Member
    Join Date
    Mar 2004
    Posts
    815

    Default

    Quote Originally Posted by cPanelDavidG View Post
    Very long story short, there is no good way to add your own custom display group at this time....
    Assuming this is still the case. We have found a way to do this, however the title of the custom section disappears with every cPanel update. Thus my question:

    Do you see any harm in doing the following?

    chattr +i /usr/local/cpanel/base/frontend/x3/dynamicui.conf

  5. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by jols View Post
    Assuming this is still the case. We have found a way to do this, however the title of the custom section disappears with every cPanel update. Thus my question:

    Do you see any harm in doing the following?

    chattr +i /usr/local/cpanel/base/frontend/x3/dynamicui.conf
    +i can cause difficult to diagnose issues in the long-term (when one forgets what files were set to +i) and the cPanel update mechanism often ignores +i. I recommend creating a shell script /scripts/preupcp which backs up your dynamicui.conf and a /scripts/postupcp shell script to restore your backup. This way in the future if this causes abnormal behavior, the presence of preupcp and postupcp will remind you about the customization that was done.

    However, once we do support custom sections, I recommend using that support instead. This should only be treated as an interim solution.

  6. #6
    Member
    Join Date
    Mar 2004
    Posts
    815

    Default

    Thanks for the very good advice.

    Any idea about when cPanel will support custom groups? Seems like this has been in discussion for a great long while at this point.

  7. #7
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,514

    Default

    Just drop a .conf file in /usr/local/cpanel/base/frontend/x3/dynamicui/

    Add anything you like in the same format as /usr/local/cpanel/base/frontend/x3/dynamicui.conf


    Sample Line

    description=>MyGroup,file=>group_mygroup,group=>mygroup,groupdesc=>MyGroup,grouporder=>20,imgtype=>icon,subtype=>img,height=>32,type=>image,width=>32
    -Nick
    cPanel Inc.

    Need support? Submit a request here. These forums are not an official support channel.

  8. #8
    Member
    Join Date
    Mar 2004
    Posts
    815

    Default

    Quote Originally Posted by cpanelnick View Post
    Just drop a .conf file in /usr/local/cpanel/base/frontend/x3/dynamicui/

    Add anything you like in the same format as /usr/local/cpanel/base/frontend/x3/dynamicui.conf


    Sample Line

    description=>MyGroup,file=>group_mygroup,group=>mygroup,groupdesc=>MyGroup,grouporder=>20,imgtype=>icon,subtype=>img,height=>32,type=>image,width=>32
    cpanelnick, thanks a ton for this tip!

  9. #9
    Registered User
    Join Date
    Feb 2008
    Posts
    3

    Default

    Is there any way I can get the group to appear above the "preferences" group? I tried setting grouporder=>1 and grouporder=>0 to see if this worked, the group still shows up second though after preferences, thanks.

  10. #10
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by volex View Post
    Is there any way I can get the group to appear above the "preferences" group? I tried setting grouporder=>1 and grouporder=>0 to see if this worked, the group still shows up second though after preferences, thanks.
    grouporder dictates the default location.

    What you can do is set grouporder to a very negative number (e.g. -99) to ensure this group is always at the top. After you change the file, click "reset box order" located at the bottom of the cPanel interface's homepage, then reload the page in your browser to see your new default.

  11. #11
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,514
    -Nick
    cPanel Inc.

    Need support? Submit a request here. These forums are not an official support channel.

  12. #12
    Member Solokron's Avatar
    Join Date
    Aug 2003
    Posts
    779

    Question

    Got it working.


    vi /usr/local/cpanel/base/frontend/theme/dynamicui/dynamicui_support_menu.conf

    groupdesc=>Support,description=>grouping of support icons,file=>support_menu,group=>support_menu,grouporder=>-10,imgtype=>icon,subtype=>img,type=>image,height=>32,width=>32
    Last edited by Solokron; 01-03-2010 at 09:22 PM.
    ULTRA Website Hosting - 8 Years Hosting
    Shared | Reseller | Dedicated | Colocation

Similar Threads & Tags
Similar threads

  1. Replies: 3
    Last Post: 07-21-2011, 03:14 PM
  2. How to create custom groups/sections in cPanel?
    By Funkadelic in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 01-20-2010, 01:53 PM
  3. Replies: 6
    Last Post: 10-13-2009, 05:12 PM
  4. Questions about customizing cPanel groups and plugins (Help!)
    By Mander in forum Themes and Branding
    Replies: 0
    Last Post: 10-12-2009, 03:43 PM
  5. Replies: 1
    Last Post: 10-21-2003, 07:08 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube