Announcement

Collapse
No announcement yet.

If condition for navigation if THIS SCRIPT is forumdisplay or showthread

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • If condition for navigation if THIS SCRIPT is forumdisplay or showthread

    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.
    Code:
    <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[bbtitle]</a></if> $navbits[breadcrumb]</span></td>
    Parse error: syntax error, unexpected ';'

  • #2
    You didnt close your if tag.

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

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X