labeach

Member
Dec 12, 2007
10
0
51
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
 

efoiv

Member
Dec 19, 2007
12
0
51
bump I've downloaded and edited then uploaded all goes well how do I select the new login theme?
 

efoiv

Member
Dec 19, 2007
12
0
51
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?
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,481
35
208
cPanel Access Level
DataCenter Provider
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?
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.
 

efoiv

Member
Dec 19, 2007
12
0
51
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
 

efoiv

Member
Dec 19, 2007
12
0
51
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:
 

efoiv

Member
Dec 19, 2007
12
0
51
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.
 

Attachments

efoiv

Member
Dec 19, 2007
12
0
51
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
 

Attachments

labeach

Member
Dec 12, 2007
10
0
51
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
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.
 

labeach

Member
Dec 12, 2007
10
0
51
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
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
...

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

labeach

Member
Dec 12, 2007
10
0
51
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
 

labeach

Member
Dec 12, 2007
10
0
51
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!
 

planeswalker99

Registered
Mar 27, 2008
1
0
51
So, I'm guessing this means I can't have custom login screens for each of reseller accounts? Not without redirecting as suggested above?
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
So, I'm guessing this means I can't have custom login screens for each of reseller accounts? Not without redirecting as suggested above?
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).
 

corpresa

Active Member
Jan 16, 2009
33
0
56
Barcelona
hi

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