If your plugin hook is "member_complete" then try using $prepared['userid'] instead of $bbuserinfo['userid'].
--------------- Added [DATE]1444606104[/DATE] at [TIME]1444606104[/TIME] ---------------
Quote:
Originally Posted by Dave
Instead of adding the authorization check in the template, I would just move it to the script itself and redirect the user if they are not the owner. I always handle all my logic in scripts, not in the template/view.
That way it's also ten times easier to debug your code and variables.
|
Excellent advice...I do the same myself.