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.

Hiding icons on X3

Discussion in 'General Discussion' started by moosemoose, Sep 20, 2007.

  1. moosemoose

    moosemoose Member

    Joined:
    May 24, 2006
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    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. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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/slides/trackb/Customizing cPanel.pdf
     
  3. moosemoose

    moosemoose Member

    Joined:
    May 24, 2006
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    that's fantastic - just what i needed! thanks :)
     
  4. inigo_gonz

    inigo_gonz Registered

    Joined:
    Jun 4, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    You need to provide a custom theme in order to accomplish this.
     
  6. Metro2

    Metro2 Well-Known Member

    Joined:
    May 24, 2006
    Messages:
    376
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    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. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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. Metro2

    Metro2 Well-Known Member

    Joined:
    May 24, 2006
    Messages:
    376
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    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. Metro2

    Metro2 Well-Known Member

    Joined:
    May 24, 2006
    Messages:
    376
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    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. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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. Metro2

    Metro2 Well-Known Member

    Joined:
    May 24, 2006
    Messages:
    376
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Thank you DavidG!

    As I mentioned over in http://forums.cpanel.net/showthread.php?p=376277#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!
     
Loading...

Share This Page