« Escalation | Escalation in Iraq » |
Live Hits
I just released another plugin for b2evolution: Live Hits. Most of my plugins have been of little practical value and this one is no exception. In fact, it's nothing more than a toy. But, if you have a b2evolution blog, a bit of curiosity and some time to kill, you may think it's fun. b2evolution records some info on every visit to the site, including their user agent, timestamp, what url they hit and their IP. The Stats tab of b2evolution provides a great way to sort through this data, including charts. But I wanted to write an interface for this data that was in real time. I took Digg Spy as inspiration and the jquery Spy plugin as some code to start with. Throw in a dash of sql and a pinch of Google Maps and stir briskly.
Using it is very simple. Just go to the Live Hits tab under tools, choose a blog (or None to see hits from all the blogs at once). Then you'll see the hits start rolling by, complete with a logo showing what browser or search engine hit the site and a matching pin on the map.
If you're a brendoman.com author, you should be able to see it in action right here.
The end result may be fairly pointless, but along the way I learned a lot about b2evolution and about jquery. JavaScript has always been opaque to me, but jquery makes it a lot easier, cleaner and more powerful. If you do any web development, I strongly encourage you to check it out.
1 comment
That looks pretty sweet. I’ll check it out.
Recent comments