ozone Posted February 18, 2007 Share Posted February 18, 2007 Hi all. So, I`m writing smth like community & I need few things. I have seen in other scipts that they send emails filled with {var} or %var, when scriptis running it fills needed vars to those gaps. files calles page.tpl if I remember good. Also if someone interests, please PM or email me, becouse nw there`s two of us Thx for helping. Link to comment https://forums.phpfreaks.com/topic/39044-question-about-text-templates/ Share on other sites More sharing options...
skali Posted February 18, 2007 Share Posted February 18, 2007 These files are template files with names of variables between {varname} or %varname% or anything else there are plenty of templting systems out there including smarty templating system, phplib templates etc. You can write a simple one yourself. Create a template file with all the variables you want to be replaced with {} or %% format. In your php code replace all the template variables with variables in your php code. Simple as that Link to comment https://forums.phpfreaks.com/topic/39044-question-about-text-templates/#findComment-188150 Share on other sites More sharing options...
ozone Posted February 18, 2007 Author Share Posted February 18, 2007 I think this is not exactly I was thinking about... For example: phpBB, i install it, upload own language files witch includes arrays of words. Then on event for ex. email.. sends mail and content is replased by his username and else... simple that.... Link to comment https://forums.phpfreaks.com/topic/39044-question-about-text-templates/#findComment-188190 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.