1
Quest
Xoops banner not working
  • 2006/10/20 22:08

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


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

2
Quest
Re: Xoops banner not working
  • 2006/10/21 11:13

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


Bump.

3
iHackCode
Re: Xoops banner not working

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

(ノ◕ヮ◕)ノ*:・゚✧

4
Quest
Re: Xoops banner not working
  • 2006/10/22 11:47

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


I think you thunk right Bandix X. Thanks so much, worked like a charm!

Quest

5
Quest
Re: Xoops banner not working
  • 2006/10/27 19:45

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


It worked and the banners are displaying now on the siteclosed but when clicked on they do not link to where they are supposed to link. Page just refresh and stays at siteclosed. Guess I have to use a third party phpadsnew for it? I'd rather use XOOPS though. Any other ideas?

Thanks
Quest

Login

Who's Online

288 user(s) are online (94 user(s) are browsing Support Forums)


Members: 0


Guests: 288


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits