Announcement

Collapse
No announcement yet.

$navbits - where is it ?

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

  • $navbits - where is it ?

    in the navbar template beta 3,

    <img src="{imagesfolder}/vb_bullet.gif" align="absmiddle"> <normalfont><b><a href="index.php?s=$session[sessionhash]">$bbtitle</a>
    <br> &nbsp; &gt; $navbits</b>
    </normalfont>
    there is a variable $navbits

    where can i edit $navbits

    so i can put a line break between the forum title and thread subject title ?
    :: Always Back Up Forum Database + Attachments BEFORE upgrading !
    :: Nginx SPDY SSL - World Flags Demo [video results]
    :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

  • #2
    Seems it's a var assigned in the calendar.php to templates nav_linked, nav_joiner and nav_linkoff, maybe other places ???

    Comment


    • #3
      $navbits isn't a template, it's a variable built from a bread-crumb style list of links, separated by the navjoiner template.

      Hope that helps

      Comment


      • #4
        Originally posted by Kier
        $navbits isn't a template, it's a variable built from a bread-crumb style list of links, separated by the navjoiner template.

        Hope that helps
        that went right over my head
        :: Always Back Up Forum Database + Attachments BEFORE upgrading !
        :: Nginx SPDY SSL - World Flags Demo [video results]
        :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

        Comment


        • #5
          Okay, let's start from the top - we have the navbar template, which contains the vBulletin tick and the name of the forum, followed by the $navbits variable...

          Like this:

          Code:
          <img src="images/vb_bullet.gif" align="middle">
          <normalfont><b><a href="index.php?s=$session[sessionhash]">$bbtitle</a> &gt;
          $navbits</b></normalfont>
          The $navbits part is created by the makenavbar(..) function in admin/functions.php, so that's what you would need to edit if you wanted to alter the appearence of the $navbits part...

          Any clearer yet?

          Comment


          • #6
            thanks kier

            that was clear enough

            suggestion for beta 4 and beyond: why not make the navbit a template for us
            Last edited by George L; Mon 2 Apr '01, 5:46am.
            :: Always Back Up Forum Database + Attachments BEFORE upgrading !
            :: Nginx SPDY SSL - World Flags Demo [video results]
            :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

            Comment


            • #7
              Hi Kier,

              Thanks for the explanation. I'm pretty sure I follow, but after looking at the functions.php file, I still can't figure out what I'm doing exactly. I'm trying to add a class to the links in the breadcrumb...but it seems as if the links themselves are generated elsewhere.

              Thanks for the link as well, eva.
              Movie Forums - Now With 28% More Bruce Willis

              Comment


              • #8
                Originally posted by TWTCommish
                Hi Kier,

                Thanks for the explanation. I'm pretty sure I follow, but after looking at the functions.php file, I still can't figure out what I'm doing exactly. I'm trying to add a class to the links in the breadcrumb...but it seems as if the links themselves are generated elsewhere.

                Thanks for the link as well, eva.
                yeah i looked into functions.php and couldn't understand it either (then again i don't know php )
                :: Always Back Up Forum Database + Attachments BEFORE upgrading !
                :: Nginx SPDY SSL - World Flags Demo [video results]
                :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

                Comment


                • #9
                  Any advice for us Kier? I'm desperate! My links look terrible right now.
                  Movie Forums - Now With 28% More Bruce Willis

                  Comment


                  • #10
                    i'll write a little tutorial for you guys shortly

                    Comment


                    • #11
                      Originally posted by Kier
                      i'll write a little tutorial for you guys shortly
                      thanks so even in beta 4.1 there is no change to templates for this navbits ?
                      :: Always Back Up Forum Database + Attachments BEFORE upgrading !
                      :: Nginx SPDY SSL - World Flags Demo [video results]
                      :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

                      Comment


                      • #12
                        There is now a template to edit.

                        the template is called nav_linkon and contains
                        Code:
                        <a href="$nav_url">$nav_title</a>
                        if you want to apply a CSS style to it, simply define the style in the headinclude template, something like this:
                        Code:
                        .mynavclass { font-family: tahoma; font-size: 72pt }
                        then edit the nav_linkon template to look like this:
                        Code:
                        <a href="$nav_url" class="mynavclass">$nav_title</a>
                        That should solve your problems, and no PHP scripting needed

                        The corresponding template for non-link elements of $navbits is (funnily enough) nav_linkoff.

                        i don't recommend that you use the style definition example values i posted here... hehe

                        Comment


                        • #13
                          thanks kier !!!
                          :: Always Back Up Forum Database + Attachments BEFORE upgrading !
                          :: Nginx SPDY SSL - World Flags Demo [video results]
                          :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

                          Comment

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