This time we will customize the look of the header and footer of your web application that created with PHPMaker version 8.0.1. There are some constants that were added into the configuration file that aims to support the change of your header and footer view. Mosf of information that we will add to the header and footer is the common functional that usually exists in a website application, and they are controlled by the usage of the related constants.
Some of these constants are for:
- Display or hide the entire header,
- Display or hide the entire footer,
- Display or hide site title in header,
- Display or hide current Username in header,
- Display or hide the Languages Selector (whether “in the header”, “below the header”, or “hide them all”),
- Text-alignment for Site Title, current Username, and Languages Selector.
- Display the style of Site Title (whether “normal”, “capitalize”, or “uppercase”),
- Logo width setting (this will adjust the space between logo image and Site Title, current Username, and Languages Selector),
- The Language Selector alignment (whether “autoadjust”, “left”, “center”, or “right”),
- Display or hide the copyright text on footer,
- Display or hide the “Back to Top” link on footer,
- Display or hide the “Terms and Conditions” link on footer,
After implementing this modifications, now you can customize your header and footer and the related items by simply changing the value of the related constants.
Updated: This modification has been tested and works fine also for the latest version, PHPMaker 8.0.3 on August 27, 2011.
All we have to do is customizing PHPMaker template files. In other words, we will not modify the generated script files.
Please click on the following image to watch the demo:

It’s not working for 8.0.3, I receive error message:
PHPmaker: control file not found! Generation aborted
You are right. That error happenned since I forgot to include the missing file. Please follow the step number 6 that I have just added a few minutes ago. I am so sorry for this unconvenience, and thanks for bringing this issue up. Let me know if you are still having the problem. Thanks.
Thanks a lot Masino for the quick fix. It’s working for me now
Two minor issues though:
1. You end up having two “logout”: a. original “logout” on the horizontal menu b. new one on the header.
2. the logo image is hardcoded “phpimages/phpmkrlogo8.png”, wonder if it can be dynamic so you read from current logo image in the project (HTML–> Site Header Logo).
Thanks
1. Yes. I created the second “logout” link in header near by the username info in order to provide the quick link for users, because for some cases, if the original logout is being moved to the sub-menu, so that users cannot see/find it quickly. In addition, the difference between the second logout and the original is, it has the confirmation alert before user deciding wants to logout or not.
2. Thanks for the feedback about the logo image. I will try to implement the dynamic logo in the future.
I have just implemented the dynamic logo, so that now you are able to use the current logo image from HTML -> Site Header of PHPMaker application. If you have implemented the former modification, then replace the following code:
echo '<a href="."><img src="phpimages/phpmkrlogo8.png" alt="" border="0" title="'.$Language->ProjectPhrase("BodyTitle").'"></a>';
?>
with the following one:
echo '<a href="."><!--##=SYSTEMFUNCTIONS.HeaderLogo##--></a>';
?>
Please note that since we use the PHPMaker system function now (in order to support dynamic logo from PHPMaker), then we cannot add the Title tag inside the logo hyperlink at the moment. If you want to add the Title tag, then you have to add it by yourself in the generated header.php file.