Page 1 of 2

How to remove footer

Posted: Wed May 28, 2014 7:04 pm
by rajasegar
Please advice how to remove the following Check for Updates line at the bottom of every page.
It is just wasting the limited screen area and never used.
footer.png
What is the use of the empty space here? I have never seen anything shown on this line.
empty_space.png
Thanks.

Re: How to remove footer

Posted: Thu May 29, 2014 9:26 am
by tmcdonald
Not seeing that empty space on my screen, but to remove the check:

Comment out (HTML comment) the update line in /usr/local/nagiosxi/html/includes/footer.inc.php like so:

Code: Select all

<!--<a href="<?php echo get_update_check_url();?>" target="_blank"><?php echo gettext("Check for Updates"); ?> <i class="icon-share"></i></a>-->

Re: How to remove footer

Posted: Thu May 29, 2014 9:38 am
by BanditBBS
That dead space is shown on my screen as well using Chrome and IE.

Re: How to remove footer

Posted: Thu May 29, 2014 9:44 am
by tmcdonald
You guys might have those fancy 1900x1200 monitors. We are working on 800x600 CRTs still. (Not really).

Could just be screen resolution, number of toolbars on the browser, etc. I have the whitespace but it is only about 20 pixels or so (half the width of the copyright bar).

Re: How to remove footer

Posted: Thu May 29, 2014 5:40 pm
by Box293
I've noticed this too using the Classic XI theme.

With the XI 2014 theme it is aligned with the copyright notice.

Perhaps the Classic theme could be updated to have the "Check for Updates" aligned the same way.

I've also noticed the deadspace, there is more deadspace with the Classic theme, the 2014 theme has deadspace but not as much.

Re: How to remove footer

Posted: Thu May 29, 2014 7:13 pm
by rajasegar
tmcdonald wrote:Not seeing that empty space on my screen, but to remove the check:

Comment out (HTML comment) the update line in /usr/local/nagiosxi/html/includes/footer.inc.php like so:

Code: Select all

<!--<a href="<?php echo get_update_check_url();?>" target="_blank"><?php echo gettext("Check for Updates"); ?> <i class="icon-share"></i></a>-->
I am using Firefox latest version on notebook 1366 x 768 and also 1284 x 1024 screen. Both show same empty space.

There were 2 location in the file with the same code. Remarked both.
However more empty space is what I got.
checkpdates1.png
Here is my firefox top view, not statusbar and no toolbars on top except for the standard address bar.
firefox1.png

Re: How to remove footer

Posted: Fri May 30, 2014 1:58 pm
by tmcdonald
This is why I am not a developer :)

This seems to have been fixed in 2014 since I am not seeing it on mine. Checked one of lmiltchev's 2012R2.9 boxes (unmodified) and nothing is there either.

You might have some remaining HTML divs sticking around. There are two sections in that file, one for 2014 style and one for Classic. For the Classic I did the following:

Code: Select all

    <?php //if (is_admin()) { // Only display update link for admin users ?>
    <!--<div id="checkforupdates">
        <a href="<?php //echo get_update_check_url();?>" target="_blank"><img src="<?php //echo get_base_url();?>images/checkforupdates.png" alt="Check for updates" title="Check for updates" border="0"></a>
    </div>-->
    <?php //} ?>
and this is what I have:

Image

Maybe not the "best" fix but it seemed to work for me. The code should be the same in 2012R2.9.

Re: How to remove footer

Posted: Sat May 31, 2014 7:20 am
by rajasegar
tmcdonald wrote:This is why I am not a developer :)

This seems to have been fixed in 2014 since I am not seeing it on mine. Checked one of lmiltchev's 2012R2.9 boxes (unmodified) and nothing is there either.

You might have some remaining HTML divs sticking around. There are two sections in that file, one for 2014 style and one for Classic. For the Classic I did the following:

Code: Select all

    <?php //if (is_admin()) { // Only display update link for admin users ?>
    <!--<div id="checkforupdates">
        <a href="<?php //echo get_update_check_url();?>" target="_blank"><img src="<?php //echo get_base_url();?>images/checkforupdates.png" alt="Check for updates" title="Check for updates" border="0"></a>
    </div>-->
    <?php //} ?>
and this is what I have:

Image

Maybe not the "best" fix but it seemed to work for me. The code should be the same in 2012R2.9.

Code: Select all

    <!-- <div class="span6 footer-left">
                <?php echo get_product_name(); ?> <?php echo get_product_version(); ?>
                <?php if (is_admin()) { // Admins only for updates ?>
                  •  
             <!--<a href="<?php echo get_update_check_url();?>" target="_blank"><?php echo gettext("Check for Updates"); ?> <i class="icon-share"></i></a>-->
                <?php } ?>
            </div> -->

    <!-- <div id="checkforupdates">
     <!--<a href="<?php echo get_update_check_url();?>" target="_blank"><img src="<?php echo get_base_url();?>images/checkforupdates.png" alt="Check for updates" title="Check for updates" border="0"></a>-->
    </div> -->

Since the check for updates is gone, the blue bar should move all the way to the bottom.
In 2014 the bar is just too thick.

Re: How to remove footer

Posted: Mon Jun 02, 2014 9:54 am
by tmcdonald
I can put in a request to the devs for this, since any changes I come up with will be both temporary and probably just a hack.

Re: How to remove footer

Posted: Fri Jun 06, 2014 12:38 pm
by jomann
This will be fixed in the newest version of XI, but for those of you who want it now ... I've put together a zip attached with the changed files.

Instructions:
1. Unzip the files into /tmp
2. Move and replace the files:

Code: Select all

mv footer.inc.php /usr/local/nagiosxi/html/includes/footer.inc.php
mv core.js /usr/local/nagiosxi/html/includes/js/core.js
mv nagiosxi.css /usr/local/nagiosxi/html/includes/css/nagiosxi.css