cegadm, no worries. I've just been summarizing (via quote) what Ruben has written through the thread.
Your work on this has been much appreciated, and will assist to review that 15 year old code and make corrections for directly moving from 6.5 to 7.7.4 or whatever the most current version of UBBT is... so no one else would need to go down this path again.
Both RUben and Gizmo are experts and provide services to upgrade UBBT Classic to the current version of UBB.threads. So both of these guys have a long history of the work you've been documenting here.
Again, thank you very much for the time you've spent and the work you've produced with your research.