3
Quote:
On a related note, is there a list of all the tags like {X_SITENAME} that can be used in custom blocks?
you can look inside kernel/block.php
function getContent($format = 'S', $c_type = 'T')
{
switch ( $format ) {
case 'S':
if ( $c_type == 'H' ) {
return str_replace('{X_SITEURL}', XOOPS_URL.'/', $this->getVar('content', 'N'));
} elseif ( $c_type == 'P' ) {
ob_start();
echo eval($this->getVar('content', 'N'));
$content = ob_get_contents();
ob_end_clean();
return str_replace('{X_SITEURL}', XOOPS_URL.'/', $content);
} elseif ( $c_type == 'S' ) {
$myts =& MyTextSanitizer::getInstance();
$content = str_replace('{X_SITEURL}', XOOPS_URL.'/', $this->getVar('content', 'N'));
return $myts->displayTarea($content, 0, 1);
} else {
$myts =& MyTextSanitizer::getInstance();
$content = str_replace('{X_SITEURL}', XOOPS_URL.'/', $this->getVar('content', 'N'));
return $myts->displayTarea($content, 0, 0);
}
break;
case 'E':
return $this->getVar('content', 'E');
break;
default:
return $this->getVar('content', 'N');
break;
}
}
As you can see the only available inside blocks is {X_SITEURL}
If you want more then you will have to code them inside this method.