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
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.
This is a good intro article on using Smarty: Zend Developer Zone - PHP Templating with Smarty As you can see in the article, and as spc said, they are just text files with a mix of HTML and Smarty tags.
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!
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
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)
Thanks for shedding some light on that for me. I went through the files and can see what to do now! Thanks!
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.