Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    16,582
    Likes Received:
    439
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. KostonConsulting

    KostonConsulting Well-Known Member

    Joined:
    Jun 17, 2010
    Messages:
    255
    Likes Received:
    1
    Trophy Points:
    68
    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]#
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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,569
    Likes Received:
    45
    Trophy Points:
    308
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice