XF 1.1 Show User is online and offline issue

Ok so i got the online offline to show people online and offline in thread but with it shows people who are offline as online and such what value do i need in this code

<span class="userUserOnline"></span><span class="userUserOffline"></span>
so that it shows people who are actually online as online and people who are offline to show as offline?