Yeah, one problem is that there is no "template" type for a custom forum block. You can get around that putting the code you posted into a new template (if you haven't done that already). Then make the "Content Type" php and insert code to render your template. That's only a couple of lines of code.
But the bigger problem is that it seems to depend on a $prepared variable - I assume you took it from the profile page or something like that. So you would have to do whatever needs to be done to set up the $prepared variable (it looks like you're just using $prepared[profilepicurl], so that's all you need to set). That's a bit harder, but if you search the code for it you can probably find how it's set.
|