Black

What am I missing with the navbar? - Black

What am I missing with the navbar?

by JordanK » Tue Aug 02, 2016 11:30 pm

I made an "aboutus.php" file and a "aboutus_body.html" file in the root and template folders respectively.

I edited includes/functions.php to include

Code: Select all

U_ABOUT'   => append_sid("{$phpbb_root_path}aboutus.$phpEx"),


The page displays properly.

I added this to the navbar_header.html below the <!-- IF U_SITE_HOME --> and <!-- IF not S_IS_BOT and (S_DISPLAY_MEMBERLIST or U_TEAM) --> conditions.

Code: Select all

            <!-- IF U_ABOUT -->
               <li class="tab about">
                  <a class="nav-link" href="{U_ABOUT}" data-navbar-reference="about">About Us</a>
               </li>
            <!-- ENDIF -->


The navbar shows the link as I expected.

When I go to my new "About US" page, the navbar keeps the "Forums" link highlighted.
Forums page:
Image
Memberlist page:
Image
About Us page:
Image

I noticed this line in the memberlist.php file:

Code: Select all

$template->assign_var('S_IN_MEMBERLIST', true);


I am assuming this is somehow related to what I need to do to highlight "About Us" when that page is active, but I am stuck.

Any help is greatly appreciated.
JordanK
Registered User
Posts: 1
Joined: Tue Aug 02, 2016 11:07 pm