Jump to content

Question

Posted

Salut, stie cineva de unde pot lua un hook pentru online indicator? Adica sa arate in dreptul userului in topic daca este online sau offline.

Sau daca poate cineva sa-mi dea un cod, acela de se pune in postcontainer si custom, as ramane dator!

2 answers to this question

Recommended Posts

  • 1
Posted

Poftim!

<span class="indicator_onoff">
            {{if $comment->author()->isOnline()}}
          <span class="online_in"></span>
                {{else}}
          <span class="offline_in"></span>
                 {{endif}}
          </span>
.indicator_onoff {
    position: relative;
    top: 20px;
    z-index: 100;
}
.online_in {
    color: green;
    position: relative;
}
.offline_in {
    color: red;
    position: relative;
}
.online_in:after {
    content: "";
    position: absolute;
    top: -15px;
    height: 8px;
    left: 4px;
    right: 0;
    width: 8px;
    background: #35ef09;
    border-radius: 10px;
    margin: 0 auto;
}
.offline_in:after {
    content: "";
    position: absolute;
    top: -15px;
    height: 8px;
    left: 4px;
    right: 0;
    width: 8px;
    background: #de2828;
    border-radius: 10px;
    margin: 0 auto;
}

 

  • Like 1

Please sign in to comment

You will be able to leave a comment after signing in



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.