vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Where do I include something to all pages (https://vborg.vbsupport.ru/showthread.php?t=118914)

kobescoresagain 06-17-2006 10:54 PM

Where do I include something to all pages
 
What file can I include an include statement so that it displays on every single page?

Christine 06-17-2006 10:58 PM

There are several templates that will do this -- navbar at the top and footer at the bottom come to mind...

kobescoresagain 06-17-2006 10:59 PM

but can I include an include statement in a template? I didn't think I could

Christine 06-17-2006 11:02 PM

What are you trying to accomplish?

kobescoresagain 06-17-2006 11:04 PM

I need to include (like the php include_once) statement for my site stats program. It needs to be on every page.

Christine 06-17-2006 11:06 PM

Ah.

That might be best served by adding a plugin to the hook global_complete or global_start.

Take a look at the Microstats hack and see if that does what you are looking for -- where you can tap into it. It uses global_complete. https://vborg.vbsupport.ru/showthread.php?t=82900

kobescoresagain 06-17-2006 11:07 PM

On most websites you have something like a header.php with the includes infomraiton. The header.php is on every page. I need something like that.

Christine 06-17-2006 11:09 PM

See above...

There used to be a phpinclude_start that hooked into the header. It was replaced by the hook at global_start.

kobescoresagain 06-17-2006 11:52 PM

Thanks, I looks at the xml file for that hack..... I didn't even really know what those were. But I know php and changed the xml to do what I need it to do. Thanks christine


All times are GMT. The time now is 12:03 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.01278 seconds
  • Memory Usage 1,720KB
  • 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
  • (9)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