Topic: Blank Page Template ?

I have added several new pages to the program,,,but I cheated and built them in html..just making a good copy of the existing nav links....what php code would be needed to make a template page that would just bring in the user top and user bottom allowing the mid section to be designed in html----

Re: Blank Page Template ?

You really only need a couple of pieces to make your template. The beginning of the file:

<?php
include("common.php");
$link = getdb();
include("$install_path/templates/user_top.php");
?>

And at the bottom:

<?php
                include("$install_path/templates/user_bottom.php");
?>

Put whatever you want in the middle....

Patrick
Lead developer FreeRealty
Other claims to fame: http://www.rwcinc.net
Enrolled Agent, Licensed to Represent Taxpayers before Exams, Appeals and Conference divisions of the Internal Revenue Service.

Re: Blank Page Template ?

Perfection!!
Thanks Patrick...
I tried a few other ways and ended up breaking the pages..
I included the common but didn't think of $link,,,ended up with errors,,,my bad

-------------------------------------------------------------------
This is ideal for building new pages...thanks again...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN ">
<?php /* $Id: blank.php,v 3.1 2013/11/22 17:22:27  Exp $ */ ?>
<html>
<head>

<title>blank</title>
</head>
<body>
<?php
include("common.php");
$link = getdb();
include("$install_path/templates/user_top.php");
?>
<div class="title">blank</div>
<br>
<div>



   </div>
<br>
<?php
                include("$install_path/templates/user_bottom.php");
?>
</body>
</html>

Re: Blank Page Template ?

user_top.php sets the doctype and contains the head tags, sets the title from the database and opens the body tag. I believe the extra code you are throwing in at the top overrides those since it is before user_top.php but it might make the resultant html invalid.

Also user_bottom.php closes the body and html tags.

Patrick
Lead developer FreeRealty
Other claims to fame: http://www.rwcinc.net
Enrolled Agent, Licensed to Represent Taxpayers before Exams, Appeals and Conference divisions of the Internal Revenue Service.