Change nav bar buttons if viewing certain page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tech
    New Member
    • Jun 2004
    • 11
    • 3.0.1

    Change nav bar buttons if viewing certain page

    I use Vbadvanced portal on my website. Is there a way I can change the buttons in the nav bar depending on if someone is viewing the forums or the portal page?

    I want it to show Forum Rules (linked) if you are viewing the forum or just Forums (linked) if you are viewing the portal.
  • Floris
    Senior Member
    • Dec 2001
    • 37767

    #2
    Not sure how vB Advanced works, but you can try to control it with a conditional.
    Code:
    <!-- Assuming you use index.php for the portal -->
    <!-- Assuming you use forum.php for the forumhome -->
    <!-- Assuming you use rules.php for the forum rules -->
    <if condition="THIS_SCRIPT == 'index'">
       <a href="forum.php">Forum</a>
     <else />
       <a href="rules.php">Forum Rules</a>
    </if>
    Well, you get the idea

    Comment

    • MegaHertz
      Senior Member
      • Jun 2003
      • 360
      • 3.0.7

      #3
      You can find the instructions by Zachery here:

      Comment

      • Tech
        New Member
        • Jun 2004
        • 11
        • 3.0.1

        #4
        Thanks for the replies!

        Comment

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