How to enter a background image in the registration page?

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
nycwebmaster
Veteran Member
Posts: 90
Joined: 2015-11-23 01:02

How to enter a background image in the registration page?

Post by nycwebmaster » 2017-11-16 01:58

Hi,

Using Latest version 5.62

I learned how to insert a background image on the login page with BigProf Course in Udemy that I highly recommend but the only problem that I have is that on the new registrant the page the image that I inserted in the Footer Extras File does not show there, instead goes into a page with no background with only the form to register yourself.


How Can I insert a background image on the New Registration page?

Abeer
Posts: 18
Joined: 2017-03-12 09:19

Re: How to enter a background image in the registration page?

Post by Abeer » 2017-11-21 08:40

to add an image to login page you should have a code like this in footer-extras file:

Code: Select all

$script_name = basename($_SERVER['PHP_SELF']);
	if($script_name == 'index.php' && isset($_GET['signIn'])){
		
		//a code to add a photo to login page background 
	
	}
in the above code you are checking if the current page is the login page, you should add a check if its the registration page as well, so modify your code to be like that:

Code: Select all

$script_name = basename($_SERVER['PHP_SELF']); // the url without the path
         if ($script_name == 'index.php' && isset($_GET['signIn']) || $script_name=='membership_signup.php') {
                    
                     //a code to add a photo to login page and registration page background 	
        
         }

User avatar
Celson Aquino
Posts: 27
Joined: 2017-08-26 15:40
Location: Salvador, Bahia - Brazil

Re: How to enter a background image in the registration page?

Post by Celson Aquino » 2018-01-10 11:00

You can substitute the

Code: Select all

//a code to add a photo to login page background 
for

Code: Select all

?>
	<style>
		body{
			background: url("images_directory/image_filename.jpg") no-repeat fixed center center / cover;
		}
	</style>
<?php

Post Reply