The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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> 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> |
#2
|
|||
|
|||
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> Thankyou to LionDen for the info. |
#3
|
|||
|
|||
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. |
#4
|
|||
|
|||
Code:
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td> <else /> |
#5
|
|||
|
|||
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> |
#6
|
||||
|
||||
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> |
#7
|
|||
|
|||
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. |
#8
|
||||
|
||||
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.
|
#9
|
|||
|
|||
Yea tested it with mine as well and everything acidburn and myself have suggested worked just fine.
|
#10
|
|||
|
|||
My solution worked for me on 3.5.5 in IE. Sorry it didn't help you.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|