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.

Customize login page

Discussion in 'User Experience' started by labeach, Dec 15, 2007.

  1. labeach

    labeach Member

    Joined:
    Dec 12, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Does anyone know how to customize the login/out pages of Cpanel/webmail?

    I have gone to main/themes/universal theme manager/login manage theme s. I downloaded the default, modified it, made it a tar file with an images directory, changed the suffix to .cptheme and then uploaded it.

    It doesn't work.

    Does anyone know what I need to do to make this work? I have searched the threads on this forum and have found links to customizing the login page, but they were not clear to me. Any help appreciated! Thanks
     
  2. efoiv

    efoiv Member

    Joined:
    Dec 19, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    bump I've downloaded and edited then uploaded all goes well how do I select the new login theme?
     
  3. efoiv

    efoiv Member

    Joined:
    Dec 19, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    ok I found where you set the login theme oddly enough not under the themes settings section but in the "Tweak Settings" section first item...

    I have changed the name to my new theme - however it does not reflect the change... what else am i missing?
     
  4. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    Clear you cookies. Once you have a login theme set you have to clear them to get a new one. Its done this way to prevent one from getting a different login theme from a custom login page. For best results set the login theme from a separate login page.

    See this sample here:

    http://www.cpanel.net/cpanel-login.phps

    Note: this is an updated version with the login_theme variable set.
     
  5. efoiv

    efoiv Member

    Joined:
    Dec 19, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    thanks for that - I've also been looking at the source and I think it might have something to do with using the default path for the css. what should the custom css header path look like?
    I've tried some many variations I've lost count
     
  6. efoiv

    efoiv Member

    Joined:
    Dec 19, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    I had a look at your custom login and while I think that is a nice solution... it isn't secure. I'd have to get another ssl cert to cover it as of now my ssl cert is set to be used with whm, cpanel and webmail.


    I'd really just like to use the built in system to have a custom theme.

    The thing I'm seeing not working correctly is after editing all the headers and css for my custom theme it's not getting the correct path to my new theme.

    I've tried

    <link rel="stylesheet" href="style.css" type="text/css">
    <link rel="stylesheet" href="/style.css" type="text/css">
    <link rel="stylesheet" href="cpaneljmm/style.css" type="text/css">
    <link rel="stylesheet" href="/cpaneljmm/style.css" type="text/css">

    cpaneljmm being the name of the custom theme folder

    What in dog gone blazes is the correct css path???? I even made some wild outlandish color changes to the css to see when it finally gets it.

    anyone have an answer what that path should be? :confused:
     
  7. efoiv

    efoiv Member

    Joined:
    Dec 19, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Custom Login Panels

    Ok maybe I'm not the brightest crayon in the box but this wasn't very clear to me so I am posting this for anyone else confused by how to make a simple custom login using the default built in tools not an entirely new login system.



    Of course you need to edit your images i wasn't looking for anything very different from the basic login panel just more polished.


    The part that stumped me was the correct paths to the css file and images... this isn't so obvious as it seems.


    EDIT ALL 3 header files
    header_webmaild.html
    header_whostmgrd.html
    header.html

    The correct path to your custom theme css should be
    Code:
    /unprotected/YOUR CUSTOM THEMES NAME HERE/style.css
    now open the style sheet itself you need to edit the path to the images
    the image location will be
    /unprotected/YOUR CUSTOM THEMES NAME HERE/images/button-bg.jpg
    etc
    etc
    etc
    do this for all the image paths

    upload your completed theme then go to Tweak Settings and enter the name of YOUR new theme

    that's ALL nice and simple

    See the attachment for how it looks... this is without branding and titles yet but you get the idea.
     

    Attached Files:

  8. efoiv

    efoiv Member

    Joined:
    Dec 19, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    in case anyone would like a starting point... here is the generic login mod you can customize with your own logo and info

    Here are the simple steps
    1. Download this posts attachment
    2. Expand it then recompress using tgz (the forum only allows zip and cpanel wants gz)
    3. go to your Web Host Manager
    4. go to Universal Theme Manager > Login Manage Themes
    5. click browse and upload the new theme archive (whm will expand it for you)
    6. now go to Tweak Settings in the first item under Display (should be the very first thing) change the default "cpanel" value to the name of the theme you just uploaded "smoothnclean"
    7. save your settings

    you might need to quit your broswer and dump your cache to see the changes
     

    Attached Files:

  9. DjMorley

    DjMorley Registered

    Joined:
    Dec 26, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    bolton/preston
    thansk this helps me out
     
  10. efoiv

    efoiv Member

    Joined:
    Dec 19, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Very happy to help out where I can. I was sure I wasn't the only person looking for this here.
     
  11. labeach

    labeach Member

    Joined:
    Dec 12, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Oh thanks for creating a tutorial. I've been bogged down with work and holidays and just now getting back to this. I have tried everything to create a tgz file but nothing seems to work. How do you do this on windows? I've tried 7zip, gzip, tug. For some reason I just can't get these to work. So I can't get past that step.
     
  12. labeach

    labeach Member

    Joined:
    Dec 12, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Didn't work

    Ok finally got tugzip to work. So I followed your tutorial, cleared my cookies and still cpanel login/logout screen looks the same.

    Plus, I am constantly getting a popup login window. How do I get it to use just the webpage login and not popup a loging window?

    Thanks
     
  13. 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
    In WHM -> Server Configuration -> Tweak Settings -> System for the setting Disable Http Authentication for cPanel/WebMail/WHM Logins (forces cookie authentication) check the checkbox for that setting then at the bottom of that page click save. This disables the popup box (HTTP Authentication).
     
  14. labeach

    labeach Member

    Joined:
    Dec 12, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    http vs cookie

    Thanks! I am sorry I am new to most of the admin stuff. Is it more secure to have http or cookie authentication? Thanks
     
  15. 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
    HTTP authentication is more secure.
     
  16. labeach

    labeach Member

    Joined:
    Dec 12, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Then should I eliminate the login pages?

    When I am dumped out of whm, it dumps me to a login page. Should that be eliminated for security reasons? Thanks!
     
  17. 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
    I can't think of any security reasons offhand to change this. I know many companies change the logout URL just to re-enforce their brand and for other marketing reasons.
     
  18. planeswalker99

    planeswalker99 Registered

    Joined:
    Mar 27, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    So, I'm guessing this means I can't have custom login screens for each of reseller accounts? Not without redirecting as suggested above?
     
  19. 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
    One possible means of doing this is to have users login via a custom link that triggers a specific login theme to be displayed.

    Short of some substantial custom coding, there is currently no method by which to state which login theme to display based on which reseller owns the account/domain from which the user is logging in (e.g. http://userWebsite:2082).
     
  20. corpresa

    corpresa Active Member

    Joined:
    Jan 16, 2009
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Barcelona
    hi

    hi labeach, i do not know if you had the same problem, look i tried modify the default theme, only ichange the name and upload the file, and appear a the follow error:

    the file header... is missing, i zipped the directory with Winrar, do you think that this can be the problem?, what software are you using for zipp the package?.

    thank you and regards.
     
Loading...

Share This Page