Skip to main content

Creating a new field in whm

Comments

5 comments

  • cPanelMichael
    Hello :) Could you elaborate on which part of the documentation you have questions about? Note that the following document is a good place to start: Intro to cPAddons Thank you.
    0
  • somepoortech
    I'm not 100% on this really. What I'm trying to do is create a new field that would be attached to an account and viewable in the account list. If I need to create an Addon to do this so be it. I would love if you could point me at someone who has already done this or a better / built in way.
    0
  • cPanelMichael
    The document you referenced is for the cPAddons system. The cPAddons system allows a script to be packaged up so that it can be installed on a user's website, upgraded, uninstalled and otherwise managed from cPanel and WebHost Manager. I'm not sure that you are seeking to develop something like that. Could you elaborate on the specific location or option that you want to customize? Thank you.
    0
  • somepoortech
    So on the list accounts page where whm users can see what accounts they own I need to add another column called 'Account Number' so I can see relate a website to a number to ID them in other systems. This is not something the website user accounts would need to see.
    0
  • vanessa
    In short, you can't change the existing feature in WHM. The script that generates "List Accounts" is part of WHM's compiled CGIs. It's called through: /usr/local/cpanel/whostmgr/bin/whostmgr4 listaccts
    What you can do, if you have the time, knowledge, and patience, is create your own WHM plugin to customize the display. All the data in List Accounts is accessible via API: [url=http://docs.cpanel.net/twiki/bin/view/SoftwareDevelopmentKit/ListAccounts]List Accounts Here's some info on creating WHM plugins: [url=http://docs.cpanel.net/twiki/bin/view/SoftwareDevelopmentKit/CreatingWhmPlugins]How to Create a WHM Plugin If this isn't something you fancy doing yourself, you can consider hiring someone to do it for you - I'd imagine that anyone vaguely familiar with the APIs and structure of WHM plugins could do this easily.
    0

Please sign in to leave a comment.