Hi guys, have a question about TPL files?

Discussion in 'HTML & Website Design' started by easydolla, Sep 30, 2008.

  1. #1
    Hi all,

    I have a question about the filetype .TPL

    I'm not too much illiterate in PHP and basic HTML, however I am no expert coder.

    I have recently purchased a script that I will be running on one of my websites, and its all encoded, basically the only configuration I can do is design/templates.

    It uses the Smart template system. My question is , what are these .TPL filetypes? They seem to be graphics of some kind, I am trying to open them however I don't know what program to open it with.

    I need to get into the designs and modify them

    Does anybody know what this is?

    Thanks in advance
     
    easydolla, Sep 30, 2008 IP
  2. spc

    spc Well-Known Member

    Messages:
    136
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    125
    #2
    TPL are not graphic files. TPL are template files, which you can open with notepad or any text editor program.

    In scripts, TPL are used to divide php code from design. TPL files contain the design where some php variables are displayed. the php variables contain the functionality of the script. and thus you can develop a template driven website.

    TPL is the filetype that is generated by Smarty. To know about smarty, you can have a look at http://en.wikipedia.org/wiki/Smarty

    Also, some scripts use their own template system like smarty. For example, phpmydirectory has a template system which is encoded and they also use tpl files.
     
    spc, Sep 30, 2008 IP
  3. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Cash Nebula, Sep 30, 2008 IP
  4. easydolla

    easydolla Peon

    Messages:
    403
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hey thanks guys. I am looking into hire a coder on elance or something to do all this for me. Sounds too complicated for me!
     
    easydolla, Sep 30, 2008 IP
  5. serialCoder

    serialCoder Guest

    Best Answers:
    0
    #5
    well, you can also try to find here at dp i'm sure there are a lot of people here that can do the job for you
     
    serialCoder, Sep 30, 2008 IP
  6. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #6
    It's pretty easy if you know some HTML, use your favourite text editor and turn on the colour coding - that makes it tons easier to read.

    Then you can just figure out what each bit does, for example it might have:

    For instance if you want to put the heading in the <title> up the top, you know that {SMARTY_MAIN_HEADING} is what generates the heading. Just have to use some logic to figure it out, you don't need to know what everything in the {} actually means (and {SMARTY_MAIN_HEADING} means nothing by the way, I just made it up for an example)
     
    rochow, Sep 30, 2008 IP
  7. easydolla

    easydolla Peon

    Messages:
    403
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks for shedding some light on that for me. I went through the files and can see what to do now! Thanks!
     
    easydolla, Sep 30, 2008 IP
  8. serialCoder

    serialCoder Guest

    Best Answers:
    0
    #8
    that guy Rochow is probably one of the best guys at DP when it comes to coding and skinning :)
     
    serialCoder, Oct 1, 2008 IP
  9. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #9
    Stop it I'm blushing :p

    SerialCoder can kick ass on all your PHP desires :D
     
    rochow, Oct 1, 2008 IP
  10. serialCoder

    serialCoder Guest

    Best Answers:
    0
    #10
    LoL, lets not hijack the thread and keep the topic about Smarty :eek:
     
    serialCoder, Oct 1, 2008 IP
  11. easydolla

    easydolla Peon

    Messages:
    403
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Haha oh you guys.

    Im looking for somebody to do some work for me, if any one of you are interested, I have a script that looks like crap right now, it needs some major tweakage on design. Please PM me if you are looking for work. But please note I do not have a large budget at all. It shouldn't be much work at all.
     
    easydolla, Oct 1, 2008 IP