View Full Version : include in header?
ryancooper
04-12-2004, 06:11 PM
I have a banner rotator program I want to use with VB3. The program tells me to put
<? include "banner.php"; ?>
where I want the banners to be shown. When I put this in the header nothing happens? Is there something else I need to do?
Thanks,
ryan :nervous:
Xenon
04-12-2004, 06:52 PM
you cannot add php code to templates, you have to put that to phpinclude_start to take effect
gblogger
04-19-2004, 04:25 PM
My site is organized using php includes.
For example:
Doctype.php---Contains <html> tags etc.
Header.php ---Contains my <body> and some html
footer.php---Contains</body></html>
I am completely new to vb3. Is it still possible to use these includes in my forum? That way, when I update the graphics in header.php the graphics would be updated site wide including the forums.
Xenon
04-19-2004, 08:11 PM
you can include the files in phpinclude_start, assigning the content to a variable, and then call the variables in the header / headinclude / footer templates
gblogger
04-19-2004, 08:17 PM
That's what I needed to know.
Thx
Palindar
04-20-2004, 03:42 PM
Scenario:
- There is a forum only a few people can read.
- I wanted to put in the forum description field something like <?php include "include.php"; ?>
- Is this possible at all? The intention is that only those people who can access the forum get to the include
Thanks for the input!
Xenon
04-20-2004, 04:22 PM
hmm, i think that needs a hack of the file functions_forumslist.php
there you have to add a condition in the construct_forumbits section, when the actual id is that specific forumid, then add the include file to the description.
browsehosts
01-03-2005, 04:09 PM
I want to put in the footer template a bunch of links, but I don't want to have to change the footer each time, so I made a "links.php", and made an include. However, nothing shows up. Can someone explain this? Please explain thoroughly - I'm a PHP newbie. Thanks, and happy new years!
browsehosts
01-04-2005, 01:51 AM
anyone? I really want to be able to set this up soon :(...
Adrian Schneider
01-04-2005, 03:37 AM
You could get the php include to cache/eval the template (footer_2 or something) then place that inside of the footer template, or where you'd like) and edit the new template instead, although I'm not exactly sure what you mean...
cyberdream
05-03-2005, 12:08 AM
you can include the files in phpinclude_start, assigning the content to a variable, and then call the variables in the header / headinclude / footer templates
How do you do this?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.