Zubrag.com
August 22, 2019, 04:44:41 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: make password-protect pretty  (Read 6401 times)
BillGrates
Newbie
*
Posts: 2


« on: December 12, 2009, 01:27:50 AM »

Greetings.
I have downloaded and installed password-protect and it is AWESOME.
It works perfectly and please accept my congratulations.
However in my opinion the page does look unattractive.
I have added a graded background image to the page:-
?>

<html>
<head>
<title>Please enter User ID and Password to access this page</title>

  <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">

  <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

</head>
<body>
<style type="text/css">
body
{
background-image:url('/logo/bg_gold.jpg');
background-repeat:repeat-x;
}
body {color:blue; font-size: 14pt; font-family: san-serif; Verdana, Helvetica, font-weight: 400; }
</body>
</style>
</body>

</html>


<?php

  // stop at this point

  die();

And this does make the page far more attractive.
In addition I wanted to add a welcome.jpg image at the start of the page
and an thank_you.jpg image at the foot of the page.

I have spent several days trying to get the above to work but the very best that I can achieve is the
'alt text' to show, never an image.
PLEASE please could you give me examples to add .jpg images at the top and bottom of the password-protect page.
Yours faithfully
BillGrates


Logged
zubrag
Administrator
Hero Member
*****
Posts: 788


WWW
« Reply #1 on: December 14, 2009, 02:46:06 PM »

I think it will work if you provide full url starting with http, like this
body
{
background-image:url('http://www.example.com/path/to/logo/bg_gold.jpg');
background-repeat:repeat-x;
}
Logged
BillGrates
Newbie
*
Posts: 2


« Reply #2 on: December 16, 2009, 08:56:39 PM »

Thank you for your reply and please excuse my delay in thanking you I have lost two members of my family.
To make the protect log-in page more attractive adding the following works fine:-
<body>
<style type="text/css">
body
{
background-image:url('/logo/bg_gold.jpg');
background-repeat:repeat-x;
}
body {color:blue; font-size: 14pt; font-family: san-serif; Verdana, Helvetica, font-weight: 400; }
</body>
</style>
</body>

</html>


<?php

  // stop at this point

  die();

However my request for help was how to add a .jpg logo at the top of the page
and another at the foot of the pge.

I have been unable to get these .jpg's to display.
If I change the protect_password.php extension to .htm they work fine.

I have spent more days and am sort of ..lost.
 
Logged
zubrag
Administrator
Hero Member
*****
Posts: 788


WWW
« Reply #3 on: December 17, 2009, 01:41:18 AM »

Do you have it online? Could you provide url to look at it?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC