Web Hosting Talk







View Full Version : Auto Place Header & Footer On Sites?


TrophyHost
07-19-2005, 03:22 PM
Is there any scripts that will place a header and footer automatically on sites created? So if I created a site, and the person uploaded a page it would show my header and footer.
Thanks
-Ericsson

Koobi
07-19-2005, 03:41 PM
have you considered auto_prepend_file (http://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file) and auto_append_file (http://www.php.net/manual/en/ini.core.php#ini.auto-append-file) ?

you can set them via .htaccess, according to the manual.

HiVelocity
07-19-2005, 03:45 PM
You could do this with server side includes

namelayer
07-19-2005, 03:47 PM
There is also mod_layout
http://tangent.org/index.pl?lastnode_id=478&node_id=362
Worked well for me.

TrophyHost
07-19-2005, 05:40 PM
I have a VPS, but I only want it to work on one reseller account. How can I do that?

namelayer
07-19-2005, 06:14 PM
Originally posted by Ericsson
I have a VPS, but I only want it to work on one reseller account. How can I do that?
If you have httpd.conf edit access then you will be able to use mod_layout with any domain/subdomain under that httpd.

TrophyHost
07-19-2005, 06:19 PM
Ok thanks for the help, i'll try it out.

VolkNet
07-19-2005, 08:56 PM
Why would you install a mod when you can use a .htaccess file to change it very easily?

Personally I think you should just use what Koobi suggested. It's the easiest method.

namelayer
07-19-2005, 09:56 PM
Originally posted by VolkNet
Why would you install a mod when you can use a .htaccess file to change it very easily?

Personally I think you should just use what Koobi suggested. It's the easiest method.
Maybe because the mod is very simple to use?

The Prohacker
07-19-2005, 11:51 PM
Originally posted by VolkNet
Why would you install a mod when you can use a .htaccess file to change it very easily?

Personally I think you should just use what Koobi suggested. It's the easiest method.


Maybe they have files that aren't PHP :)

TrophyHost
07-22-2005, 01:05 PM
Would mond_layout add an extra bit onto their page or would it cover a bit up?

namelayer
07-22-2005, 04:27 PM
It will add to the page whatever you have in your header & footer files that mod_layout reads from. Kind of like using includes in php but forced on every page under that virtual host with the commented mod in place.

easternBrain
07-23-2005, 06:11 AM
I am glad this thread was created, just what I was looking for..

TrophyHost
07-23-2005, 07:09 PM
Would anyone be willing to set up mod_layout up for me?
In return I can give you advertising space, please PM me.

TrophyHost
07-25-2005, 11:28 AM
Mod_layout gave a load of errors, wheats the next best thing?