Jump to content

Archived

This topic is now archived and is closed to further replies.

xyn

Problem with {Command}

Recommended Posts

Hey
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

Share this post


Link to post
Share on other sites
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 [url=http://smarty.php.net/]Smarty[/url] - 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.

cheers
Mark

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.