Under secutity settings enable PHP in templates. One thing to be aware of is your PHP code can be exposed because the template can be requested directly and it is sent plain text.
{USERNAME}
In functions.php you'll find a giant array near the bottom. Around line 4340...
Code: Select all
// The following assigns all _common_ variables that may be used at any point in a template.
$template->assign_vars(array(
'SITENAME' => $config['sitename'],
'SITE_DESCRIPTION' => $config['site_desc'],
'PAGE_TITLE' => $page_title,
You can add your own there if you want it available in all templates. viewtopic.php, viewforum.php and other files have additional arrays also found near the bottom.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”
Attributed - Thomas Edison