Breadcrumb code exist but isn't displayed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alessio
    Member
    • Mar 2007
    • 73
    • 5.1.x

    Breadcrumb code exist but isn't displayed

    The breadcrumb navigation links do not come out, also if the code is present in the header template in this default way:
    Code:
    <if condition="is_array($navbits)">
                <table cellpadding="0" cellspacing="0" border="0">
                <tr valign="bottom">
                    <td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
                    <td>&nbsp;</td> 
                    <td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
                </tr>
                <tr>
                    <td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><if condition="$_SERVER['REQUEST_METHOD'] == 'POST'"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_$stylevar[textdirection].gif" alt="" border="0" /><else /><a href="$navbar_reloadurl"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_$stylevar[textdirection].gif" alt="$vbphrase[reload_this_page]" border="0" /></a></if> <strong>$navbits[lastelement]</strong></td>
                </tr>
                </table>
            <else />
                <div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
            </if>
    Have been missed something somewhere?
    Thank.
    Last edited by alessio; Sat 1 Nov '08, 7:45am.
    Integrations of any CMS with vBulletin
  • Lynne
    Former vBulletin Support
    • Oct 2004
    • 26255

    #2
    That code looks correct, however it is usually in the navbar template. If you move it to the header, then you need to make sure that the header template is evaled *after* the navbits are defined in your page.

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools &lt;- awesome site for html/css help

    Comment

    • alessio
      Member
      • Mar 2007
      • 73
      • 5.1.x

      #3
      I was not completely exact with explanation of problem,
      to be more precise,
      seem that the condition:
      Code:
      <if condition="is_array($navbits)"><h1>tester</h1> </if>
      never become executed.

      I have also try to put, right now, the entire code after all headers and just after the $spacer_open but nothing, the condition isn't executed and the only first bit appear. What can be happen?
      Integrations of any CMS with vBulletin

      Comment

      • Lynne
        Former vBulletin Support
        • Oct 2004
        • 26255

        #4
        It's not evaling in the header because navbits isn't defined yet. If you put that code in header and then go to forumdisplay.php, $navbits is evaled on line 270 of that page but the header is evaled when global.php gets called on line 101 (I think that's how it works).

        Please don't PM or VM me for support - I only help out in the threads.
        vBulletin Manual & vBulletin 4.0 Code Documentation (API)
        Want help modifying your vbulletin forum? Head on over to vbulletin.org
        If I post CSS and you don't know where it goes, throw it into the additional.css template.

        W3Schools &lt;- awesome site for html/css help

        Comment

        • alessio
          Member
          • Mar 2007
          • 73
          • 5.1.x

          #5
          Really thank for your help Lynne, unfortunately it do not work also if i put the code after all, on footer (where we can be sure that anything has been call).
          What can happen? I follow looking for something more deep into, but please if any idea can come out in help is really appreciate boys.
          Integrations of any CMS with vBulletin

          Comment

          • Lynne
            Former vBulletin Support
            • Oct 2004
            • 26255

            #6
            The footer, header, and headinclude all get evaled in global.php around line 825. If you have the navbits in any of those, they will not eval fully.

            Please don't PM or VM me for support - I only help out in the threads.
            vBulletin Manual & vBulletin 4.0 Code Documentation (API)
            Want help modifying your vbulletin forum? Head on over to vbulletin.org
            If I post CSS and you don't know where it goes, throw it into the additional.css template.

            W3Schools &lt;- awesome site for html/css help

            Comment

            • alessio
              Member
              • Mar 2007
              • 73
              • 5.1.x

              #7
              Sorry Lynne, so where i should put/do, just to be sure, and achieve the result to display complete bits (just for test), if you can indicate? Thank you.
              Integrations of any CMS with vBulletin

              Comment

              • alessio
                Member
                • Mar 2007
                • 73
                • 5.1.x

                #8
                Ops! Thanks Lynne! I had forget something in the way, it has been solved now! Also thank to yours info.
                Best regards to you.
                Integrations of any CMS with vBulletin

                Comment

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