Pushing my luck here..now have a php page that requests a password for those not logged in and have now tried to make this page a .dwt page that can include an editable area for my client. Have done php template pages before but having trouble with the layout of my new template page.
The ammended test2.php file is below and below that the template page produced
<?php
define('IN_COPPERMINE', true);
define('LOGIN_PHP', true);
require('include/init.inc.php');
if (!USER_ID) {
cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
pageheader('Your page title goes here');
// your actual page content starts here
starttable("100%", 'Content block title', 1);
?>
<link href="themes/chaoticsoul/style.css" rel="stylesheet" type="text/css">
<tr>
<td class="tableb" valign="top" align="center">
this is a test page to see where the text would go
</td>
</tr>
<?php
endtable();
// your actual page content ends here
pagefooter();
ob_end_flush();
?>
TEMPLATE PAGE BELOW
members_text.php
<?php
define('IN_COPPERMINE', true);
define('LOGIN_PHP', true);
require('../gallery/include/init.inc.php');
if (!USER_ID) {
cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
pageheader('Your page title goes here');
// your actual page content starts here
starttable("100%", 'Content block title', 1);
?>
<link href="../gallery/themes/chaoticsoul/style.css" rel="stylesheet" type="text/css">
<tr>
<td class="tableb" valign="top" align="center">
<!-- TemplateBeginEditable name="body_text" -->body_text<!-- TemplateEndEditable -->
</td>
</tr>
<?php
endtable();
// your actual page content ends here
pagefooter();
ob_end_flush();
?>
as you can see the basic page now works (see
http://www.swing-bandb.co.uk/gallery/new_test.php) but whena page is created from a template page the formatting has changed with the text being larger in the editable area and it is also offset to the left when compared to the original page
see
http://www.swing-bandb.co.uk/gallery/test2.phpRather hoping that an answer can be given..
Promise your credits will remain forever you have already been a great help!
Thanks Terry