The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Include within a Variable?
I'm trying to set a variable that's another file, i'm trying to include it but it just put's the include at the top of the page not were the variable is.
Code:
$v = include('page.php'); Also bearing in mind the variable is in the template! |
#2
|
||||
|
||||
The include() function does not return a value, it would be best if you made page.php build up a variable, and then require() the file, after doing that you can then call the variable it has made
Quick Example: FILE: page.php PHP Code:
PHP Code:
- Zero Tolerance |
#3
|
|||
|
|||
Well as i said the the variable is in the template and i can't seem to enter PHP into it so i need to set the variable value as the other page!
I'm no good with PHP so i hope you can unserstand that. and page.php is not relational to the forum it can't really be edited! |
#4
|
||||
|
||||
Your example is this:
PHP Code:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|