Page 1 of 1

Using Macros??

Posted: Mon Mar 07, 2005 5:14 pm
by rs131
hi was wondering how scripts like vbulletin, coronto, and many others can create macros for their scripts for instance %Links% will display links, %Subject% displays the news subject, %News% displays the news, %Template% will show the page template, etc etc. I am currently using php and would like to learn how this is done. I thought it might have been xml so I searched around for it and could not find anything..... If anyone could please provide me with links, and/or help that would be appreciated lots!

basically I want to assign macros to include files and to draw informationf rom the database, so you can easily insert a <this> or %this% or $this$ or whatever to display it.

Posted: Mon Mar 07, 2005 5:26 pm
by feyd
those are template engine variables. Research into template engines. Smarty is one: http://smarty.php.net There are many others out there.