Announcement

Collapse
No announcement yet.

How to remove and/or edit the "Forum" 'sub-tabs' ...?

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

  • #16
    Thanks Lynne!

    I just copy/pasted your code and seems to work fine.
    If you get a moment ... feel free to comment on how you think it looks at:
    http://www.chicagodaytraders.com
    (the "Live Chat" tab ... is my new name for the "Forums" tab)

    I placed many of the functions under the Tools tab.

    Kind Regards,
    Vilhiem

    Comment


    • #17
      I looks nice! I like how the dropdowns occur when you hover over the tab after a click on one. I know a lot of people don't like that, but I do.

      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 <- awesome site for html/css help

      Comment


      • #18
        Or you can just install something like this: http://www.vbulletin.org/forum/showthread.php?t=233629

        Comment


        • #19
          Thanks rsuplido ... but I do have that right now installed.

          "Tabs Add System for vBulletin 4 (sstab advanced)" is for adding new major tabs and drop-downs (which works pretty nice).
          What I really need next though is something that allows me to add custom "sub-menus" ... similar to the default ones I just eliminated with the above code ... but unique to what I want. If anyone knows of any, please let me know.

          Otherwise, the code Lynne provided works fine to eliminate the default sub-menus.

          Comment


          • #20
            OK..... I am still lost.

            I want to eliminate the sub menus and can't figure out waht code to remove from the NAV TEMPLATE.

            This is what I want to do......
            Click image for larger version

