Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: HTML template

  1. #1
    New Coder
    Join Date
    May 2009
    Posts
    58
    Thanks
    8
    Thanked 4 Times in 4 Posts

    HTML template

    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.

  • #2
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    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?
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #3
    New Coder
    Join Date
    May 2009
    Posts
    58
    Thanks
    8
    Thanked 4 Times in 4 Posts
    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.

  • #4
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    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.

  • #5
    New Coder
    Join Date
    May 2009
    Posts
    58
    Thanks
    8
    Thanked 4 Times in 4 Posts
    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.

  • #6
    New Coder
    Join Date
    May 2009
    Posts
    58
    Thanks
    8
    Thanked 4 Times in 4 Posts
    Can anyone please help?

  • #7
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •