vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Display Enhancements - Whats New - Remove safely (https://vborg.vbsupport.ru/showthread.php?t=275243)

OldSchoolDSL 12-08-2011 11:00 PM

Whats New - Remove safely
 
1 Attachment(s)
This will remove the "What's New" navigation tab

Safely
  • No 3nd party modification conflicts
  • No products to import
  • No added database query
  • No CSS issues
  • Easy to carry over in upgrade

Tested on 4.1.7 , 4.1.8, and 4.1.9 beta 1
Tested on default template and custom templates

Why would you want to remove, "What's New?"
  • Save server load
  • Save page load
  • Improve the layout for a more cleaner look
  • Make room on the navigation tab for other modifications
  • Maybe you found a modification that does the same thing, but in a different way

Step 1

Backup your database
------- Something everyone should do no matter what mod, template, or tweak you ever add.


Step 2


In navbar look for the following


Code:

<li><a class="navtab" href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_Post" accesskey="2">{vb:rawphrase getnew_tab}</a></li>

You are going to wrap it around using this:


Code:

<vb:comment>  </vb:comment>

So when done it will look like this:


Code:

<vb:comment> <li><a class="navtab" href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_Post" accesskey="2">{vb:rawphrase getnew_tab}</a></li> </vb:comment>

Step 3


Look for


Code:

<li><a class="navtab" href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum_Post" accesskey="2">{vb:rawphrase getnew_tab}</a></li>

You are again going to wrap it around with this


Code:

<vb:comment>  </vb:comment>

So when done it will look like this:


Code:

<vb:comment> <li><a class="navtab" href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum_Post" accesskey="2">{vb:rawphrase getnew_tab}</a></li> </vb:comment>

Save and reload


In another browser tab or window, check out the results.
If all is well as it should be.... Congratulation you are done :cool:

Please make installed

OldSchoolDSL 12-09-2011 01:30 AM

~ ~ ~ ~Reserved ~ ~ ~ ~

rburns 12-09-2011 02:56 AM

I Like the What's New Button.

Removing it means 2 clicks to see what's new as opposed to one.

Dr.osamA 12-09-2011 05:52 PM

installed
thank you

Rich 12-09-2011 08:06 PM

Quote:

Originally Posted by rburns (Post 2276086)
I Like the What's New Button.

Removing it means 2 clicks to see what's new as opposed to one.

Then don't install it. Look how simple that was. I can never understand why people like you feel the need to post they don't need a mod. He posted it for people who DO want it.

MechCorps 12-09-2011 09:39 PM

Removed. Thanks!

It would be helpful for n00bs like me to know that the NavBar can be found here:

Go to AdminCP.
Click "Styles & Templates"
Click "Style Manager"
On your site's style select "Edit Templates"
Scroll down to "Navigation / Breadcrumb Templates" and *double-click* it.
Scroll down to it again and then find "navbar".
*double-click* it or single-click it and then click the "Edit" button.

Then use the "Search in template" box and put the entirety of the lines to find and then click "Find".

Then follow the directions above.


As far as needing the "What's New" button... I don't feel that this should be at the TOP of the site anyway. ;)

I'll put a link to it somewhere else.

Again, THANKS!

OldSchoolDSL 12-28-2011 05:26 PM

Working

4.1.10

Notice: May need to be re-applied after upgrade.

RC-Central 01-20-2012 04:55 AM

How does one do the opposite? I want to add things to navbar. I have not found anything for the newer versions of vB. Thanks!

BTW, I did take out the Whats new.. Worked GREAT!

TheSupportForum 01-20-2012 06:44 PM

1 Attachment(s)
if you have TMS installed use this to do the the job for you

ensure you upload it to Mater Style not default, this will then apply to all other templates

ClErK1991 01-23-2012 03:22 AM

worked greats marked as install :)


All times are GMT. The time now is 10:43 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.01095 seconds
  • Memory Usage 1,738KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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