3
Quote:
Quest wrote:
I am running XOOPS 2.0.15. And I am using a cloned template set. I can not get the XOOPS banners to work on the site closed page. I searched and haven't found anything to help me on this, so if anyone knows why they aren't working or how to get them working I sure could use the help. When the site is closed for maintenance etc. it would be best if banners could still be displayed. The XOOPS banner code is in the template both my cloned set and the default set but doesn't work.
Anyone gots any ideas?
Thanks
Quest
i think its because in the site closed page.. the header.php file is not included.
so.. try this out.. editing
XooPS/include/common.php Add What Is In
Green if ($xoopsConfig['closesite'] == 1) {
$allowed = false;
if (is_object($xoopsUser)) {
foreach ($xoopsUser->getGroups() as $group) {
if (in_array($group, $xoopsConfig['closesite_okgrp']) || XOOPS_GROUP_ADMIN == $group) {
$allowed = true;
break;
}
}
} elseif (!empty($_POST['xoops_login'])) {
include_once XOOPS_ROOT_PATH.'/include/checklogin.php';
exit();
}
if (!$allowed) {
include_once XOOPS_ROOT_PATH.'/class/template.php';
$xoopsTpl = new XoopsTpl();[color=009900]
// getbanner..?!
if ($xoopsConfig['banners'] == 1) {
$xoopsTpl->assign('xoops_banner', xoops_getbanner());
} else {
$xoopsTpl->assign('xoops_banner', ' ');
}[/color]
$xoopsTpl->assign(array('xoops_sitename' => htmlspecialchars($xoopsConfig['sitename']), 'xoops_themecss' => xoops_getcss(), 'xoops_imageurl' => XOOPS_THEME_URL.'/'.$xoopsConfig['theme_set'].'/', 'lang_login' => _LOGIN, 'lang_username' => _USERNAME, 'lang_password' => _PASSWORD, 'lang_siteclosemsg' => $xoopsConfig['closesite_text']));
$xoopsTpl->xoops_setCaching(1);
$xoopsTpl->display('db:system_siteclosed.html');
exit();
}
unset($allowed, $group);
}
CBB / LatestNews / Publisher / XM-Spotlight
(ノ◕ヮ◕)ノ*:・゚✧