MyBB Community Forums

Full Version: When I define a function inside a plugin, why do I get an error when it is called?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I can define a function within an activated plugin, such as function dothis(){ echo "hey!"; }, however, if I call this from within say... usercp, it gives me an error.

Does this need to be added as a hook, called a hook, done something with a hook?
Can you please post the error message?