Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    May 2006
    Posts
    14

    Default Hiding icons on X3

    Is there a way to turn icons customers see on and off in WHM?

    Basically the service I run has a completely customised webmail system running, and therefore I don't need the webmail icon.

    There are a few others, such as 'change style' and email filtering that I'd like to remove, but have the option to add back later if the mail moves on to the same servers as our cPanel install...

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by moosemoose View Post
    Is there a way to turn icons customers see on and off in WHM?

    Basically the service I run has a completely customised webmail system running, and therefore I don't need the webmail icon.

    There are a few others, such as 'change style' and email filtering that I'd like to remove, but have the option to add back later if the mail moves on to the same servers as our cPanel install...
    Yes, it's called Feature Manager and you can find it in WHM -> Packages -> Feature Manager.

    To disable something server-wide and ensure it can never be enabled (except by a root user), disable it the "disabled" feature list by un-checking it in that feature list.

    If you want to disable something just for a specific package, simply create a new feature list, disable it in that feature list, save it and then associate a package with the feature list you just created by going to WHM -> Packages -> Edit Package.

    More information about this in slides 16 through 19 of the following presentation from the 2007 cPanel Training Seminar:

    http://trainingseminar.cpanel.net/sl...g%20cPanel.pdf

  3. #3
    Member
    Join Date
    May 2006
    Posts
    14

    Default

    that's fantastic - just what i needed! thanks

  4. #4
    Registered User
    Join Date
    Jun 2007
    Posts
    1

    Default

    I have a similar question, and I've taken a look at the feature manager as directed. However, this sort of does not work. Simply, while it does take away the icon, it also takes away the functionality.

    What I need is to just take away the icon. We have a custom wrapper that handles some of the functionality for our users (addons, subdomains, mx entries, etc), and we don't need them changing stuff around inside of x3 as that causes inconsistencies with the wrapper. So, basically, they should have the functionality, just not the icons in x3. I was wondering if there was a way to do this.

    Thanks,

    ~i

  5. #5
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by inigo_gonz View Post
    I have a similar question, and I've taken a look at the feature manager as directed. However, this sort of does not work. Simply, while it does take away the icon, it also takes away the functionality.

    What I need is to just take away the icon. We have a custom wrapper that handles some of the functionality for our users (addons, subdomains, mx entries, etc), and we don't need them changing stuff around inside of x3 as that causes inconsistencies with the wrapper. So, basically, they should have the functionality, just not the icons in x3. I was wondering if there was a way to do this.

    Thanks,

    ~i
    You need to provide a custom theme in order to accomplish this.

  6. #6
    Member
    Join Date
    May 2006
    Posts
    272
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by cpanelkenneth View Post
    You need to provide a custom theme in order to accomplish this.
    I would really love to know which file / code to edit to hide the main Webmail icon from the cPanel menu.

    I've downloaded a copy of the root theme, but I can't seem to find the correct file and snippet to remove to make this dreaded icon go away.

    I say dreaded because:

    A) We all know that it confuses users because

    B) They click on it and don't understand why there is no mail there because

    C) It is only the webmail for the master hosting account username, which we tell them not to use as an email address because

    D) Emails sent from a master hosting account username show up as user@hostname instead of user@theirdomain

    This has driven me nuts for years, because even though I explain right in my beginner FAQ to use www.theirdomain.com/webmail to access their webmail accounts, it's just too tempting for them to simply click the big webmail icon right in their main cpanel page. uuugghhh...

    Can anyone please tell me which file and piece of code to remove from the theme to make this thing go away (without actually disabling webmail access) ?

    Thanks much!

  7. #7
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Metro2 View Post
    I would really love to know which file / code to edit to hide the main Webmail icon from the cPanel menu.

    I've downloaded a copy of the root theme, but I can't seem to find the correct file and snippet to remove to make this dreaded icon go away.

    I say dreaded because:

    A) We all know that it confuses users because

    B) They click on it and don't understand why there is no mail there because

    C) It is only the webmail for the master hosting account username, which we tell them not to use as an email address because

    D) Emails sent from a master hosting account username show up as user@hostname instead of user@theirdomain

    This has driven me nuts for years, because even though I explain right in my beginner FAQ to use www.theirdomain.com/webmail to access their webmail accounts, it's just too tempting for them to simply click the big webmail icon right in their main cpanel page. uuugghhh...

    Can anyone please tell me which file and piece of code to remove from the theme to make this thing go away (without actually disabling webmail access) ?

    Thanks much!
    Regarding turning it off:

    Instead of making a custom theme, disable it via Feature Manager (it's much easier). If you want to hide this for ALL users on your server, edit the "disabled" feature list and uncheck the webmail icon (and any mail-related functionality you desire to remove) and click save at the bottom of that page.

    Editing it:

    If you want that webmail link on that page to redirect to a specific URL, you can edit that page via the Branding Editor (cPanel -> Preferences -> Branding Editor -> Edit HTML Pages -> Webmail). I'm actually covering that at this year's cPanel conference: http://conference.cPanel.net

  8. #8
    Member
    Join Date
    May 2006
    Posts
    272
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by cPanelDavidG View Post
    Regarding turning it off:

    Instead of making a custom theme, disable it via Feature Manager (it's much easier). If you want to hide this for ALL users on your server, edit the "disabled" feature list and uncheck the webmail icon (and any mail-related functionality you desire to remove) and click save at the bottom of that page.
    Hi David,

    As noted by a cPanel staff member in another thread (I can't find it at the moment), there is a bug with cPanel that makes it so if you hide the Webmail icon in Feature Manager, it also disables access to webmail all-together. So in other words, it doesn't just hide the master Webmail icon in their cPanel, it makes webmail inaccessible from any other method as well, such as webmail.example.com or www.example.com/webmail/

    I assure you, that's the first thing I tried and I try it with every new cPanel release to see if the bug has been fixed. It's been like this for years.

    I'll try to find the thread, which includes an actual cPanel internal case number regarding the bug.

  9. #9
    Member
    Join Date
    May 2006
    Posts
    272
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by cPanelDavidG View Post
    If you want that webmail link on that page to redirect to a specific URL, you can edit that page via the Branding Editor (cPanel -> Preferences -> Branding Editor -> Edit HTML Pages -> Webmail).
    Unforutunately I'm unable to find this exactly.

    The closest thing I can find is:

    WHM > Cpanel > Branding > x3 edit live > Edit This Style > Advanced Branding Editor > HTML Pages > WebMail Login Include > webmaillogininclude.html

    The contents of webmaillogininclude.html look like this:

    Code:
    <style><?cp Branding::spritelist(.spriteicon_img_mini {float:left;margin-right:5px;background: url\{leftparenthesis}%\{rightparenthesis};} %,spriteurl,images::#icon-${img}_mini {background-position\{colon}0 -${cssposition}px;width\{colon}${width}px;height\{colon}${height}px; }:) imgtype=icon,subtype=img,method=scale_60percent,format=png,img=webemail ?></style><div id="h1Title" class="h1Title"><div class="spriteicon_img_mini" id="icon-webemail_mini"></div> <cpanel langprint="MENUWebmail"></div>	<p class="description"><cpanel langprint="WebmailDescription"></p>	      <p> <cpanel langprint="WebmailLoginHintPre"><cpanel print="$CPDATA{'DNS'}"><cpanel langprint="WebmailLoginHintPost"></p>	  <div align="center">	  <cpanelif $ENV{'SERVER_PORT'}==2082>	   <a href="/xferwebmail/" target="_blank"><img alt="Webmail" border="0" src="<cpanel Branding="image(webemail)">" width="32" height="32"><br /><cpanel langprint="GoToWebmail"></a><br />	</cpanelif>	<cpanelif !$ENV{'SERVER_PORT'}==2082>	   <a href="/xferwebmail/" target="_blank"><img alt="Webmail" border="0" src="<cpanel Branding="image(webemailsecure)">" width="32" height="32"><br /><cpanel langprint="GoToWebmailSecure"></a><br />	</cpanelif>	  </div>	  <p> <cpanel langprint="WebmailDesktopPre"><cpanel print="$CPDATA{'DNS'}"><cpanel langprint="WebmailDesktopPost"></p>
    And the from that it's not very clear how to either:
    A) Send them to webmail.theirdomain.com
    or
    B) Just send them to an HTML page on the server that instructs them to go to webmail.theirdomain.com

    Don't get me wrong David, I truly appreciate your help and taking the time to respond, but so far I cannot see a viable solution. Hiding the Webmail icon via Feature Manager disables all webmail access all-together, and the method you supplied for editing it does not seem to correspond well with WHM/cPanel 11.23.

    Thank you for trying to assist, I do appreciate it. As a cPanel customer of over 8 years now I'm still finding this issue very frustrating and I can see by perusing the forums that a few other people are too, and no clear solution or answer has been provided. I sure wish I could attend that conference...

  10. #10
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Metro2 View Post
    Unforutunately I'm unable to find this exactly.

    The closest thing I can find is:

    WHM > Cpanel > Branding > x3 edit live > Edit This Style > Advanced Branding Editor > HTML Pages > WebMail Login Include > webmaillogininclude.html

    The contents of webmaillogininclude.html look like this:

    Code:
    <style><?cp Branding::spritelist(.spriteicon_img_mini {float:left;margin-right:5px;background: url\{leftparenthesis}%\{rightparenthesis};} %,spriteurl,images::#icon-${img}_mini {background-position\{colon}0 -${cssposition}px;width\{colon}${width}px;height\{colon}${height}px; }:) imgtype=icon,subtype=img,method=scale_60percent,format=png,img=webemail ?></style><div id="h1Title" class="h1Title"><div class="spriteicon_img_mini" id="icon-webemail_mini"></div> <cpanel langprint="MENUWebmail"></div>	<p class="description"><cpanel langprint="WebmailDescription"></p>	      <p> <cpanel langprint="WebmailLoginHintPre"><cpanel print="$CPDATA{'DNS'}"><cpanel langprint="WebmailLoginHintPost"></p>	  <div align="center">	  <cpanelif $ENV{'SERVER_PORT'}==2082>	   <a href="/xferwebmail/" target="_blank"><img alt="Webmail" border="0" src="<cpanel Branding="image(webemail)">" width="32" height="32"><br /><cpanel langprint="GoToWebmail"></a><br />	</cpanelif>	<cpanelif !$ENV{'SERVER_PORT'}==2082>	   <a href="/xferwebmail/" target="_blank"><img alt="Webmail" border="0" src="<cpanel Branding="image(webemailsecure)">" width="32" height="32"><br /><cpanel langprint="GoToWebmailSecure"></a><br />	</cpanelif>	  </div>	  <p> <cpanel langprint="WebmailDesktopPre"><cpanel print="$CPDATA{'DNS'}"><cpanel langprint="WebmailDesktopPost"></p>
    And the from that it's not very clear how to either:
    A) Send them to webmail.theirdomain.com
    or
    B) Just send them to an HTML page on the server that instructs them to go to webmail.theirdomain.com

    Don't get me wrong David, I truly appreciate your help and taking the time to respond, but so far I cannot see a viable solution. Hiding the Webmail icon via Feature Manager disables all webmail access all-together, and the method you supplied for editing it does not seem to correspond well with WHM/cPanel 11.23.

    Thank you for trying to assist, I do appreciate it. As a cPanel customer of over 8 years now I'm still finding this issue very frustrating and I can see by perusing the forums that a few other people are too, and no clear solution or answer has been provided. I sure wish I could attend that conference...
    See those links to /xferwebmail/? Those would be the links you would edit. Change those links to:

    Code:
    http://webmail.<cpanel print="$CPDATA{'DNS'}">/
    This will redirect them to http://webmail.example.com where example.com is their domain.

  11. #11
    Member
    Join Date
    May 2006
    Posts
    272
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by cPanelDavidG View Post
    See those links to /xferwebmail/? Those would be the links you would edit. Change those links to:

    Code:
    http://webmail.<cpanel print="$CPDATA{'DNS'}">/
    This will redirect them to http://webmail.example.com where example.com is their domain.
    Thank you DavidG!

    As I mentioned over in http://forums.cpanel.net/showthread....277#post376277 , things like this make us hosts are able to better handle support for our own shared hosting customers rather than them ending up here on cpanel.net looking for help (and lost) where they shouldn't be.

    There are a lot of nice things about X3, but far too many things that lead end-users / customers here to cpanel.net. I'm going to actually submit some suggestions today for the first time in... well, all the years I've been running cPanel on my servers. Stuff that can save both you (cPanel) and us (hosts) a lot of hassle and headaches.

    Thanks again for all your helpful input!

Similar Threads & Tags
Similar threads

  1. Hiding files
    By Legin76 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-02-2009, 07:20 AM
  2. Hiding Page
    By NightStorm in forum New User Questions
    Replies: 4
    Last Post: 09-13-2006, 08:09 AM
  3. Hiding domain?
    By Lizard in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-04-2005, 11:31 PM
  4. Hiding Subdomain Redirects...
    By maidenseye in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-21-2005, 09:57 AM
  5. hiding fantastico
    By carlaron in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-04-2003, 09:34 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube