vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How do I remove this Nav Button? (https://vborg.vbsupport.ru/showthread.php?t=278822)

baileyom2011 02-19-2012 02:09 PM

How do I remove this Nav Button?
 
Hi, i've been a bit stupid, added a nav button to my site awhile ago, and now totally can't remember what I did to put it there!

My site is here and I want to remove the "Boat Sales (Coming Soon)" button.

I was messing about with a few plugins, but have now settled with the purchased version of Tab and Link Manager which is great but, I've removed all the other navbar plugins I have, but the unwanted button still remains!

I may have used code if I found it somewhere (I'm no good with code myself) but I must admit I'm totally stumped and feel stupid about it, lol. Any help would be massively appreciated.

Thanks :o

Max Taxable 02-19-2012 02:21 PM

In AdminCP, turn off the Plugin/Hook system. If the button still remains, you know it is not related to a plugin or add-on.

From there you can view the page source code to determine which template this code is in.

Here's the code as it appears in page source:

PHP Code:

 <div id="navigation">
<
div id="navbar" class="navbar">
<
div class="navLeft"><div class="navRight">
    <
ul id="navtabs" class="navtabs floatcontainer">
        <
li class="selected"><class="navtab" href="content.php" rel="wsSelf">Home</a><ul class="floatcontainer"><li><a href="content.php"></a></li></ul></li><li><class="navtab" href="forum.php" rel="wsSelf">Forum</a></li>
        <
li><class="navtab" href="search.php?do=getdaily&amp;contenttype=vBForum_Post" rel="wsBlank">What's New?</a></li>
        

<li><a href="http://www.onlinemarina.co.uk/boatsales.php" class="navtab">Boat Sales (Coming Soon) </a></li><li><a class="navtab" href="blog.php" rel="wsSelf">Blogs</a></li>
    </ul>

</div></div> 


baileyom2011 02-19-2012 02:35 PM

Thanks Max.

I disabled Plugins/Hooks and it did disappear, so I'm guessing this means it is a plugin still controlling the button. Strange thing is I can't see a plugin in the list that has anything to do with it, but I guess I will disable each one at a time and see if any effect it.

UPDATE:

Ok, i've gone Plugins & Products > Plugin Manager > Nav Tab

and then removed the code

<a href="http://www.onlinemarina.co.uk/boatsales.php" class="navtab">Boat Sales (Coming Soon) </a></li>

which just leaves

$template_hook['navtab_end'] .= '
';

It seems to have worked, but just checking that is a ok / safe way of doing it. Thanks.

Max Taxable 02-19-2012 05:09 PM

Alternatively you could have just disabled the plugin.

But, you're okay as it is.


All times are GMT. The time now is 10:05 AM.

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.00970 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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