Hi, I have been experimenting with vB and I am in the process of creating a new page. Everything is going well except I can't seem to access a variable inside one of my page related templates.
Here is the code:
When I load the page I can access $szArticles inside the articles template, but I cannot access $szTitle inside the article_bit template. Any help here would be greatly appreciated! 
Karl
Here is the code:
PHP Code:
error_reporting(E_ALL & ~E_NOTICE);
define('THIS_SCRIPT', 'articles');
// pre-cache templates used by all actions
$globaltemplates = array(
'articles',
'article_bit'
);
// pre-cache templates used by specific actions
$actiontemplates = array();
require_once('./global.php');
require_once(DIR . '/includes/functions_faq.php');
$aArticles = $vbulletin->db->query("
SELECT *
FROM articles
");
$szArticles = '';
while ($aArticle = $vbulletin->db->fetch_array($aArticles))
{
$szTitle = 'Test Title';
$szArticles .= fetch_template('article_bit');
}
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('articles') . '");');

Karl
Comment