vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   How do I "include" another php file inside my forum template"? (https://vborg.vbsupport.ru/showthread.php?t=35049)

Gutspiller 02-13-2002 08:19 PM

I asked this a while ago and got a half response. They said something about I can't include a php file in the header part of my forum template. They said I had to put it in phpinclude, or something like that. Can somebody help me out on how I can include a php file into the top of my forum header so it's on every page?

I would greatly appreciate it if you could post the steps. I am not a total noobie, but I do need help on what files I need to put what in, and where in the files I put what code.

Thanks a bunch for any help you can offer. :up:

Lesane 02-13-2002 08:30 PM

Go to your Styles -> Modify -> [fonts/colors/etc] -> PHP parsed code:

if the filename is hello.php then put there:

PHP Code:

include("hello.php"); 

That should work ;)

Gutspiller 02-13-2002 09:03 PM

That puts it above my header. I need it the last thing in my header. Any other ideas? :(

Admin 02-14-2002 05:20 AM

Code:

ob_start();
require('./hello.php');
$[high]hello[/high] = ob_get_contents();
ob_end_clean();


Gutspiller 02-14-2002 06:01 AM

Quote:

Originally posted by FireFly
Code:

ob_start();
require('./hello.php');
$[high]hello[/high] = ob_get_contents();
ob_end_clean();


I have no idea what I do with that. Where do I put it and do I just change hello to whatever the name of the file is?

Any more help for a php noob and I would really appreciate it. :)


All times are GMT. The time now is 10:08 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.01073 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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