Name:	SubMenus.jpg
Views:	1
Size:	51.0 KB
ID:	3679747

            Here is the current code.....

            <div id="navbar" class="navbar">
            <ul id="navtabs" class="navtabs floatcontainer<vb:if condition="$show['member'] AND $notifications_total"> notify</vb:if>">
            {vb:raw template_hook.navtab_start}
            <vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search'">
            <li class="selected"><a class="navtab" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}">{vb:rawphrase forum}</a>
            <ul class="floatcontainer">
            {vb:raw template_hook.navbar_start}
            <vb:if condition="$show['searchbuttons']">
            <vb:if condition="$show['member']">
            <li><a href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_Post">{vb:rawphrase new_posts_nav}</a></li>
            <vb:else />
            <li><a href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum_Post">{vb:rawphrase todays_posts}</a></li>
            </vb:if>
            </vb:if>
            {vb:raw template_hook.navbar_after_getnew}
            <vb:if condition="$show['pmmainlink']">
            <li><a href="private.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase private_messages}</a></li>
            </vb:if>
            {vb:raw template_hook.navbar_after_pm}
            <li><a rel="help" href="faq.php{vb:raw session.sessionurl_q}" accesskey="5">{vb:rawphrase faq}</a></li>
            {vb:raw template_hook.navbar_after_faq}
            <li><a href="calendar.php{vb:raw session.sessionurl_q}">{vb:rawphrase calendar}</a></li>
            {vb:raw template_hook.navbar_after_calendar}
            <vb:if condition="$show['communitylink']">
            <li class="popupmenu">
            <a href="javascript://" class="popupctrl" accesskey="6">{vb:rawphrase community}</a>
            <ul class="popupbody popuphover">
            {vb:raw template_hook.navbar_community_menu_start}
            <vb:if condition="$show['quick_links_groups']">
            <li><a href="group.php{vb:raw session.sessionurl_q}">{vb:rawphrase social_groups}</a></li>
            </vb:if>
            <vb:if condition="$show['quick_links_albums']">
            <li><a href="album.php{vb:raw session.sessionurl_q}">{vb:rawphrase pictures_and_albums}</a></li>
            </vb:if>
            <vb:if condition="$bbuserinfo['userid']">
            <li><a href="profile.php?{vb:raw session.sessionurl}do=buddylist"><vb:if condition="$show['friends_and_contacts']">{vb:rawphrase contacts_and_friends}<vb:else />{vb:rawphrase contacts}</vb:if></a></li>
            </vb:if>
            <vb:if condition="$show['memberslist']">
            <li><a href="memberlist.php{vb:raw session.sessionurl_q}">{vb:rawphrase members_list}</a></li>
            </vb:if>
            {vb:raw template_hook.navbar_community_menu_end}
            </ul>
            </li>
            </vb:if>
            {vb:raw template_hook.navbar_after_community}
            <li class="popupmenu">
            <a href="javascript://" class="popupctrl">{vb:rawphrase forum_actions}</a>
            <ul class="popupbody popuphover">
            <li>
            <a href="forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={vb:raw bbuserinfo.securitytoken}">{vb:rawphrase mark_forums_read}</a>
            </li>
            <vb:if condition="$show['member']">
            <li>
            <a href="profile.php?{vb:raw session.sessionurl}do=editoptions">{vb:rawphrase edit_options}</a>
            </li>
            <li>
            <a href="profile.php?{vb:raw session.sessionurl}do=editprofile">{vb:rawphrase edit_your_details}</a>
            </li>
            </vb:if>
            </ul>
            </li>
            <li class="popupmenu">
            <a href="javascript://" class="popupctrl" accesskey="3">{vb:rawphrase quick_links}</a>
            <ul class="popupbody popuphover">
            <vb:if condition="$show['member']">
            <li><a href="subscription.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase subscribed_threads}</a></li>
            <li><a href="javascript://" onclick="window.open(getBaseUrl() + 'misc.php?{vb:raw session.sessionurl}do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar= no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">{vb:rawphrase open_contacts}</a></li>
            </vb:if>
            <vb:if condition="$vboptions['forumleaders']">
            <li><a href="showgroups.php{vb:raw session.sessionurl_q}" rel="nofollow">
            <vb:if condition="$vb_suite_installed">
            {vb:rawphrase view_site_leaders}
            <vb:else />
            {vb:rawphrase view_forum_leaders}
            </vb:if>
            </a></li>
            </vb:if>
            {vb:raw template_hook.navbar_quick_links_menu_pos1}
            {vb:raw template_hook.navbar_quick_links_menu_pos2}
            {vb:raw template_hook.navbar_quick_links_menu_pos3}
            <vb:if condition="$show['wollink']">
            <li><a href="online.php{vb:raw session.sessionurl_q}">{vb:rawphrase whos_online}</a></li>
            </vb:if>
            {vb:raw template_hook.navbar_quick_links_menu_pos4}
            </ul>
            </li>
            {vb:raw template_hook.navbar_end}
            </ul>
            </li>
            <vb:else />
            <li><a class="navtab" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}">{vb:rawphrase forum}</a></li>
            </vb:if>
            {vb:raw template_hook.navtab_middle}
            <vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT == 'search'">
            <vb:if condition="$show['member']">
            <li class="selected"><a class="navtab" href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_Post" accesskey="2">{vb:rawphrase getnew_tab}</a>
            <ul class="floatcontainer">
            <li><a href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_Post">{vb:rawphrase new_posts_nav}</a></li>
            <li><a href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_SocialGroupMessage">{vb:rawphrase new_group_messages_nav}</a></li>
            <li><a href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_Event">{vb:rawphrase new_events_nav}</a></li>
            {vb:raw template_hook.navbar_getnew_menu}
            <li><a href="forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={vb:raw bbuserinfo.securitytoken}">{vb:rawphrase mark_forums_read}</a></li>
            </ul>
            </li>
            <vb:else />
            <li class="selected"><a class="navtab" href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum_Post" accesskey="2">{vb:rawphrase getnew_tab}</a>
            <ul class="floatcontainer">
            <li><a href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum_Post">{vb:rawphrase todays_posts}</a></li>
            <li><a href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum_SocialGroupMessage">{vb:rawphrase daily_group_message}</a></li>
            <li><a href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum_Event">{vb:rawphrase daily_events}</a></li>
            {vb:raw template_hook.navbar_getdaily_menu}
            <li><a href="forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={vb:raw bbuserinfo.securitytoken}">{vb:rawphrase mark_forums_read}</a></li>
            </ul>
            </li>
            </vb:if>
            <vb:elseif condition="$show['member']" />
            <li><a class="navtab" href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_Post" accesskey="2">{vb:rawphrase getnew_tab}</a></li>
            <vb:else />
            <li><a class="navtab" href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum_Post" accesskey="2">{vb:rawphrase getnew_tab}</a></li>
            </vb:if>
            {vb:raw template_hook.navtab_end}
            </ul>
            <vb:if condition="$vboptions['enablesearches']">
            <div id="globalsearch" class="globalsearch">
            <form action="search.php?{vb:raw session.sessionurl}do=process" method="post" id="navbar_search" class="navbar_search">
            <vb:comment><input type="hidden" name="s" value="{vb:raw session.sessionurl}" /></vb:comment>
            <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
            <input type="hidden" name="do" value="process" />
            <span class="textboxcontainer"><span><input type="text" value="" name="query" class="textbox" tabindex="99"/></span></span>
            <span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search.<vb:if condition="(is_browser('ie') AND !is_browser('ie', 7) AND !is_browser('ie', 8))">gif<vb:else />png</vb:if>" name="submit" onclick="document.getElementById('navbar_search').submit;" tabindex="100"/></span></span>
            </form>
            <ul class="navbar_advanced_search">
            <li><a href="search.php{vb:raw session.sessionurl_q}" accesskey="4">{vb:rawphrase advanced_search}</a></li>
            </ul>
            </div>
            </vb:if>
            </div>
            </div><!-- closing div for above_body -->
            <div class="body_wrapper">
            <div id="breadcrumb" class="breadcrumb">
            <ul class="floatcontainer">
            <li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li>
            {vb:raw navbits.breadcrumb}
            {vb:raw navbits.lastelement}
            </ul>
            <hr />
            </div>
            {vb:raw ad_location.ad_navbar_below}
            {vb:raw ad_location.global_below_navbar}
            <vb:if condition="$show['notices'] AND THIS_SCRIPT != 'register'">
            <form action="profile.php?do=dismissnotice" method="post" id="notices" class="notices">
            <input type="hidden" name="do" value="dismissnotice" />
            <input type="hidden" name="s" value="{vb:raw session.sessionurl}" />
            <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
            <input type="hidden" id="dismiss_notice_hidden" name="dismiss_noticeid" value="" />
            <input type="hidden" name="url" value="{vb:raw return_link}" />
            <ol>
            {vb:raw notices}
            </ol>
            </form>
            </vb:if>


            Thanks for nay and all help.
            this is all new to me, but I am learning!!!

            Steve

            Comment


            • #21
              Originally posted by vilhiem View Post
              Thanks rsuplido ... but I do have that right now installed.

              "Tabs Add System for vBulletin 4 (sstab advanced)" is for adding new major tabs and drop-downs (which works pretty nice).
              What I really need next though is something that allows me to add custom "sub-menus" ... similar to the default ones I just eliminated with the above code ... but unique to what I want. If anyone knows of any, please let me know.

              Otherwise, the code Lynne provided works fine to eliminate the default sub-menus.
              I'm confused, did you hand code the drop-down tabs, or did you use this mod? If you used this mod, then you must have removed the copyright, because I don't see it on your page. If you hand coded the drop-down tabs, then please share how you did it because I'm really interested in doing something similar to what you have done on my site. I'm just not interested in another copyright notice for a simple tab mod.

              Thanks for sharing!

              Comment

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