You can use the phorum_page definition for that, which is set on every page. What I did in my own template is set $PHORUM["DATA"]["PHORUM_PAGE"] to the phorum_page value. So my header.tpl starts with:
<?php $PHORUM["DATA"]["PHORUM_PAGE"] = phorum_page ?>
After that, I can use the following type of construction in the template navigation:
{IF PHORUM_PAGE search}
<li><a href="{URL->SEARCH}">{LANG->Search}</a></li>
{ELSE}
<li class="active">{LANG->Search}</li>
{/IF}
If you need to know the phorum_page, then look at the start of the script that is opened in your browser or add a {PHORUM_PAGE} statement to the template, so the page will be printed on screen.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce