How to display Chat Users in a widget
-
I have seen where many users wanted a way to see what users were in the chat room. Many were turned off when this was not found.
Here’s a simple work around fix.
Use the DBView plugin.
I created a “Chat” view using the following SQL query:
SELECT room AS “Room”, alias AS “Member” FROM wp_quick_chat_users WHERE alias != “admin” GROUP BY room
The WHERE alias != “admin” was added since Quick Chat always lists the admin in the room whenever logged in because of Admin’s Lounge in the dashboard. I believe you also need to make this view public.
Finally, I added the following to a text widget:
[dbview name=’Chat’ pagesize=10 sort=’alias’ order=’desc’]
There is a delay and you’ll need to update by refreshing the page.
I suspect there is a better way to do this, but it works for me.
- The topic ‘How to display Chat Users in a widget’ is closed to new replies.