If you are putting this in a plugin, you don't need to include any vBulletin files. The vBulletin back-end is already included when you are inside a plugin...
Also the $db variable is already set too.
Just imagine it as though you've copied and pasted the code directly into the vBulletin file in where the hook is located. So it just runs normally.
Unless you need this as a standalone file?
(Note: You will need to remove the echo()'s or use output buffering functions to grab any output)
|