Quote:
Originally Posted by kh99
The current directory needs to be your forum directory (the directory that contains global.php) before including it. So do a chdir() to the forum dir, include global.php, then chdir() back if you need to.
Also, if you want to do the include inside a function, you need to declare some variables as global before you do the include (I keep forgetting what they are - if you want to do this, I'll try to find where someone posted it before).
|
For your first point, that was actually what I was trying originally and getting this error message:
Fatal error: Call to a member function load_editor_settings() on a non-object in /home/nextgenupdate/public_html/forums/infernoshout/engine/inferno_load.php on line 24
Is there really no way of defining it without global.php? I feel it'd be so much simpler

.