The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Creating a new field in whm

Discussion in 'cPanel Developers' started by somepoortech, Feb 18, 2014.

  1. somepoortech

    somepoortech Registered

    Joined:
    May 9, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. somepoortech

    somepoortech Registered

    Joined:
    May 9, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    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.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  5. somepoortech

    somepoortech Registered

    Joined:
    May 9, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    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.
     
  6. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    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:

    Code:
    /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:

    List Accounts

    Here's some info on creating WHM plugins:

    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.
     
Loading...

Share This Page