Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
How to customize the login screen?
-
- Posts: 11
- Joined: Wed Jan 30, 2019 2:20 am
How to customize the login screen?
Hi,
Does anyone know how to change the logo size and the wording (e.g. "username", "Log in") in the login screen? The $nuWelcomeBodyInnerHTML block in the nuconfig.php is commented out so is there another file in which I can update the values?
Thanks!
Does anyone know how to change the logo size and the wording (e.g. "username", "Log in") in the login screen? The $nuWelcomeBodyInnerHTML block in the nuconfig.php is commented out so is there another file in which I can update the values?
Thanks!
-
- Posts: 11
- Joined: Wed Jan 30, 2019 2:20 am
-
- Posts: 25
- Joined: Mon Apr 04, 2022 4:00 pm
- Has thanked: 1 time
Re: How to customize the login screen?
Looking for some help here. When I uncomment the section $nuWelcomeBodyInnerHTML = " to use my own custom logo when going to the DB I get an error 500, I have restarted apache and such, I comment out the section once again and it works. Any advise on what I could be doing wrong or anything additional I need to do? I replaced the logo.png in the default folder with my own customer logo. Here is what the section looks like commented out. I didnt change anything here but remove the /* and */ at the end....
Code: Select all
/*
$nuWelcomeBodyInnerHTML = "
<div id='outer' style='width:100%'>
<form id='nuLoginForm' action='#' method='post' onsubmit='return false'>
<div id='login' class='nuLogin'>
<table>
<tr>
<td align='center' style='padding:0px 0px 0px 33px; text-align:center;'>
<img src='core/graphics/logo.png'><br><br>
</td>
</tr>
<tr>
<td><div style='width:90px; margin-bottom: 5px;'>Username</div><input class='nuLoginInput' id='nuusername' autocomplete='off' /><br><br></td>
</tr>
<tr>
<td><div style='width:90px; margin-bottom: 5px;'>Password</div><input class='nuLoginInput' id='nupassword' type='password' autocomplete='off' onkeypress='nuSubmit(even$
</tr>
<tr>
<td style='text-align:center' colspan='2'><br><br>
<input id='submit' style='width:90px' type='submit' class='nuButton' onclick='nuLoginRequest()' value='Log in'/>
</td>
</tr>
</table>
</div>
</form>
</div>
";
*/
Last edited by tpolimeni28 on Fri Apr 08, 2022 4:38 am, edited 1 time in total.
-
- nuBuilder Team
- Posts: 4297
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: How to customize the login screen?
Hi,
Can you upload your modified nuconfig.php here (as zip file)?
Remove any confidential info.
Can you upload your modified nuconfig.php here (as zip file)?
Remove any confidential info.
-
- Posts: 25
- Joined: Mon Apr 04, 2022 4:00 pm
- Has thanked: 1 time
Re: How to customize the login screen?
Attached with info removed.. Might not be the same forum but is it possible I can add in AzureAD - MS Graph API for login auth and creation of user groups?
You do not have the required permissions to view the files attached to this post.
-
- nuBuilder Team
- Posts: 4297
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: How to customize the login screen?
I uncommented $nuWelcomeBodyInnerHTML and I see no issues here. Did you change any html code within that variable?
PS: New question, new topic please.
PS: New question, new topic please.
-
- Posts: 25
- Joined: Mon Apr 04, 2022 4:00 pm
- Has thanked: 1 time
Re: How to customize the login screen?
I did not, I simply uncomment the /* and */ between the lines in the lower section, I save, restart my webserver. WHen I browse to my default link I get an error 500. I also did not change any HTML code within that section. I added my new logo I created to my home dir, cp to the current logo folder.... It looks like apache is still the file owner as well. When I look at the file folder as well via the file screen I see my logo as well
Once I restore the comment it works again
graphics]# ls -l
total 184
-rw-r----- 1 apache apache 4674 Jan 1 10:43 ad.png
-rw-r----- 1 apache apache 5545 Jan 1 10:44 as.png
-rw-r----- 1 apache apache 4823 Jan 1 10:46 bb.png
-rw-r----- 1 apache apache 4441 Jan 1 10:55 bd.png
-rw-r----- 1 apache apache 3826 Jan 1 11:00 be.png
-rw-r----- 1 apache apache 5270 Jan 1 11:01 bs.png
-rw-r----- 1 apache apache 229 Jan 17 2021 close.png
-rw-r----- 1 apache apache 356 Jan 17 2021 close_red.png
-rw-r----- 1 apache apache 5914 Jan 1 10:31 css.png
-rw-r----- 1 apache apache 1630 Jan 1 11:04 diamone_purple.png
-rw-r----- 1 apache apache 3047 Jan 1 10:17 empty_diamond.png
-rw-r----- 1 apache apache 194 Jan 17 2021 grid.png
-rw-r----- 1 apache apache 3604 Jan 1 12:04 html.png
-rw-r----- 1 apache apache 4244 Jan 1 10:35 js.png
-rw-r----- 1 apache apache 3716 Jan 17 2021 logo.png<<<<<<<<<<<<<
-rw-r----- 1 apache apache 4476 Jan 1 11:07 lujs.png
-rw-r----- 1 apache apache 20540 Jan 17 2021 magnify.png
-rw-r----- 1 apache apache 12568 Jan 17 2021 nu_box_close.png
-rw-r----- 1 apache apache 1891 Jan 17 2021 nuerror.png
-rw-r----- 1 apache apache 1874 Jan 17 2021 numessage.png
-rw-r----- 1 apache apache 577 Jan 17 2021 nu_scroll.png
-rw-r----- 1 apache apache 20348 Jan 17 2021 nu_undo.png
-rw-r----- 1 apache apache 3421 Jan 1 11:53 php.png
-rw-r----- 1 apache apache 5012 Jan 1 11:43 sql.png
-rw-r----- 1 apache apache 1531 Jan 17 2021 trash_can.png
You do not have the required permissions to view the files attached to this post.
-
- nuBuilder Team
- Posts: 4297
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: How to customize the login screen?
I see two slashes that do not belong there
You need to remove /* and not just *
And this was not in your uploaded nuconfig.php
You need to remove /* and not just *
And this was not in your uploaded nuconfig.php
-
- Posts: 25
- Joined: Mon Apr 04, 2022 4:00 pm
- Has thanked: 1 time
Re: How to customize the login screen?
Oh my, sorry about that, if I use and place a custom logo in the graphics folder will that replace the default one on the login page?