News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

How to turn off "info center"?

Started by captcha, March 28, 2020, 10:50:13 PM

Previous topic - Next topic

captcha

Is there any way to turn off the info (a few version 2.0.17) without edit the template?
I can not find a way to hide it.Evenif unchecked the permission to view who is on line and statistic,
the home page still show info center when no user logged in.

Sir Osis of Liver

You can remove some of the info in Admin -> Current Theme -> Theme Settings, but you have to modify the board index to remove it completely.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Antechinus

It's actually better to edit the template, because the info centre is quite a performance hit, so it makes sense to ditch the whole thing if you don't want it.

However, if you want a CSS-only method of hiding it you can use this:

#posting_icons + .upperframe, #posting_icons + .upperframe + .roundframe, #posting_icons + .upperframe + .roundframe + .lowerframe,
.mark_read + .upperframe, .mark_read + .upperframe + .roundframe, .mark_read + .upperframe + .roundframe + .lowerframe {
    display: none;
}


Which is gruesome, but should work for guests and logged-in members.

If you only want to hide it for guests, use this:

.mark_read + .upperframe, .mark_read + .upperframe + .roundframe, .mark_read + .upperframe + .roundframe + .lowerframe {
    display: none;
}

Sir Osis of Liver

BoardIndex.template.php -



// template_info_center();
}

function template_info_center()


Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters


captcha

Thank you very much, I'll try to remove it.

Advertisement: