Quote:
Originally Posted by Americanbang
What do I need to wrap around the echo $rss_output;?
|
Are you feeding the rssfeed variable into the template?
PHP Code:
$templater = vB_Template::create('my_page');
$templater->register_page_templates();
$templater->register('pagetitle', $pagetitle);
$templater->register('rssfeed', $my_rs_feed_variable_here);
print_output($templater->render());
If you are and it's not working, I'd wonder if the variable is null for some reason.
Thread addendum:
Suppose you wanted to feed a $_SERVER variable into the template? Is there a native vBulletin function I could use to clean it prior to feeding it to $templater->register()?