![]() |
You could put something like $stuff = something; in global.php and then use $stuff in a template anywhere on the site.
|
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! :D |
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:
|
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? :( |
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. |
Quote:
|
bump!
|
All times are GMT. The time now is 08:22 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|