EDIT: Updated script to fix a problem with Firefox. If you downloaded before this edit, download it again and just overwrite the old javascript.
So, the other day I was playing around with Ajax for the first time, and decided that I quite like it. As a result, I made a "active topics" box for PunBB that updates in real-time without having to refresh the page.
Installation is about as simple as can be. Just upload the included files, then add <pun_include "ajax_extern.php"> in your mail.tpl where you want to display it. This provides a simple way to stay up-to-date on what's going on in your forums:)
By default, the box refreshes every 15 seconds, but that's easy to edit by changing the timer variable at the top of the supplied .js.
Installation:
1. Unzip the archive into your PunBB root directory, keeping the folder structure ( uploads ajax_extern.js into ./include/js/ , and ajax_extern.php into ./include/user/ )
2. Open ./include/template/main.tpl and add <pun_include "ajax_extern.php"> where you want the box to show up. Under <pun_announcement> might be a good place..
3. Enjoy.
Note: if there is any pages you don't want the box to show up on, just add the page name to the array at line 3 in ajax_extern.php. Also, seeing as you won't be editing any of PunBB's source code, this will probably work just fine with sites like mypunbb etc. as well
Note 2: If you'd like to change the number of topics, just get topics from specific forums etc., change line 25 of the javascript.
[DOWNLOAD HERE]