Nice hack cyb! I have installed it and wanted to contribute: I think it can be made better with a simple adjustment:
1- For users without javascript, it completely invalidates the "new posts" button (i.e. doesn't degrade gracefully), this can be solved by changing this part:
PHP Code:
href="javascript:void(0);" onclick="CAnp_getStats();"
to this
PHP Code:
href="search.php?do=getnew" onclick="CAnp_getStats();
return false;"
It will work exactly the same for users with javascript, but will degrade gracefully for those who don't have javascript. It will also be possible to open the link with the "open to new tab" option in firefox (i.e. middle mouse button)
2- The "checking.." text is a bit annoying since it changes the layout in the navbar and moves all the menus, there should be an option to disable/change it