PDA

View Full Version : custom pages and variables


GotVtec
09-02-2007, 09:35 PM
I followed the API to create my own templates and I have a question about including custom variables.

So, the last line of the my custom page calling the template is:


$featuredcontent = include('featuredcontent.php');

eval('print_output("' . fetch_template('featurecontent') . '");');
//featuredcontent is my custom template name which has the variable $featuredcontent


The external page (featuredcontent.php) just gets info from other sources and I want to include it on a custom template, however, it always places it above my custom template, not where I specified the variable in the template.

Any ideas?

Opserty
09-02-2007, 09:47 PM
See the section titled: Including a PHP file http://www.vbulletin.com/docs/html/