XF 2.0 How do I pull statistics into the footer area?

You could create a widget: Forum Statistics, give it a key like: footerstats and don't select a position:
Screenshot_3.webp

Then place this where you want it to show, in my example I used page_container, find:

Code:
<footer class="p-footer" id="footer">

Right above it paste:

Code:
<div class="footer-stats">
        <xf:widget key="footerstats" />
    </div>

Then your extra.less:

Code:
.footer-stats
{
    background-color: #245b82;
    font-size: 12px;
    padding: 10px;
    text-align: center;
    .block { margin-bottom: 0; }
    .block-container
    {
        background-color: transparent;
        border-width: 0px;
        box-shadow: none;
    }
    dl
    {
        display: inline-block;
        font-size: inherit;
    }
    dt { color: #FFF; }
    dd { color: #CCC;}
    a { color: #bcdef5; }
    .block-body
    {
        padding: 0;
        font-size: inherit;
    }
    .block-minorHeader
    {
        display: none;
    }
}

And the result:
Screenshot_2.webp
 
@mysimsek , The producer doesn't allow sharing code.

You mean that a developer rejected. Come on guy! If you already know how to do this, you could tell or explain!

@mysimsek you don't need to get any permission.

If you look into the whole explanation, it will be as you wish.

 
@Osman I'm sure we will do it better and it will be free for everyone! ...
Yes the add-on is available here.
 
Back
Top Bottom