1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How do I create a tpl file?

Discussion in 'Programming' started by chrisj, Sep 5, 2007.

  1. #1
    I'm trying to create a tpl file on a Windows Server 2003.

    Do I need a template program to be loaded on this server to create a tpl file?

    All I seem to have to create a file is Wordpad or Notepad.
     
    chrisj, Sep 5, 2007 IP
  2. rlineker

    rlineker Well-Known Member

    Messages:
    1,534
    Likes Received:
    172
    Best Answers:
    0
    Trophy Points:
    160
    #2
    Open up notepad type in your html code. But instead of saving it as file.html save it as file.tpl

    Ryan
     
    rlineker, Sep 5, 2007 IP
  3. chrisj

    chrisj Well-Known Member

    Messages:
    606
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #3
    Is tpl supposed to be one of the choices to save to?
    Or does just putting a tpl extension make it a tpl file?
    For some reason that doesn't seem right.
     
    chrisj, Sep 5, 2007 IP
  4. cristinav

    cristinav Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    open notepad, type whatever code you want to, then go to Save As, from the drop-down box choose All Files, and then type the name of the file like this:

    filename.tpl
     
    cristinav, Sep 6, 2007 IP
  5. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #5
    TPL, like HTML, are just text files so yes, just save it with the new file extension and thats it.

    What are you using Windows Server for though if you are going down the PHP route? Generally Apache is more stable on *nix servers and IIS, whilst able to support some elements of PHP cannot support critical elements like the .htaccess file

    If you are stuck with PHP then go down the *nix server route. If you want to keep the Windows Server then go down the .Net route instead in which case you would need to create .Master files rather than .TPL which again are text files (before compiling)
     
    AstarothSolutions, Sep 6, 2007 IP
  6. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Can I just add that if you want PHP you don't HAVE to go to Unix but you should at least go to Apache. Apache is what supports .htaccess for example, not PHP or Unix, and it's available for Windows all nicely packaged with MySQL and PHP ready for you...
     
    TwistMyArm, Sep 6, 2007 IP
  7. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You dont have to go for unix/ linux (*nix) but it is a "better" combination than with windows.

    If you are using windows you have a strong case of using IIS and ASP/ ASP.Net rather than php
     
    AstarothSolutions, Sep 6, 2007 IP