vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Removing "New Posts" From Navbar (https://vborg.vbsupport.ru/showthread.php?t=124429)

johnstires 08-19-2006 10:36 PM

Removing "New Posts" From Navbar
 
I tried to remove the "New Post" link from the navbar yet it messed up my search drop down menu functionality in IE.

This is what I am trying to remove:

Code:

<if condition="$show['member']">
                                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                                <else />
                                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                                </if>

and:

Code:

<if condition="$show['member']">
                                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                                <else />
                                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                                </if>

What am I doing wrong?

Stunner Inc. 08-20-2006 12:30 AM

If you want to just remove the link:

Go to: Navigation/Breadcrumb Templates / navbar

Find and then remove the code in green or you could just easily place the <!-- & --> so you don't have to remove the code.

Code:

<if condition="$show['popups']">               
    <if condition="$show['searchbuttons']">
        <if condition="$show['member']">

            <!-- <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                <else />
            <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
        </if> -->


            <td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
    </if>

Hope I explained that right and it helps :)
Thankyou to LionDen for the info.

johnstires 08-20-2006 11:36 AM

That worked great. However I am getting a stray "-->" on my page in IE. Also, in IE, the "New Post" does not go away.

I tried to delete the green code, but it mucks up the search dropdown on the navbar:

The code in green at the end is the stray characters that show on my page:

Code:

<!-- <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                                <else />
                                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                                </if> -->


Also, there are 2 places on the page where I need to apply this change.

Ntfu2 08-20-2006 02:42 PM

Code:

<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                                <else />

Just remove that

johnstires 08-20-2006 05:08 PM

It still keeps keeps the "Today's Posts" in the navbar. This is for IE only. When I remove this too, the search link looses it's popup feature in IE:

Code:

<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                                </if>


Kirk Y 08-20-2006 08:23 PM

Find and Remove/Comment Out: (There are 2 instances of this code, only remove the first)
Code:

<if condition="$show['member']">
                                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                                <else />
                                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                                </if>


johnstires 08-20-2006 10:21 PM

Thanks acidburn0520 but commenting out does not work with this code. I put <!-- and --> as tags, but the NEW POST and or TODAYS POST does not go away in IE.

WHen I remove the code entirely, the search link becomes a direct link to the search page and loses it's popup menu attribute.

Kirk Y 08-20-2006 10:46 PM

Well that's strange. What version of vB are you running? Because I tested it on my 3.6.0 board, it worked fine; the Search dropdown still works.

Ntfu2 08-20-2006 10:55 PM

Yea tested it with mine as well and everything acidburn and myself have suggested worked just fine.

Stunner Inc. 08-21-2006 08:19 AM

My solution worked for me on 3.5.5 in IE. Sorry it didn't help you.


All times are GMT. The time now is 07:06 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01186 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete