https://www.icyphoenix.com/viewtopic.php?f=28&t=7615&p=51389#p51389
-----------------------------------
Mighty Gorgon
Thu 03 Feb, 2011 12:49

Re: [MOD] Tab Menu For Icy
-----------------------------------
[quote user="mort" post="51363"]Nice, :mryellow: 

But how about trying to add some php code to the default header to make the menu "Location-Smart" so that the buttons stay changed when at a specific location like "viewtopic.php" rather than just a mouseover change - Just like in your picture, the "Forum" button would stay up while one is at that location?

Would possibly save a lot of editing for each template set?  :P[/quote]
In current development version I have added some vars which should easily allow doing that.

[codeblock]	'SCRIPT_NAME' => str_replace('.' . PHP_EXT, '', $userdata['page']['page_name']),[/codeblock]

This is the main var used for that... which could be used to match the current page without having to insert extra PHP code.


