Jump to content


Photo

TPL and other Template Files


  • Please log in to reply
5 replies to this topic

#1 slipperyfish

slipperyfish
  • Members
  • PipPipPip
  • Advanced Member
  • 40 posts

Posted 14 July 2006 - 05:38 PM

Hey everyone. Im wanting to create a website using ".tpl" files, and have variables like: "{HEADER}". However I'm not sure how to create this, I've looked around and I can't find anything that makes it simple, or gives a complete scirpt to be able to modify. So does anybody have some links, quick tips or snippets of code I could use?

-Thanks.

#2 Oldiesmann

Oldiesmann
  • Members
  • PipPipPip
  • Advanced Member
  • 72 posts
  • LocationCincinnati, Ohio

Posted 14 July 2006 - 05:40 PM

That's part of the Smarty Template Engine. Check out http://smarty.php.net for more info.
The Oldiesmann
SMF Project Manager
SMF+Gallery2 - Beta3.1 now available

#3 slipperyfish

slipperyfish
  • Members
  • PipPipPip
  • Advanced Member
  • 40 posts

Posted 14 July 2006 - 05:41 PM

ahh, i've heard about SMART templates. It has a downlaods page, do i have to install anything into my PHP config, because I don't have access....

#4 Oldiesmann

Oldiesmann
  • Members
  • PipPipPip
  • Advanced Member
  • 72 posts
  • LocationCincinnati, Ohio

Posted 14 July 2006 - 06:06 PM

You do have to download the smarty library, but you can put the smarty files in whatever directory you want, and you shouldn't have to modify your PHP config file as long as you tell your script where to find the smarty files (or smarty.class.php is in the same directory as the script). You can also use ini_set() to change the include_path if you want.
The Oldiesmann
SMF Project Manager
SMF+Gallery2 - Beta3.1 now available

#5 slipperyfish

slipperyfish
  • Members
  • PipPipPip
  • Advanced Member
  • 40 posts

Posted 14 July 2006 - 07:16 PM

ahhhh! thankyou very much :)

#6 Buyocat

Buyocat
  • Members
  • PipPipPip
  • Advanced Member
  • 267 posts

Posted 14 July 2006 - 07:18 PM

Just follow their quick install guide.  The most you should need to do is change the permissions for two directories which you can do with a FTP program.
Looking for some easy-to-use tools?  Try these, https://sourceforge....jects/utils-php -- I made them myself.  They're distinct tools which are easy to understand and use.  See some examples uses at http://www.anotherearlymorning.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users