The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
[SOLVED]Exclude Addon PHP Functions
Hi guys,
I got a question about excluding parts of my php files in combination with the db class. First of all, lets call my file "test.php". In that file I got like 500 Lines of php code, lets say 100 lines is all over the same something like this: PHP Code:
" PHP Code:
However, there was no way, that I was able to use "$DATAFROMOUTSIDEFUNCTION" - I just got a blank site. It was even in the test.php and I didnt give it to another php file in includes/ or somewhere else. Does anybody know, why I cant do it like that ? Why is my script not recognising my function ? All the best bpr |
#2
|
||||
|
||||
There is no reason why you can't create a function in another file and pass it information. But, since you didn't post the exact code you wrote for the function, nor the exact code you wrote to call the function, it's impossible for us to tell you what you did wrong.
|
#3
|
|||
|
|||
Ook - here the exactly code:
todo.php: PHP Code:
PHP Code:
PHP Code:
PHP Code:
So lets got to the file: /includes/class_todo.php PHP Code:
What did I do wrong ? I read something about ob_start(); and so on ? Do I need to do that ? All the best, bpr //edit the problem was that i didnt have global $vbulletin in my other php files! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|