1. 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

Discussion in 'Resolved Bug Reports' started by Jeremy P, Mar 8, 2011.

  1. Jeremy P

    Jeremy P Well-Known 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.
  2. Jeremy P

    Jeremy P Well-Known Member

    Hmm, well nevermind I suppose.

    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.
  3. Mike

    Mike XenForo Developer Staff Member

    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.

Share This Page