Quote:
Originally Posted by Alfa1
I have these forum tabs on my site. I apply conditionals to them, so that the tab that corresponds to the section of the site you are on gets highlighted.
To do this for LDM, I need to define what the cat id variables of LDM are.
I tried this, but this didn't work:
PHP Code:
<if condition="in_array($foruminfo[catid], array(126,39, 43))"><li id="active"><a href="http://www.mysite.com/forum/local_links.php?catid=126" id="active">Videos</a></li><else /><li><a href="http://www.mysite.com/forum/local_links.php?catid=126">Video</a></li></if>
Andrew, could you please inform me of the cat id variables?
|
Well, I finally sorted this out.
I installed the basic
tab menu hack and modified the navbar template by putting
Code:
<br />
$tabbars
<br />
at the end.
I then modified the standard tabbars template so that there was a menu item defined for LDM:
Code:
<li><a href="/forums/local_links.php" class="<if condition="in_array(THIS_SCRIPT, array('local_links', 'local_links_admin', 'local_links_search'))">tabbarssix<else />tabbarsone</if>" onMouseover="expandcontent('sc6', this)">Downloads</a></li>
This sequence will use the tabbarsone style if you are outside LDM and the tabbarssix style if you are inside LDM.
I'm sure you can take it from here. Bear in mind that you will need to change the strings inside the in_array() statement if you have renames the main LDM scripts.