The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
include in header?
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: |
#2
|
||||
|
||||
you cannot add php code to templates, you have to put that to phpinclude_start to take effect
|
#3
|
|||
|
|||
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. |
#4
|
||||
|
||||
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
|
#5
|
|||
|
|||
That's what I needed to know.
Thx |
#6
|
|||
|
|||
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! |
#7
|
||||
|
||||
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. |
#8
|
|||
|
|||
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!
|
#9
|
|||
|
|||
anyone? I really want to be able to set this up soon ...
|
#10
|
||||
|
||||
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...
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|