Announcement Announcement Module
Collapse
No announcement yet.
Extending the Navbar Page Title Module
Move Remove Collapse
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Extending the Navbar

    #1
    I can't figure out how to extend the navbar to the full 100% of the page. Please note that I do not want the breadcrumb to be extended any...just the Navbar.

    Any ideas??

    I attached an image to show you what I'm talking about...

  • #2
    The problem that you are facing involves the use of spacer_open and spacer_close having hardcoded width figures from the admincp's CSS sections.

    IT took me a long time to work out that the spacer_open template was causing me the problems i was having with adding a left menu.

    The easiest method to solve your problem would be to "close" the spacer before your navbar, and reopen it before the breadcrumb. Though, this will make the navbar 100% width of the page, and you can probably easily enough modify the code from there.

    Before the navbar add

    Code:
    $spacer_close
    And then straight after the navbar, add

    Code:
    $spacer_open
    There might be benefits in copying the spacer_open template and spacer_close templates to surround the navbar and modify them to be the width you want (or just use width="$stylevar[outerwidth]" in the navbar table)

    Let me know how you go

    Comment


    • #3
      worked like a charm!! thanks, merk. happy holidays.

      Comment


      • #4
        I did insert the $spacer_open and $spacer_close codes before and after the navbar like stated in this topic and it works 100% on the Forumhome...
        this code was to extend the navbar to a full 100% of the max page width, see 1st post

        However, I use VbAdvanced and the pages with VbA the code isn't working on, it simply stays as it is.
        I've been thinking about this but I can't figure out why just Forumhome and not the rest of the pages with the navbar on it...

        Maybe anyone here knows?
        Thank you.

        Comment


        • #5
          Add $spacer_close and $spacer_open on either side of $navbar in your adv_portal template.

          Comment


          • #6
            ya, sounds very logical but it wont work

            Comment


            • #7
              Originally posted by FrankHolland
              I did insert the $spacer_open and $spacer_close codes before and after the navbar like stated in this topic and it works 100% on the Forumhome...
              this code was to extend the navbar to a full 100% of the max page width, see 1st post

              However, I use VbAdvanced and the pages with VbA the code isn't working on, it simply stays as it is.
              I've been thinking about this but I can't figure out why just Forumhome and not the rest of the pages with the navbar on it...

              Maybe anyone here knows?
              Thank you.


              has anybody been able to figure this out? i would greatly appricate help with this. I only have this on my homepage as well. it's fine on all the other pages when i use the spacer open/close idea from above.

              Comment


              • #8
                fixed!


                added
                global $spacer_close, $spacer_open;

                in vba_cmps_include_bottom.php file

                right under:

                global $vboptions, $vba_options, $vbphrase, $stylevar, $bbuserinfo, $show, $pmbox;

                Comment

                Working...
                X