Hey Speedy. Here is a code based on what you had given me to work with. Click here .
I didn't modify anything really, just added the variables you wanted in place.
If this code is not exactly what you're looking for then post again for whatever corrections or you can look what I did and experiment. Anyway let me know how it goes. GL.
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.