Not a bug  member_card hooks

Jeremy P

XenForo developer
Staff member
The template hooks in "member_card" do not include the $user variable as a parameter.

While this may not technically be considered a bug, it does severely impact the practical use of the hook, as you would think most links placed here are user-specific.
 
Hmm, well nevermind I suppose.

Used
PHP:
$template->getParams()
as suggested elsewhere to get the params available to the template.

Not sure if actual <xen:hook> params were intended for something else, but if not I would argue $user would be a useful addition here.
 
Params are only passed when you can't figure out what's applicable without them. Basically that means when the hook is within a loop.
 
Top Bottom