View Full Version : HTML template
06-01-2009, 02:16 AM
A year ago I was learning PHP, and while I was I took a look at the source code for phpBB2. They had HTML templates, that you could redesign, but the php was not changed. I was wondering how they did this. I can not find this.
06-01-2009, 07:29 PM
I'm not certain about this particular application, but with all of the includes used for php blogs and forums I believe there is usually a php "config" file that allows you to set and change variables for SQL queries AND, more importantly for your needs, to manipulate filepaths for the includes when you change templates. After you have that updated all you have to do is upload the php/html bits and pieces to the correct places and the template would be in effect.
Do you have a more specific question about this? If so please give more details of what you are trying to do and what you are working with. Your original post gives the impression that you are working on your own php setup and you just want to add the ability to use templates that behave like what you have seen before -- so you are not actually dealing with phpBB2, you just want to use their template method. Is this correct?
06-01-2009, 08:36 PM
that is exactly correct. i am wanting to make templates for a community website, so others who know how to can create templates for their group. If any one knows how to create these let me know please.
06-01-2009, 11:22 PM
Do you want to keep content consistant? If so, you could just let the users post CSS and include that in the page's head.
06-01-2009, 11:31 PM
That is one way I was going to have them be able to, but What if they want a completly different layout, or more/less options available for their group? Plus I was hoping that I would be able to make some of the HTML templates since this site will be used for a game, community, and possibly schools.
06-07-2009, 11:43 PM
Can anyone please help?
06-08-2009, 08:22 PM
Apart from showing an API (maybe use some sort of pseudocode which is interpreted server-side, like <content/> which would map to a PHP function), I can't think of anything else.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.