TPL Files

Discussion in 'HTML & Website Design' started by zac439, May 28, 2007.

  1. #1
    I have a sliced template, and it is fully coded in CSS/HTML. The problem is, the script I got it made for uses .TPL files. How to I integrate the template into a .TPL file?

    Is there some kind of resource that will teach me, or am I better off paying someone to do it?

    Or maybe it's simple?
     
    zac439, May 28, 2007 IP
  2. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #2
    A tpl file is just an html file or fragment that has been renamed for use with a php script.

    Depending on how the script is structured with header , body and footer the tpl may have the <html> <head> and <body> tags and the closing tags for the same removed.

    With table based scripts it is also common that a table might open in the header, have a td in body and close in the footer.

    Take a hard look at the files that came with the script for a clue as to how to structure your new files. ALWAYS keep a back-up copy of the orginial and back up frequently as you make changes. Linux allows you rename somefile.tpl to somefile.tpl.old with no problem.
     
    Colbyt, May 28, 2007 IP
    zac439 likes this.
  3. zac439

    zac439 Notable Member

    Messages:
    3,074
    Likes Received:
    214
    Best Answers:
    0
    Trophy Points:
    260
    #3
    Thanks. So I just rename a html file to .tpl with the changes?

    Good explanation. repped :)
     
    zac439, May 28, 2007 IP
  4. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #4
    Subject to the limitations and guidlines above, YES that is all you do.
     
    Colbyt, May 28, 2007 IP