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.

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:
    16
    Location:
    Austin, TX
    cPanel Access Level:
    Root Administrator
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,453
    Likes Received:
    195
    Trophy Points:
    63
    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?
     
  3. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    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()
     
  4. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Austin, TX
    cPanel Access Level:
    Root Administrator
    that is correct.
     
  5. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    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
     
  6. kalid

    kalid Active Member

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

    MattDees cPanel Product Owner
    Staff Member

    Joined:
    Apr 29, 2005
    Messages:
    417
    Likes Received:
    1
    Trophy Points:
    18
    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
     
  8. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    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
     
  9. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
  10. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    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?
     
  11. kalid

    kalid Active Member

    Joined:
    Jul 26, 2011
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    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
     
Loading...

Share This Page