Quote:
Originally Posted by Dr.CustUmz
HTML Code:
<a href="" class="class<if condition="(THIS_SCRIPT=='index')"> active</if>">Home</a>
<a href="" class="class<if condition="($_REQUEST['do']=='page')"> active</if>">Page</a>
<a href="" class="class<if condition="in_array(THIS_SCRIPT, array(showthread,forumdisplay))"> active</if>">Threads</a>
<a href="" class="class<if condition="($_REQUEST['do']!='AD')"> active</if>">Highlight if not active</a>
|
This is the most logical.
Note: Maybe you know, you should always specify the name of that file first in the custom php page.
custom.php
PHP Code:
<?php
define('THIS_SCRIPT', 'custom');