2
Oh boy! Daisy Fletcher gets boring to me (others as well?).
Look up header.php for this code:
if (isset($xoopsModule) && is_object($xoopsModule)) {
// set page title
$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name'));
$xoopsTpl->assign('xoops_dirname', $xoopsModule->getVar('dirname'));
$moduleid = $xoopsModule->getVar('mid');
if (preg_match("/index.php$/i", xoops_getenv('PHP_SELF')) && $xoopsConfig['startpage'] == $xoopsModule->getVar('dirname')) {
$toppage = true;
}
}
Insert your code there!
if (isset($xoopsModule) && is_object($xoopsModule)) {
// set page title
$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name'));
$xoopsTpl->assign('xoops_dirname', $xoopsModule->getVar('dirname'));
[color=ff0000][b]$xoopsTpl->assign('xoops_modulename',$xoopsModule->getVar('name'));[/b][/color]
$moduleid = $xoopsModule->getVar('mid');
if (preg_match("/index.php$/i", xoops_getenv('PHP_SELF')) && $xoopsConfig['startpage'] == $xoopsModule->getVar('dirname')) {
$toppage = true;
}
}
Do you know how to call smarty-variables in themes or templates? Guess not!
This is the correct code for themes and templates:
<{$xoops_modulename}>
My courtesy does not allow me to tell what I am thinking of you and your behaviour...