PDA

View Full Version : Removing a Button


gchatten
01-17-2010, 10:53 PM
I need to remove the "What's New" button on all VB4 pages. I find resources on how to add new buttons, but nothing on how to remove or change the existing ones.

Any assistance appreciated!

Lynne
01-17-2010, 11:25 PM
Open navbar template.

Find:
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search'">

Change to:
<vb:if condition="!$vboptions['selectednavtab']">


Find and Remove....
<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_P ost">{vb:rawphrase getnew_tab}</a>
...
a bunch more stuff
...
</li>
</vb:if>
<vb:elseif condition="$show['member']" />
<li><a class="navtab" href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_P ost">{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>

gchatten
01-18-2010, 03:47 PM
I found and changed/deleted as instructed, however, when I saved I received the error:
?else_not_child_of_if

--------------- Added 1263840080 at 1263840080 ---------------

I found a workable solution at: https://vborg.vbsupport.ru/showthread.php?t=232425
Thanks - Greg