GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   $20 epass to anyone that can... (https://gfy.com/showthread.php?t=408311)

fris 12-25-2004 09:00 PM

$20 epass to anyone that can...
 
show me how to call a php script into the header file in vbulletin a normal php call inst working.

jeffrey 12-25-2004 09:52 PM

Code:

ob_start();
require("/path/to/include/file");
$file = ob_get_contents();
ob_end_clean();

add to 'phpinclude' template

Replace '/path/to/include/file' with the path to the file you want to include.
Then put '$file' in the templates where you want your included file to display


:)
Hope that helps took me forever to figure out.

jeffrey 12-25-2004 09:54 PM

my epass id is jeff000 if you feel I deserved it :) Merry Xmas either way :xmas-smil

BruceM 12-25-2004 11:02 PM

Say "Hey php script get into the header file!" :xmas-smil

TheMob 12-25-2004 11:04 PM

why not just..

<? php

$include = 'file path slash file name dot php'

?>

jeffrey 12-25-2004 11:06 PM

Quote:

Originally Posted by TheMob
why not just..

<? php

$include = 'file path slash file name dot php'

?>

cause its not jsut a php file, you have to put it in a template.

TheMob 12-25-2004 11:08 PM

Quote:

Originally Posted by jeffrey
cause its not jsut a php file, you have to put it in a template.

ah ;) what if you added the simple include to the actual header.php file?

jeffrey 12-25-2004 11:19 PM

Quote:

Originally Posted by TheMob
ah ;) what if you added the simple include to the actual header.php file?


then it might not be in the right spot after all the other templates load :)
and you cant just change everything there, cuase it will mess up the placement of everything else.

besides, how hard is adding the above code :D


change '$file' to like '$file1' etc if you have more then one thing you want to include.


All times are GMT -7. The time now is 11:12 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123