Strange, I can't think of anything else I did to get it working other then that bad path to my thumbnails. But, you had it working with the other methode so that should not be an issue for you.
Let me look at my stuff again. You are calling the $photopostfeature from inside the portal, yes? I'm sure you are, I just can't think of anything else.