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.

How to add something to WHM "Manage Plugins"?

Discussion in 'cPanel Developers' started by donda, Nov 23, 2012.

  1. donda

    donda Member

    Joined:
    Nov 23, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello.

    There's the cPanel -> Manage Plugins section in the WHM control page. Is there a way to add a cPanel plugin to the list on the page? Is it possible to add anything there at all?

    Documentation seems to say nothing on the matter.

    Thanks in advance.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,471
    Likes Received:
    199
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. KostonConsulting

    KostonConsulting Well-Known Member

    Joined:
    Jun 17, 2010
    Messages:
    255
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    San Francisco, CA
    cPanel Access Level:
    Root Administrator
    The only WHM interface to add functionality that I'm aware of is creating a WHM script in /usr/local/cpanel/whostmgr/docroot/cgi:

    CreatingWhmPlugins < SoftwareDevelopmentKit < TWiki

    I don't see any public code that addresses the 'manage plugins' section and it appears that these interfaces are referenced only from the whm binaries:

    Code:
    [/usr/local/cpanel/whostmgr]# grep -R 'munin' *
    Binary file bin/whostmgr2 matches
    Binary file bin/whostmgr matches
    Binary file bin/xml-api matches
    Binary file bin/whostmgr5 matches
    [/usr/local/cpanel/Whostmgr]# grep -R 'munin' *
    [/usr/local/cpanel/Whostmgr]#
    
     
  4. donda

    donda Member

    Joined:
    Nov 23, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Yes, that's what i've tried to do before asking here. :) WHM plugins show up in their own section in the WHM interface, and grep is of not so much help unfortunately. cPanel plugins that are suggested above, show up in a different way as well. Seems that the "Manage Plugins" section is not for third party developers. That's a pity.
     
  5. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    The Manage Plugins functionality retrieves the list of available plugins from our mirrors. Could you provide an example of what you are attempting to accomplish?
     
  6. donda

    donda Member

    Joined:
    Nov 23, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I see. Well, in a nutshell, there's a cPanel plugin that should be turned on/off from the WHM interface, and separately for every cPanel account, if possible. Right now the plugin is implemented so that it appears in a list of themes available to an account. It does the job (at least so far), but it's not very obvious way to manage plugins from the user's point of view.
     
Loading...

Share This Page