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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-25-2004, 09:00 PM   #1
fris
Too lazy to set a custom title
 
fris's Avatar
 
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
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-25-2004, 09:52 PM   #2
jeffrey
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();
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-25-2004, 09:54 PM   #3
jeffrey
Confirmed User
 
Industry Role:
Join Date: Jul 2004
Location: Alberta
Posts: 1,864
my epass id is jeff000 if you feel I deserved it Merry Xmas either way
jeffrey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-25-2004, 11:02 PM   #4
BruceM
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
BruceM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-25-2004, 11:04 PM   #5
TheMob
Confirmed User
 
Join Date: Jan 2003
Location: 2006
Posts: 8,584
why not just..

<? php

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

?>
TheMob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-25-2004, 11:06 PM   #6
jeffrey
Confirmed User
 
Industry Role:
Join Date: Jul 2004
Location: Alberta
Posts: 1,864
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.
jeffrey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-25-2004, 11:08 PM   #7
TheMob
Confirmed User
 
Join Date: Jan 2003
Location: 2006
Posts: 8,584
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?
TheMob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-25-2004, 11:19 PM   #8
jeffrey
Confirmed User
 
Industry Role:
Join Date: Jul 2004
Location: Alberta
Posts: 1,864
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.
jeffrey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.