This topic is locked
[SOLVED]

  Adding an image background to login page in phpRunner 7

10/14/2013 1:57:20 PM
PHPRunner General questions
T
tabarin author

Hi all,
How do you go about customizing the login page with an image background using phpRunner 7? I have tried all codes on HTML mode after the </HEAD> in the login page without any success?
Thanks,
George Kiptalam

Nairobi

Admin 10/14/2013

George,
add the following to 'Custom CSS' under Style Editor

body.function-login {

background-image:url('/images/users.gif');

}
T
tabarin author 10/18/2013



George,
add the following to 'Custom CSS' under Style Editor

body.function-login {

background-image:url('/images/users.gif');

}



Hi Sergey,
Thanks. I have inserted the code to the 'Custom CSS' under Style Editor and seems not to be working. See the code below as there is something that I am not getting right:
body.function-login {

background-image:url('/images/sme.bmp');

}
body {

background: #F5F9FC !important;

}
.rnr-page {

width: 1100px;

display: table;

margin: auto;

}
.rnr-top {

width: 100%;

}
.rnr-left, .rnr-center {

background: #f4f4f4 !important;

}
George

Admin 10/18/2013

Web browsers do not understand BMP format

T
tabarin author 10/19/2013



Web browsers do not understand BMP format


Sergey,
Thanks again. I am still not getting any luck displaying the background. Here is the code for your scrutiny.
.rnr-top {

width: 100%;

}
.rnr-left, .rnr-center {

background: #f4f4f4 !important;

}
body {

background: #F5F9FC !important;

}
body.function-login {

background-image:url('/images/users.gif');

}
.rnr-page {

width: 1100px;

display: table;

margin: auto;

}
.rnr-top {

width: 100%;

}
.rnr-left, .rnr-center {

background: #f4f4f4 !important;

}
Thanks,

George

C
cgphp 10/21/2013

Remove the !important keyword from the css body rule.

Admin 10/21/2013

For clarify sake remove everything but following:

body.function-login {

background-image:url('/images/users.gif');

}


URL of the image can be replaced with the URL of any image you want to use.

J
John 10/23/2013

This might be a bug but the only way I was able to make background image to appear was include the alias name for the webserver in the image string.
For example:

  • If the website is on the local host and is called webserver. The following statement work when added to the custom CSS option


body.function-login {

background-image:url('/webserver/images/img13.jpg');

}
Pls advise
John

C
cgphp 10/23/2013

If the images folder is at the same level of the login.php page, the css code should be as follows:

body.function-login {

background-image:url('images/img13.jpg');

}


You can remove the first forward slash.

Admin 10/23/2013

This is not a bug, you need to specify a valid path to the image file. The most reliable way is to reference it via a full URL i.e.

background-image:url('https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=72491&image=1&table=forumreplies';);
I
Ivan van Oosterhout 10/24/2013

Hello Sergey,
I have tried your code also with your valid picture path but it still does not show the picture.
this is my code but the white background that i sett is overuling the picture part.
body.function-login {

background-image:url('https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=72497&image=1&table=forumreplies';);

}
Regards Ivan,

C
cgphp 10/24/2013

Did you remove the !important keyword for the background color rule?

I
Ivan van Oosterhout 10/24/2013

Hello Cristian,
Thank you for your support,
Yess, i did.. the only thing that is at Custom Css is
body.function-login {

background-image:url('https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=72500&image=1&table=forumreplies';);

}
I have checked by hand the CSS files and the ! is nowhere to be found,
Kind Regards,
Ivan

C
cgphp 10/24/2013
Admin 10/24/2013

Ivan,
I think it's pretty obvious that mycoolwebsite.com needs to be replaced with the URL of your own webiste.

T
tabarin author 10/30/2013



Ivan,
I think it's pretty obvious that mycoolwebsite.com needs to be replaced with the URL of your own webiste.


Sergey, thank for the link: http://xlinesoft.com/blog/2013/10/26/building-a-nice-looking-login-page-with-custom-css/
That helped in getting it right.
George