Every time I try to paste in code in this forum inside pre tags, it always messes it up. this time it removed a block of code from the function in my previous post above.
So here’s an image of the code. Not sure why it does this when i submit something with code. And then usually when I try to edit the post I get an error “Forum ID is missing”.
Image of code that I tried to paste into previous post above: http://picturestack.com/459/12/btXthemesuggb2EB.jpg