Quote:
Originally Posted by Alfa1
This works!!!
The only three things that I need to adjust, is to include the LDM main page & LDM's search page and prevent my forum tab to be active when the visiting LDM.
This is the code I have used for my forum tab:
|
When you are on the LDM main page, $viewcatid will be equal to -1
When you are viewing the results of a search, the variable $this_action will be equal to "show"
When you are inside LDM, $this_action is always set, and I imagine it's not set when you are in a forum
So I suggest you modify your forum tab code to say something like
PHP Code:
if condition="!$this_action and (THIS_SCRIPT=='index' or in_array(..))">...</if>
Your LDM search check could be
PHP Code:
if condition="$this_action=='show')">...</if>
Your LDM main page check could be
PHP Code:
if condition="$this_action=='links') and $viewcatid<0">...</if>
and so on