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!

Custom Jquery script in webmail

Discussion in 'User Experience' started by Anton-Vodien, Nov 13, 2017.

  1. Anton-Vodien

    Anton-Vodien Registered

    Joined:
    Nov 13, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Philippines
    cPanel Access Level:
    Root Administrator
    As the title states I'm trying to add a custom javascript code. into my cpanel. I've managed to do it by creating global_footer.html.tt under /var/cpanel/customization/includes.

    It's working great in my cPanels however when I view a mail interface in Webmail my custom script doesn't get included there. What am I missing and how should I approach this.

    Thanks in advance!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Anton-Vodien

    Anton-Vodien Registered

    Joined:
    Nov 13, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Philippines
    cPanel Access Level:
    Root Administrator
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I can confirm that using a global header or footer include (e.g. global_footer.html.tt) within the /var/cpanel/customizations/includes/ directory does not apply to the webmail selection page. I'm researching this further and will update you with more information shortly.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    To update, I've confirmed that we don't currently support UI includes in the webmail interface. I encourage you to open a feature request for the inclusion of webmail as a UI include point:

    Submit A Feature Request

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Anton-Vodien

    Anton-Vodien Registered

    Joined:
    Nov 13, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Philippines
    cPanel Access Level:
    Root Administrator
    I see is there available option for me to add some javascript code in their aside from modifying core files?
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hi @Anton-Vodien,

    We don't support UI includes of any type in the webmail interface. It looks like you replied to my initial response. Here's the second one in-case you missed it:

    Thanks.
     
    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