Skip to main content

cPanel Plugin Icons @2x

Comments

6 comments

  • cPanelAdamF
    You can indeed. We'll get the docs updated.
    0
  • Jake B.
    You can indeed. We'll get the docs updated.

    I assume it's a different process for SVG icons? I tried replacing my old png icon with an SVG and updating the "icon" parameter to the SVG filename, but got this error when installing: info [install_plugin] Running sprite_generator warn [install_plugin] sprite_generator returned a non-zero exit code, your icon may or may not appear.
    0
  • cPanelAdamF
    I assume it's a different process for SVG icons? I tried replacing my old png icon with an SVG and updating the "icon" parameter to the SVG filename, but got this error when installing:

    Should be the same process, though the icon parameter in install.json for your plugin will need to point at the SVG specifically (rather than relying on a fallback mechanism to find it). ...but before we go any further, can you tell me what version of cPanel & WHM your seeing this problem on? I am able to get a testing plugin (basically just adding links to reddit to the cPanel end-user interface) to install just fine with an SVG icons however the problem you're seeing could be tied to a specific version.
    0
  • Jake B.
    Should be the same process, though the icon parameter in install.json for your plugin will need to point at the SVG specifically (rather than relying on a fallback mechanism to find it). ...but before we go any further, can you tell me what version of cPanel & WHM your seeing this problem on? I am able to get a testing plugin (basically just adding links to reddit to the cPanel end-user interface) to install just fine with an SVG icons however the problem you're seeing could be tied to a specific version.

    Sorry for the late reply, must not have watched the thread. I'm running the latest it shows as available in the RELEASE tier (11.60.0.28) Here's the install.json:
    [ { "id": "sprout_sbm", "icon": "sprout.svg", "name": "SproutBox Backups", "order": 999, "group_id": "files", "type": "link", "uri": "sprout-sbm-redirect.php" } ]
    0
  • Jake B.
    Turns out it was an issue with the SVG. Got it reexported and it's working wonderfully, thanks Adam :)
    0
  • cPanelAdamF
    Turns out it was an issue with the SVG. Got it reexported and it's working wonderfully, thanks Adam :)

    You bet. Our docs team has updated that document as well to encourage the use of SVG now too.
    0

Please sign in to leave a comment.