vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Need some help removeing the "what's new" tab - Succes, ty SS (https://vborg.vbsupport.ru/showthread.php?t=230527)

Vaupell 12-19-2009 08:16 AM

Need some help removeing the "what's new" tab - Succes, ty SS
 
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:
HTML Code:

                <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>


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

Quote:

Originally Posted by janaf (Post 1934290)
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

Quote:

Originally Posted by Vaupell (Post 1934455)
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;
HTML Code:

<vb:if condition="$show['searchbuttons']">
That if block has to be removed and

also thecode starting on the row below

HTML Code:

{vb:raw template_hook.navtab_middle}
to the row above
HTML Code:

{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

Quote:

Originally Posted by Verionia (Post 1941927)
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

Quote:

Originally Posted by Hoagie (Post 1943045)
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

Quote:

Originally Posted by janaf (Post 2002903)
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

Quote:

Originally Posted by Seven Skins (Post 1933502)
Remove these lines form navbar template:
HTML Code:

                <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>




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

Quote:

Originally Posted by Seven Skins (Post 1933502)
Remove these lines form navbar template:
HTML Code:

                <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>


thanx....

secondeye 04-25-2013 12:22 PM

Open Admin Cpanel.

Expand: Settings

Click Navigatio Manager

Uncheck What's New Tab


All times are GMT. The time now is 04:34 PM.

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.01159 seconds
  • Memory Usage 1,771KB
  • 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
  • (6)bbcode_html_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete