Jump to content

Message counter view


Back

Recommended Posts

Screenshot_1.png.425faaf2d4c3bf7af9ef016a1a140a05.png

Templates > forums > index > forumRow, we find:

<dl>
{{$count = \IPS\forums\Topic::contentCount( $forum, TRUE );}}
<dt class="ipsDataItem_stats_number">{number="$count"}</dt>
<dd class="ipsDataItem_stats_type ipsType_light">{lang="posts_no_number" pluralize="$count"}</dd>
</dl>

Replace with:

<dl>
{{$count = \IPS\forums\Topic::contentCount( $forum, TRUE );}}
<dt class="ipsDataItem_stats_number"><i class="fa fa-envelope-o" data-ipstooltip="" _title="{number="$count"} сообщений"></i> {number="$count"}</dt>
</dl>

CSS > core > front > custom > custom.css and add to the very bottom:

.ipsDataItem_statsLarge .ipsDataItem_stats_number {
    background: rgba(244, 244, 244, 0.63);
    box-shadow: 0 1px 0 rgba(255,255,255,0.2), 0px 0px 0px 1px rgba(255,255,255,0.05), inset 0 1px 3px rgba(115, 115, 115, 0.44);
    -webkit-box-shadow: 0 1px 0 rgba(255,255,255,0.2), 0px 0px 0px 1px rgba(255,255,255,0.05), inset 0 1px 3px rgba(194, 194, 194, 0.7);
    -moz-box-shadow: 0 1px 0 rgba(255,255,255,0.2), 0px 0px 0px 1px rgba(255,255,255,0.05), inset 0 1px 3px rgba(0,0,0,0.7);
    font-size: 15px;
    border-radius: 3px;
    max-width: 60px;
    padding: 10px;
    font-weight: 300;
    line-height: 1.3;
}

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. to insert a cookie message.