|oR|Greg
12-14-2005, 04:37 PM
I use a dynamic version but I want a slight twist to it, so I wrote some code, but it's not working. Here's what I'm trying to accomplish:
It should work the way it does now, but, if you're not on either the Forums, or the Home url's... it should display BOTH links...
Here's what I wrote that isn't working:
<if condition="THIS_SCRIPT == 'adv_index'">
<td class="vbmenu_control">
<a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]"> Forums </a>
</td>
<elseif condition="THIS_SCRIPT == 'index'">
<td class="vbmenu_control">
<a href="$vboptions[homeurl]?$session[sessionurl]"> Home </a>
</td>
<else />
<td class="vbmenu_control">
<a href="$vboptions[homeurl]?$session[sessionurl]"> Home </a>
</td>
<td class="vbmenu_control">
<a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]"> Forums </a>
</td>
</if>
The problem I'm having is that it's still displaying both links on ANY page, it's aw if the elseif and else statements are running as well as the first if... so they're all processing... I don't know what's wrong... So I also broke it out as 3 if's, that gets me slightly better results, but the final if with the !='s isn't working... sigh
<if condition="THIS_SCRIPT != 'adv_index' OR 'index'">
<td class="vbmenu_control">
<a href="$vboptions[homeurl]?$session[sessionurl]"> Home </a>
</td>
<td class="vbmenu_control">
<a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]"> Forums </a>
</td>
</if>
It should work the way it does now, but, if you're not on either the Forums, or the Home url's... it should display BOTH links...
Here's what I wrote that isn't working:
<if condition="THIS_SCRIPT == 'adv_index'">
<td class="vbmenu_control">
<a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]"> Forums </a>
</td>
<elseif condition="THIS_SCRIPT == 'index'">
<td class="vbmenu_control">
<a href="$vboptions[homeurl]?$session[sessionurl]"> Home </a>
</td>
<else />
<td class="vbmenu_control">
<a href="$vboptions[homeurl]?$session[sessionurl]"> Home </a>
</td>
<td class="vbmenu_control">
<a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]"> Forums </a>
</td>
</if>
The problem I'm having is that it's still displaying both links on ANY page, it's aw if the elseif and else statements are running as well as the first if... so they're all processing... I don't know what's wrong... So I also broke it out as 3 if's, that gets me slightly better results, but the final if with the !='s isn't working... sigh
<if condition="THIS_SCRIPT != 'adv_index' OR 'index'">
<td class="vbmenu_control">
<a href="$vboptions[homeurl]?$session[sessionurl]"> Home </a>
</td>
<td class="vbmenu_control">
<a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]"> Forums </a>
</td>
</if>