I created a hack that allows mods to manipulate there read-timestamp of a particular board and all threads in it. Maybe you can use some parts of this logic for your hack. Basically, you modify w3t_Last and set some cookies.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.