PDA

View Full Version : What page am I on?


robertpro2a
08-11-2008, 04:23 AM
I'm trying to make an "active" navbar, i.e. depending on what page you're on, the navbar italicizes. So, somewhere in the "Header" style manager, I need to do something like this:

<if condition="$show['member']"> AND if current page = controlpanel

<i>You Are Viewing Your Control Panel

Thanks.

Dismounted
08-11-2008, 07:13 AM
<if condition="$show['member'] AND THIS_SCRIPT == 'usercp'">You are in the User CP</if>

robertpro2a
08-12-2008, 01:00 AM
Thank you very much.