To do what Charles said to do isn't too hard, really... JS is executed in the order it appears in the HTML, so instead of this:
Code
[/code]Use this:
Code
</pre></div></div>And near the end (by the closing HTML tag) add this:<br><br>[code]
Untested, but it should work... Alternatively you may just be able to check if the JS variable haspms exists at the bottom, it'd save on one line of code
But yeah, good job and a great idea, which could possibly even be included in the stock code and turned on/off from the CP...
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.