We prepared a script for our q2a website, https://github.com/askdevopsorg/demo/blob/master/scripts/c.php
Live demo at http://www.askdevops.org/
A Simple PHP script to show online user count.
How it works?
JQuery is used to call this file, /c.php
Server side data is stored in qa-cache/mydat.txt
INSTALLATION:
1. Copy the below files to the root of Q2A website
c.php
qa-cache/mydat.txt
2. Paste the below code where you need to display the online user count
<script>$(window).on('load', function() {$("#_c1").load("/c.php");});</script><span id="_c1">..</span>
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.