Hi! I've seen in some servers that they have this small red box near chat icon or forum icon that shows how many users are active or new messages written since you last checked. Does anybody has a code or an idea how to make that?
Chat active number!
This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.
-
-
<a title="Chat" href="game.php?page=chat">
<span class="chat"></span>
i think -
This is just the chat icon. But I wanted a small window near it which shows how many users are in.
-
then add the following code under $this->assign(array(
now u can use {$chatonline} in the template
it will be the number of users online in the chat, within the last 2 min in channel 0.
-
Share
- Facebook 0
- Twitter 0
- Google Plus 0
- Reddit 0
-
Tags