I am trying to run any particular code in a .tpl file and wondering how this can be accomplished if anyones knows. I'm trying to modify phpbb2 forums .. and have tried their support forums but no one is answering me would be much appreciated if someone could help me
phpbb2 "compiles" the tpl when it's requested.. So you may not be able to effectively add real code to it.. template.php in the includes folder has all their code for that particular thing..
depending on what and how you want to include it, you could add a couple template data chunks or a different template file, and insert it into the queue where you want it to show.. or just edit the template file directly..
I'm guessing this would go in overall_header.tpl? the way I've done specialized code running in the phpbb I've modified, I added a few lines to one of the main php files phpbb uses. Adding a template variable, and calling my functions to set the proper one to control what content changed using the template variable naming system...