PDA

View Full Version : Need some help removeing the "what's new" tab - Succes, ty SS


Vaupell
12-19-2009, 08:16 AM
Read down,, post #3

Well i made a product that now have a enable / disable option and removes it from all pages..
adding to vb org aswell, had it tested on other sites than my own aswell.

ywwz
12-19-2009, 02:36 PM
Good question. very good.

Seven Skins
12-19-2009, 02:51 PM
Remove these lines form navbar template:
<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>

Vaupell
12-19-2009, 03:34 PM
Ohhh my god... lol

i skipped that one cause i was reading the condition="$show['member']"
as a member option only, completely missed elseif..

/doh thank you!

janaf
12-20-2009, 10:40 PM
Must be some other lines to remove too, because this tab shows up again, for example if you select Quick links=> Todays posts.

I think the best would be to remove the tab completely, especially whe the vBH tab mod is installed: https://vborg.vbsupport.ru/showthread.php?t=228507

Vaupell
12-21-2009, 08:32 AM
Must be some other lines to remove too, because this tab shows up again, for example if you select Quick links=> Todays posts.

I think the best would be to remove the tab completely, especially whe the vBH tab mod is installed: https://vborg.vbsupport.ru/showthread.php?t=228507

nope.. tryed browsing through pages, it dosent show again..

And i dont have that link Quick links > today's posts..

janaf
12-21-2009, 12:33 PM
And i dont have that link Quick links > today's posts.. I still do (have to get rid of it) and on my site it seems that whenever the search page is called, that tab comes back. For example doing a normal site search.

Lynne
12-21-2009, 02:05 PM
It sounds like you didn't remove the correct code then.

janaf
12-21-2009, 08:45 PM
Thats fairly obvios as the "Whats New" tab still apears.

After removing the suggested four lines, no more, no less, from the pagenav file.

The "Whats New" tab does NOT apear when browsing the forum but when on the search.php page, the "Whats New" tab still apears.

So while the code above (post 3) is right but also other code needs removing, to really remove the "Whats New" tab.

There is a section starting on row 9 in the modified code;
<vb:if condition="$show['searchbuttons']">

That if block has to be removed and

also thecode starting on the row below

{vb:raw template_hook.navtab_middle}
to the row above
{vb:raw template_hook.navtab_end}
This includes the lines suggested in post nr 3.

I'm a newbie here so don't take my word for it.

However I would really prefer a CP function to edit the whole navbar....

Vaupell
12-22-2009, 09:01 PM
IF it still appears after you removed those lines, then you have something interfeering..

Checked all links, sinse i removed those lines, and its gone.

Please stop bumping my thread,,

Lock please!

Verionia
12-29-2009, 10:00 PM
Still appears if I do a site search...

Lynne
12-29-2009, 11:10 PM
Still appears if I do a site search...
If you actually removed the tab, then it can't appear again. You must not have removed all the code that makes the tab.

Hoagie
12-31-2009, 01:12 AM
this is so weird. I have removed the code......the tab is gone on my forum page...but when you look at the content page (Home) its still there.....

any ideas?

Lynne
12-31-2009, 02:13 AM
this is so weird. I have removed the code......the tab is gone on my forum page...but when you look at the content page (Home) its still there.....

any ideas?
You are probably using a different layout on the CMS page. Go to Home > hover over section title > see pencil and click > see what is set for the Style.

carrlos
01-17-2010, 03:12 AM
If you only remove those four lines, it will still appear during searches. :rolleyes:

janaf
03-13-2010, 04:23 PM
I,m still waiting for a solution. The original proposal only works partly.

The best would be an option to turn this tab OFF/ON somewhere...

Vaupell
03-13-2010, 05:10 PM
I,m still waiting for a solution. The original proposal only works partly.

The best would be an option to turn this tab OFF/ON somewhere...

https://vborg.vbsupport.ru/showthread.php?t=238187

janaf
03-13-2010, 05:19 PM
Many thanks! Works perfect!

I just did not see your mod before!

AddwireCom
03-24-2011, 03:11 AM
i tried removing it, and it screwed with the links, and the forum became nonoperational .. is there just a disable button in the options?

cungchuctanxuan
04-22-2011, 03:40 PM
Remove these lines form navbar template:
<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>



thanks

ne_ne
08-16-2011, 03:45 PM
^^ Thanks worked fine for me.

This really should be included into the next update. I run a gaming clan and navtabs like this, are not needed in my case. I am sure there are thousands of people in my situation!

Just make like simple :)

sevak
05-12-2012, 12:23 PM
Remove these lines form navbar template:
<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>

thanx....

secondeye
04-25-2013, 12:22 PM
Open Admin Cpanel.

Expand: Settings

Click Navigatio Manager

Uncheck What's New Tab