Announcement

Collapse
No announcement yet.

Change nav bar buttons if viewing certain page

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

  • 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.

  • #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


    • #3
      You can find the instructions by Zachery here:

      http://www.vbadvanced.com/forum/showthread.php?t=41

      Comment


      • #4
        Thanks for the replies!

        Comment

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