Jump to content


Problem with {Command}

  • Please log in to reply
1 reply to this topic

#1 xyn

  • Members
  • PipPipPip
  • Advanced Member
  • 779 posts
  • LocationNorthampton

Posted 22 October 2006 - 01:23 PM

I wanetd to create a config like what PHPBB have, on their pages
they have things like {ADMIN_LINKS} and whenthe page loads it
outputs the link to the admin panel for anyone within that rank.

I tried to use define('NAME', 'OUTPUT'); and then {NAME} but
that doesn't seem to work :l

#2 redbullmarky

  • Staff Alumni
  • Advanced Member
  • 2,863 posts
  • LocationBedfordshire, England

Posted 22 October 2006 - 01:40 PM

the tags you're referring to are 'template' tags or 'tokens' - these arent official syntax (HTML or PHP), but a custom syntax which are parsed at a later stage by the template engine. a common engine that uses these types of tags is Smarty - once it's populated the data/page that's gonna be displayed, it loads the template, looks for certain tags and replaces them with HTML.

"you have to keep pissing in the wind to learn how to keep your shoes dry..."

I say old chap, that is rather amusing!

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users