Sorry. But I'm not going to write something custom for free.
I'm already working on UBB.threads software for free. I haven't received a dime for any of my code or support replies here.
You may want to contact support or Gizmo @
https://www.virtualnightclub.net/ if you'd like custom code specific to your needs.