• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Not a bug  member_card hooks

Jeremy P

Well-known member
#1
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.
 

Jeremy P

Well-known member
#2
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.
 

Mike

XenForo developer
Staff member
#3
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.