Adding navbar buttons in templates/skins

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mikemdg
    New Member
    • Feb 2009
    • 3
    • 3.8.x

    Adding navbar buttons in templates/skins

    I've read the thread on adding or modifying the navbar through the style manager -> navigation/breadcrumb -> navbar but when I go to edit that area, it is not in the skin. (I am currently using "newyear" theme)

    Is there a standard way to add buttons with skins, or are all skins, or are most of them different and need their own little hacks? I would have thought that adding a nav button would be simple, but it doesn't seem to be that easy.
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    All styles should have a navbar template. You must have missed it:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Navigation / Breadcrumb Templates -> navbar

    Comment

    • mikemdg
      New Member
      • Feb 2009
      • 3
      • 3.8.x

      #3
      Nope, that's the area I was in. I have 2 templates, default and 'newyear' skin. When I go into the default navbar I can edit this area:

      <!-- / breadcrumb, login, pm info -->
      <if condition="$show['member']">
      <td class="vbmenu_control"><a href="chat/flashchat.php" target="_blank">Chat</a></td>
      </if>
      When I add that link in, the "Chat" button does not show up in the 'newyear' skin when viewing the forum. So what I meant was, do I have to edit the navbar in the newyear template instead of default as well? Because when I go into "navbar" in that skin/template, there is none of that navbar content in the <!-- breadcrumb... --> section. It looks like it is calling it from elsewhere?

      <!-- breadcrumb, login, pm info -->
      <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
      <tr>
      <td class="alt1" width="100%">
      <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>.....

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        That sounds like a link for an addon, and addons usually use template hooks. Try reverting the navbar. That will restore any missing hooks.

        Comment

        • mikemdg
          New Member
          • Feb 2009
          • 3
          • 3.8.x

          #5
          I reverted and now I have two navbars. One is the normal one and the other shows up under the login box.



          Do I need to delete it from the navbar or the template to get rid of one of them?


          EDIT - I think I figured it out now... items were just being duplicated in the skin, I got them deleted.
          Last edited by mikemdg; Thu 12 Feb '09, 2:49pm. Reason: Fixed

          Comment

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