![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,372
|
$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.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Jul 2004
Location: Alberta
Posts: 1,864
|
Code:
ob_start(); require("/path/to/include/file"); $file = ob_get_contents(); ob_end_clean(); 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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Jul 2004
Location: Alberta
Posts: 1,864
|
my epass id is jeff000 if you feel I deserved it
![]() ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Jul 2001
Posts: 4,084
|
Say "Hey php script get into the header file!"
![]()
__________________
SellHealth - Sell Herbal Sex Enhancers, HGH Releasers and more! Skype: brucemorrey |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Jan 2003
Location: 2006
Posts: 8,584
|
why not just..
<? php $include = 'file path slash file name dot php' ?> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Industry Role:
Join Date: Jul 2004
Location: Alberta
Posts: 1,864
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: Jan 2003
Location: 2006
Posts: 8,584
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Industry Role:
Join Date: Jul 2004
Location: Alberta
Posts: 1,864
|
Quote:
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. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |