There are template hooks and there are php hooks. In your plugin manager you can attach php code to php hooks.
Template hooks work different, you have to use php code in a plugin to add HTML code to the template hook.
However this is different between VB3 and VB4, and you're code you posted is from VB4 and this is the VB3 section. If you want more info best to search or post in the VB4 section. There's also an article in the VB4 articles section dealing with templates and registering variables that should be of help.
But in the end the best way to do this is by a template edit.
Also $post[userid] won't work in VB4, I believe in a VB4 template it would be {vb raw post.userid}.
|