The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
You could put something like $stuff = something; in global.php and then use $stuff in a template anywhere on the site.
|
#12
|
||||
|
||||
Quote:
so if I put PHP Code:
I just wanted to make sure that was the exact code or if you were putting more emphasis on "like"? This is going to be KICK ASS! |
#13
|
|||
|
|||
Sort of, but not exactly.
In your global.php file, you need to add a line like this: PHP Code:
Anyway, then in your templates, wherever you add $something, you will get the contents of the PHP file. This is essentially the third option that Logician gave: Quote:
|
#14
|
||||
|
||||
That seems to do the same thing. I didn't even call it in the template. As soon as I put it in the global file it called it and put it above the header.
Anything else? |
#15
|
|||
|
|||
OK, for some reason I was thinking that your included file would be performing some sort of function rather than just outputting data.
I thought about it some more, and I'm not sure how you would get the output "on demand" as you suggest, without adding it to the vBulletin code -- assuming that the PHP file you want to include echoes something back. Why not just edit the files so that they "store" their output in a variable, then put the file in the global.php as I suggested (or the phpinclude template as Logician suggested) and then just use that variable where you need the output? I can't think of any other way to do it. I think that to achieve what you're trying to do, you're going to need to work with the code one way or another. |
#16
|
||||
|
||||
Quote:
|
#17
|
||||
|
||||
bump!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|