Page 1 of 1

More info on the login page

Posted: 2023-05-21 21:49
by RonP
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

Re: More info on the login page

Posted: 2023-05-23 01:01
by zibrahim
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.

Re: More info on the login page

Posted: 2023-05-23 08:06
by RonP
Hi Zibrahim,
Great!. Thank you.
Ron