vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Placing $navbar in the header ... impossible? (https://vborg.vbsupport.ru/showthread.php?t=40692)

Cyburbia 07-05-2002 01:26 PM

Placing $navbar in the header ... impossible?
 
The Subject: line explains it all.

In my forum (see http://www.cyburbia.org/forums/ ), I'd like to display the navbar at the top of the page, below my header image and web site navigation tabs. (If you visit the page, you'll see a header that I want to duplicate across all the pages on the Web site. The "crumb tail" will be in the grey area.)

Thing is ... I've been told that $navbar is generated after the header is generated. I was told once "just post the contents of the $navbar template where you want it to go," but unfortunately that doesn't work either.

I tried searching for such a hack here, without much luck. Can $navbar be placed in the header?

Xenon 07-05-2002 01:51 PM

the answer is no, because the header is created in the global.php, and this file is included before you can make your navbar :)

ok, lets say it is doable, but you have to add some code into global.php, and because the navbar isn't just created in one function it would be very much code...

Cyburbia 07-06-2002 05:50 AM

Sigh. Thanks anyhow.

Lemme' ask another question. (Yes, I've Googled everywhere to find an answer, with no luck.) Are there any HTML tricks you can use to generate $navbar in its normal spot, but display the results up in a "receiving area" that would be in the header area? The HTML would be where it normally is, but the $navbar appears somewhere else. I tried CSS and DHTML tutotial sites, without much luck.

Thanks,

Dan

Logician 07-06-2002 07:38 AM

AFAIK you can do it with javascript or DHTML. For example one trick I can think of is to put a form box in the very top of your screen and update the form box with your $navbar value with say "onload" trigger. It's a bit awkard but I'm sure a javascript wiz can find a better way to handle it..


All times are GMT. The time now is 08: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.01048 seconds
  • Memory Usage 1,713KB
  • 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)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