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!


All times are GMT. The time now is 01:39 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.03986 seconds
  • Memory Usage 1,736KB
  • 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
  • (4)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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