How can I access the variable from other .tpl.php file? I am working on Advanced forum. And for my need I am editing advanced-forum.naked.post.tpl.php and I want to add the author name at one place. But this template do not have author name, but it has entire author pane printed. Now the variable for the author name is in advanced-forum.naked.author-pane.tpl.php. And it has a author-name code

&lt;?php /* Account name */ ?&gt;
      &lt;div class="author-pane-line author-name"&gt;
        &lt;?php print $account_name; ?&gt;
   &lt;/div&gt; 


now if I am direct pasting this code to advanced-forum.naked.post.tpl.php, it shows error, that variable is not defined. 
Moreover, both this tpl files are in the advanced forum module/style file. So, how can I access that variable in that .tpl.php file? Very Thanks.
You can add custom variables using hook_preprocess_node() in your theme's template.php file.

Here's how to add the account name:

function YOUR_THEME_preprocess_node(&amp;$variables) {
  $variables['account_name'] = format_username($variables['account']);
}