nobu,

I think I solved this. Here is my solution on XOOPS.org.

If there is a better way, let me know. Otherwise, this works.