vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   How to change the Navbar home tab to a different page? (https://vborg.vbsupport.ru/showthread.php?t=231284)

frogster 12-27-2009 03:15 AM

How to change the Navbar home tab to a different page?
 
I have a main website and I am using the VB suite as a side thing on my main website. How can I change the "home" tab on the navbar to redirect to another link (my website's homepage)? I already made another tab to direct to the actual CMS home page.

Thanks in advance!

Lynne 12-27-2009 03:06 PM

Why don't you disable the plugin that creates the home tab, since you aren't using it, and then make another tab that does what you want?

haothiencz 12-27-2009 03:42 PM

Lynne, can you please tell me which plugin creats the home/forum/blog tab?

I just want to remove all the default navbar and place there another one.

Thank you

Lynne 12-27-2009 05:21 PM

They are all different. The navbar creates most of the tabs, but the blog and cms are products, so look on the plugin manager page and the navbar plugin for each product is clearly labeled.

haothiencz 12-27-2009 05:45 PM

I found and already disable

Code:

Navbar: Eval Blog Link Template and Validate Styleid          process_templates_complete                    [Edit] [Delete]
Navbar: Notification List        notifications_list

The Home Tab and Blog Tab was removed.

but when i remove


Code:

        {vb:raw navbar}
from forumhome template

the rest of forumhome was totally broken.

Is there a another way to remove all of them?

Lynne 12-27-2009 06:00 PM

There is more in the navbar than just the links. You need to actually edit the navbar template to remove the tabs from there (your notices and breadcrumbs are also in there, along with several template_hooks).

haothiencz 12-27-2009 06:53 PM

I removed all the things there, but kept the notice/ annoucement.

the below navbar links (comminity, quick links etc) was removed. but the Forum Tab is still there?

Is this any another plugin to disbale it completely?

Thanks lynne!

Lynne 12-27-2009 09:08 PM

If the forum tab is still there, then you didn't remove all the code for the tabs.

frogster 12-28-2009 01:19 AM

Thanks Lynne! I did just that. I didn't realize you could deactivate just the navbar for the CMS.

Thanks again,
Maria

--------------- Added [DATE]1261970841[/DATE] at [TIME]1261970841[/TIME] ---------------

Lynne,

Not sure if you would know the answer to this but when I deactivated the CMS navbar "home" tab and made another tab to go the the CMS home page (I happened to call it our blog), instead of this new tab (our blog) being highlighted when I am on the CMS home page, the forum tab is highlighted. I used a mod to make the new tab. Would you know how to make the "our blog" tab highlighted when on that tab's page?

Thanks in advance.

Lynne 12-28-2009 03:38 AM

If you want a tab to be 'selected', then you usually have to write a condition for when it would be selected. The condition for the Home tab to be selected was in the code, same with the other tabs. But, for tabs you make yourself, you will have to write your own condition. That would normally be covered in the hack - perhaps you should ask in the mod thread.


All times are GMT. The time now is 05:58 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.01071 seconds
  • Memory Usage 1,727KB
  • 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
  • (2)bbcode_code_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