News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Stupid Web Tricks -Ajax forum spy

Started by zushiba, May 28, 2009, 02:19:40 PM

Previous topic - Next topic

zushiba

I wasn't sure where I should put this. It's not technically a mod it's just a stupid useless toy I threw together with the help of a few awesome people.

What I've got here is a fairly useless way of just watching forum activity to see what's going on as up to date as possible without modifying the forums.
I got the idea by looking at the Digg Spy. I wanted to do something like this for my forum (1.1.9) some googling produced http://leftlogic.com/lounge/articles/jquery_spy/ which uses jquery to nab the contents of whatever you point it at at a specific interval.
It took a very little modifying to get it to work with the forums. I used the smf_log_online table to get an idea of what people were up too.

The code is terrible, it was never meant to be used by anyone other than myself so it's ugly, basic and somewhat embarrassing but I figure some people may have fun with this so I decided to share it.

The output looks like this



Advertisement: