this is a repost. i didn't solve the problem but i did take the html, head and body tags out of links.php
_____________
i'm trying to use sts template tags like so but it's not working:
i created a new box named links.php
<?php
?$title = array();
?$content = array();
?
?$html = file_get_contents(DIR_WS_BOXES."../sts_templates/mysite/links.php.html");
?$title[] = array('text' => "");
?$content[] = array('text' => $html);
?new infoBox($content);
?>
that box calls up this file: sts_templates/mysite/links.php.html
$myaccountlogoff
<br />
$cartcontents
<br />
$checkout
then i added this to sts_user_code.php:
? $sts_block_name = 'links';
? require(STS_START_CAPTURE);
? require(DIR_WS_BOXES . 'links.php');
? require(STS_STOP_CAPTURE);
? $template[$sts_block_name] = strip_unwanted_tags($sts_block[$sts_block_name], $sts_block_name);
but instead of the template tags doing what they are supposed to do they are being displayed in the box as text.
any thoughts?
thank you :)