More info on the login page

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
User avatar
RonP
Veteran Member
Posts: 219
Joined: 2013-08-27 13:36
Location: Heiloo, The Netherlands
Contact:

More info on the login page

Post by RonP » 2023-05-21 21:49

Hi,
Is there a way to put some more info at the login page?
I like to put some extra tekst and a logo there.
Ron

User avatar
zibrahim
Veteran Member
Posts: 137
Joined: 2020-01-28 18:30
Location: Malaysia

Re: More info on the login page

Post by zibrahim » 2023-05-23 01:01

Hi Ron,
many ways to do that and my favourite is the following.

file : hooks/footer-extras.php

Code: Select all

<?php
$script_name = basename($_SERVER['PHP_SELF']);
if ($script_name == 'index.php' && isset($_GET['signIn'])) {
?>
	<style>
		body {
			background: url("hooks/background_image_file.jpg");
			background-repeat: repeat;
			background-size: 400px 400px;
		}
	</style>

	<div class="alert alert-info" id="login_panel">
		<img style="float:right" src="hooks/logo_file.png" width="300" height="100" /><br>
		<h4>Thank you for using this fantastic application.</h4>
		<div>
			You can try out the live demo by using the following info<br>
			<h5>Username : demo<br>
				Password : demo</h5>
		</div>
		<hr>
		<div>Have a nice day.<br>
			<?php echo date('d-m-Y l h:i:sa'); ?>
		</div>
	</div>
	<script>
		$j(function() {
			$j('#login_panel').appendTo('#login_splash');
		})
	</script>
<?php
}
?>
Happy coding and Have a nice day.
Zala.
Appgini 24.10.1579, MacOS 14.3.1 Windows 11 on Parallels.

User avatar
RonP
Veteran Member
Posts: 219
Joined: 2013-08-27 13:36
Location: Heiloo, The Netherlands
Contact:

Re: More info on the login page

Post by RonP » 2023-05-23 08:06

Hi Zibrahim,
Great!. Thank you.
Ron

Post Reply