<li <if THI_SCRIPT = "portal.php" then>class="active"</if>><a href....>Portal
<li <if THI_SCRIPT = "memberlist.php" then>class="active"</if>><a href....>Miembros
<li <if THI_SCRIPT = "index.php" then>class="active"</if>><a href....>Foros
Cita:Y sí, pero un switch case quedaría mejor.
switch(THIS_SCRIPT)
{
case 'portal.php':
$Portal = " class=\"active\"";
break;
case 'index.php':
$Index = " class=\"active\"";
break;
}
<li{$Portal}><a href="{$settings['bburl']}/portal.php">Portal</a></li>
<li{$Index}><a href="{$settings['bburl']}/">Index</a></li>
switch(THIS_SCRIPT)
{
case 'portal.php':
$Portal = " class=\"active\"";
break;
case 'index.php':
$Index = " class=\"active\"";
break;
}
<li<if THI_SCRIPT = "portal.php" then> class="active"</if>><a href....>Portal
<li<if THI_SCRIPT = "memberlist.php" then> class="active"</if>><a href....>Miembros
<li<if THI_SCRIPT = "index.php" then> class="active"</if>><a href....>Foros