1
I would like to use a differnt banner management then what comes with xoops. I found the code in header.php that 'does' the banner. At first I just used an include but that put the banner on top of everything throwing off the alignment of the first of the page.
From some looking at the original code:
if ($xoopsConfig['banners'] == 1) {
$xoopsTpl->assign('xoops_banner', xoops_getbanner());
} else {
$xoopsTpl->assign('xoops_banner', ' ');
}
and the theme.html
I figured out I need to use the if/else language and assign the selector name for the css to work. What I have figured out so far is:
if (whatdoiputhere) {
$xoopsTpl->assign('pbanner');
else {
$xoopsTpl->assign('pbanner', ' ');
It seems like in the first set of () I should have it check for the banner.php file I am using. But I don't know how to write that
I am looking at the php.net manual but don't really know what I am looking for.
Another question I have is on the $xoopsTpl variable what does the Tpl stand for? Only thing I could figure out is table placement.
Thanks for your time.