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!

WHM Plugin Icons

Discussion in 'cPanel Developers' started by morissette, Sep 21, 2011.

  1. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Austin, TX
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,339
    Likes Received:
    402
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Sorry, I've edited my post.


    You want to add an icon to the header of WHM to a plugin?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Austin, TX
    cPanel Access Level:
    Root Administrator
    That is for cPanel Plugins, this is a WHM plugin, trying to figure out if the icon needs to be defined in defheader()
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Austin, TX
    cPanel Access Level:
    Root Administrator
    that is correct.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Austin, TX
    cPanel Access Level:
    Root Administrator
    Figured out thanks to Joshua Brown, thank god for sitting next to him. Instructions:

    Add to /usr/local/cpanel/whostmgr/docroot/themes/x/command2 and run /usr/local/cpanel/whostmgr/docroot/themes/x/rebuildhtml
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. kalid

    kalid Active Member

    Joined:
    Jul 26, 2011
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    56
    Location:
    > America/Mexico_City
    cPanel Access Level:
    Root Administrator
    The problem here is when cPanel is updated automatically, lose your changes.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. MattDees

    MattDees Well-Known Member

    Joined:
    Apr 29, 2005
    Messages:
    416
    Likes Received:
    1
    Trophy Points:
    243
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You can add a the icon filename as a final argument in the #WHMADDONS. This filename should correspond to a file in /u/l/c/whostmgr/docroot/icons
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Austin, TX
    cPanel Access Level:
    Root Administrator
    So, this should be in command2 but under WHMADDONLIST? or where are you referring to #WHMADDONS?

    item:Firewall Administration:/cgi/firewall.cgi:fire.gif:ACL=all
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Austin, TX
    cPanel Access Level:
    Root Administrator
    cPanelMatt


    #!/usr/bin/perl
    ##############################
    ####### Matthew Harris #######
    ### WHM Firewall Plugin ###
    ##############################
    #WHMADDON:hgfire:HG Firewall Administration:hgfire.gif

    I added the image as such ^^^

    However no image is loaded... ideas?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. kalid

    kalid Active Member

    Joined:
    Jul 26, 2011
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    56
    Location:
    > America/Mexico_City
    cPanel Access Level:
    Root Administrator
    This is wrong...

    This is okay

    Code:
    #!/usr/bin/perl
    ##############################
    ####### Matthew Harris #######
    ### WHM Firewall Plugin ###
    ##############################
    #WHMADDON:[b]hgfire[/b]:HG Firewall Administration
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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