PDA

View Full Version : If condition for navigation if THIS SCRIPT is forumdisplay or showthread



Netbuddy
Sat 18th Jul '09, 7:14am
Wondering what the appropriate condition would be if I wanted to show a link to my forum index if the user is browsing either forumdisplay or showthread. (since im using cmps_index as the global index file).

This is what I have so far and get an error.


<td width="100%"><span class="navbar"><a href="$vboptions[homeurl]$session[sessionurl_q]">$vboptions[hometitle]</a> <if condition="THIS_SCRIPT == 'forumdisplay' OR THIS_SCRIPT == 'showthread' &raquo; <a href="$vboptions[forumhome].php$session[sessionurl_q]">$vboptions</a></if> $navbits[breadcrumb]</span></td>

[B]Parse error: syntax error, unexpected ';'

Zachery
Sat 18th Jul '09, 9:27am
You didnt close your if tag.

after THIS_SCRIPT == 'showthread' add "> then you need to end the conditional somewhere with </if>