
01-30-2005, 07:53 PM
|
|
|
Join Date: Mar 2003
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by GC-UK
Sorry if this is the wrong place, or obvious, but it's been driving me mad
I want to be able to call a vb template from inside a function. But Icant get it to work. If I have this in a file alone, it works fine:
PHP Code:
eval('print_output("' . fetch_template("FORUMHOME") . '");');
But if I put this instead
PHP Code:
function testing() { eval('print_output("' . fetch_template("FORUMHOME") . '");'); }
testing();
The template comes out completely wrong. ALl the images, style etc. is missing, and only part of the template is drawn.
I cant work out what is wrong, any ideas? I'm guessing something moreneeds to be included in the function, but I cant find what that is.
Thanks a lot in advance for the help. I'm sure it's obvious, but I justcant work it out or find the answer anywhere else either 
|
try do :
PHP Code:
function testing() { global $bbuserinfo,$header,$footer,$headinclude,$stylevar; eval('print_output("' . fetch_template("FORUMHOME") . '");'); }
testing();
|