PDA

View Full Version : Include a php file in vB


Kanustep
09-19-2008, 03:58 AM
Hello,

I need to include a file in vBulletin and I have try this:

ob_start();
<? include ("/path/to/display.php"); ?>
$variablename = ob_get_contents();
ob_end_clean();

But when I enable this plug-in other plug-ins like Text-Link-Ads/Avatar in frontpage seems not working or working wrong.

I try including the variable in the template and still no help. What may be causing this?

Thank you.

Opserty
09-19-2008, 07:24 AM
<a href="http://www.vbulletin.com/docs/html/main/templates_externalfiles" target="_blank">Including External Files</a>

You code doesn't look the same as the one given in the link above...