Announcement

Collapse
No announcement yet.

Removine Tabs

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

  • [Forum] Removine Tabs

    Please tell me how i can remove the Forum and What's New tabs from the Navbar

  • #2
    You'll need to edit the navbar template in AdminCP > Styles & Templates > Style Manager > [Edit Templates]
    Vote for:

    - *Admin Settable Paid Subscription Reminder Timeframe*
    -
    *PM - Add ability to reply to originator only*
    - Add Admin ability to auto-subscribe users to specific channel(s)
    - "Quick Route" Interface...

    Comment


    • #3
      Originally posted by blacura View Post
      Please tell me how i can remove the Forum and What's New tabs from the Navbar
      To remove the Forum tab, find and remove the following code at the navbar template:

      HTML Code:
      <a class="navtab" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}">{vb:rawphrase forum}</a>
      To remove the What''s new tab find and remove the following code at the same template:

      HTML Code:
      {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">{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">{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">{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">{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">{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">{vb:rawphrase getnew_tab}</a></li>
      		</vb:if>
      		{vb:raw template_hook.navtab_end}

      Comment


      • #4
        Thank you @Borebole

        That worked

        Comment


        • #5
          You are welcome. Glad to have been of help.

          Comment


          • #6
            thanks very much that's neat

            Comment


            • #7
              When removing What's new you shouldn't remove the first and last lines : {vb:raw template_hook.navtab_middle} and {vb:raw template_hook.navtab_end}.
              Those lines are hooks and are used for additional tabs like Project Tools.
              Lumina, aventurière des mondes fantastiques et petite rédactrice au grand cœur
              Cœur Lumière - vBulletin-fr
              Join the vBulletin French community social group!

              Comment

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