vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   including a header file? (https://vborg.vbsupport.ru/showthread.php?t=99765)

MamboCube 10-31-2005 03:05 PM

including a header file?
 
how do i include my own header file on my forum, it used to have 4 boxes in the admin panel where in phpinclude_start i could enter my own include,

but with the new version it doesnt have it

so does anyone know how to include my own header?

Zachery 10-31-2005 03:07 PM

Quote:

Originally Posted by MamboCube
how do i include my own header file on my forum, it used to have 4 boxes in the admin panel where in phpinclude_start i could enter my own include,

but with the new version it doesnt have it

so does anyone know how to include my own header?

Use the global_start hook, just like you used phpinclude_start

MamboCube 10-31-2005 04:19 PM

thnx again for your reply zachery

i dont know how to use the global_start hook, befor there was a box where i could include the header, but now there isnt,
so in wat file do i have to include it or where exactly in the admin panel?

and how do i use the global_start hook?

thnx

MamboCube 11-02-2005 05:47 PM

can anyone help me with this?

evenmonkeys 11-02-2005 10:44 PM

I can help you... I'm replying right now...

The first thing you need to do is create a php file. All that needs to be in the file is what you're trying to accomplish. You don't need to add the include crap. Once you got all that finished, upload it to your site. Keep the location in mind.

Next step is creating the hook. Go to your admincp > Plugin System > Add New Plugin... Now enter this information in.

Hook Location: global_start (1/4 down)
Title: Whatever
PHP Plugin Code:

ob_start();
include('http://site.com/file.php');
$variable = ob_get_contents();
ob_end_clean();

Active: Yes

Some details on that... Specify the location of the file. Change variable to match your liking. This is what you're going to use when you call for the file.

If this is going in your header template, enter in $variable wherever you would like to call for it.

Hope this helps.

MamboCube 11-03-2005 06:47 AM

That looks pretty promising, im off to college now, but ill try it when i get back, thanks for the help mate!


All times are GMT. The time now is 06:28 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.00942 seconds
  • Memory Usage 1,719KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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