Otikeu
08-31-2007, 04:39 AM
Hello,
I've used the guide (http://www.vbulletin.com/docs/html/main/templates_externalfiles) for including external php files and it does work. There is only one issue that doesn't seem to work...
I've got $sitemenu to include a .html file. $sitemenu is defined within the php file that I added into a plugin (using that guide). Normally, I just used php code on my website, but of course it is different with vB. Since I can't do include php codes in the templates, I've tried something like:
$sitemenu = include('/path/to/file.html');
However, it just gives a "1" where the variable is and outputs the raw data of the .html file to the top.
The plugin is hooked to global_start and the variable is being used the header. Is there a better way to have this work?
I've used the guide (http://www.vbulletin.com/docs/html/main/templates_externalfiles) for including external php files and it does work. There is only one issue that doesn't seem to work...
I've got $sitemenu to include a .html file. $sitemenu is defined within the php file that I added into a plugin (using that guide). Normally, I just used php code on my website, but of course it is different with vB. Since I can't do include php codes in the templates, I've tried something like:
$sitemenu = include('/path/to/file.html');
However, it just gives a "1" where the variable is and outputs the raw data of the .html file to the top.
The plugin is hooked to global_start and the variable is being used the header. Is there a better way to have this work?